forked from lza_menace/suchwow
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
304 B
16 lines
304 B
4 years ago
|
from peewee import *
|
||
|
from datetime import datetime
|
||
|
|
||
|
|
||
|
db = SqliteDatabase('data/sqlite.db')
|
||
|
|
||
|
class Meme(Model):
|
||
|
id = AutoField()
|
||
|
title = CharField()
|
||
|
submitter = CharField()
|
||
|
image_name = CharField()
|
||
|
timestamp = DateTimeField(default=datetime.now)
|
||
|
|
||
|
class Meta:
|
||
|
database = db
|