mirror of
https://github.com/solero/houdini.git
synced 2024-11-28 08:27:18 +00:00
New Jitsu card crumbs data model
This commit is contained in:
parent
f139f7fe24
commit
6c514c8733
14
Houdini/Data/Ninja.py
Normal file
14
Houdini/Data/Ninja.py
Normal file
@ -0,0 +1,14 @@
|
||||
from Houdini.Data import db
|
||||
|
||||
|
||||
class Card(db.Model):
|
||||
__tablename__ = 'card'
|
||||
|
||||
ID = db.Column(db.Integer, primary_key=True)
|
||||
Name = db.Column(db.String(50), nullable=False)
|
||||
SetID = db.Column(db.SmallInteger, nullable=False, server_default=db.text("1"))
|
||||
PowerID = db.Column(db.SmallInteger, nullable=False, server_default=db.text("0"))
|
||||
Element = db.Column(db.CHAR(1), nullable=False, server_default=db.text("'s'::bpchar"))
|
||||
Color = db.Column(db.CHAR(1), nullable=False, server_default=db.text("'b'::bpchar"))
|
||||
Value = db.Column(db.SmallInteger, nullable=False, server_default=db.text("2"))
|
||||
Description = db.Column(db.String(255), nullable=False, server_default=db.text("''::character varying"))
|
Loading…
Reference in New Issue
Block a user