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

14
model/hotel.py Normal file
View File

@@ -0,0 +1,14 @@
from sqlalchemy import Column, Date, Integer, String, text
from base import db
class Hotel(db.Model):
__tablename__ = 'faker_hotel'
id = Column(Integer, primary_key=True, comment='id')
hotel_code = Column(String(10), nullable=False, server_default=text("''"), comment='酒店编号')
hotel_name = Column(String(50), nullable=False, server_default=text("''"), comment='酒店名')
locate_city_id = Column(String(10), nullable=False, server_default=text("''"), comment='酒店所在城市ID')
identification = Column(String(18), server_default=text("''"), comment='入住者身份证号')
in_data = Column(Date, nullable=False, comment='入住日期')
out_data = Column(Date, nullable=False, comment='离开日期')