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

2 years ago
from datetime import datetime
from peewee import *
db = SqliteDatabase('lws.db')
2 years ago
class User(Model):
username = CharField()
password = CharField()
address = CharField()
view_key = CharField()
date = DateTimeField(default=datetime.utcnow)
2 years ago
class Meta:
database = db
db.create_tables([User])