feat: faker data: railway
This commit is contained in:
14
model/hotel.py
Normal file
14
model/hotel.py
Normal 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='离开日期')
|
||||
Reference in New Issue
Block a user