Skip to content

Instantly share code, notes, and snippets.

@abrookins
Created August 7, 2020 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abrookins/957be0fd264150f50687922c072cf3f0 to your computer and use it in GitHub Desktop.
Save abrookins/957be0fd264150f50687922c072cf3f0 to your computer and use it in GitHub Desktop.
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