mirror of
https://github.com/solero/houdini.git
synced 2024-11-08 20:28:20 +00:00
New postcard crumbs data model
This commit is contained in:
parent
569905a5ce
commit
c56c3f12e2
12
Houdini/Data/Mail.py
Normal file
12
Houdini/Data/Mail.py
Normal file
@ -0,0 +1,12 @@
|
||||
from Houdini.Data import db
|
||||
|
||||
|
||||
class Postcard(db.Model):
|
||||
__tablename__ = 'postcard'
|
||||
|
||||
ID = db.Column(db.Integer, primary_key=True)
|
||||
Name = db.Column(db.String(50), nullable=False)
|
||||
Cost = db.Column(db.Integer, nullable=False, server_default=db.text("10"))
|
||||
Enabled = db.Column(db.Boolean, nullable=False, server_default=db.text("false"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user