Created
August 7, 2020 00:10
-
-
Save abrookins/957be0fd264150f50687922c072cf3f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from peewee import * | |
import datetime | |
db = SqliteDatabase('my_database.db') | |
class User(Model): | |
username = CharField(unique=True) | |
class Meta: | |
database = db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment