You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
328 B
Python
21 lines
328 B
Python
from datetime import datetime
|
|
|
|
from peewee import *
|
|
|
|
|
|
db = SqliteDatabase('lws.db')
|
|
|
|
|
|
class User(Model):
|
|
username = CharField()
|
|
password = CharField()
|
|
address = CharField()
|
|
view_key = CharField()
|
|
date = DateTimeField(default=datetime.utcnow)
|
|
|
|
class Meta:
|
|
database = db
|
|
|
|
|
|
db.create_tables([User])
|