feat: faker data: railway

This commit is contained in:
Zhaolong
2022-01-27 18:00:03 +08:00
parent 1e3d584870
commit c374acc1db
9 changed files with 178 additions and 20 deletions

13
model/railway.py Normal file
View File

@@ -0,0 +1,13 @@
from sqlalchemy import Column, Date, Integer, String, text
from base import db
class Railway(db.Model):
__tablename__ = 'faker_railway'
id = Column(Integer, primary_key=True)
name = Column(String(10), nullable=False, server_default=text("''"), comment='乘客姓名')
identification = Column(String(18), nullable=False, server_default=text("''"), comment='乘客身份证号码')
phone = Column(String(20), nullable=False, server_default=text("''"), comment='手机号码')
train = Column(String(10), nullable=False, server_default=text("''"), comment='车次')
launch = Column(Date, nullable=False, comment='发车时间')