29
photo_review/entity/bd_yljg.py
Normal file
29
photo_review/entity/bd_yljg.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# coding: utf-8
|
||||
from sqlalchemy import Column, DateTime, String, text
|
||||
from sqlalchemy.dialects.mysql import INTEGER, TINYINT
|
||||
|
||||
from config.mysql import Base
|
||||
|
||||
|
||||
class BdYljg(Base):
|
||||
__tablename__ = 'bd_yljg'
|
||||
|
||||
pk_yljg = Column(INTEGER(11), primary_key=True, comment='医疗机构主键')
|
||||
code = Column(String(12), nullable=False, unique=True, comment='编码')
|
||||
name = Column(String(200), comment='名称')
|
||||
cpym = Column(String(40), comment='拼音码')
|
||||
pk_yldj = Column(INTEGER(11), comment='医疗机构等级')
|
||||
pk_father = Column(INTEGER(11), comment='上级医疗机构')
|
||||
address = Column(String(300), comment='地址')
|
||||
pk_region = Column(INTEGER(11), comment='行政区划主键')
|
||||
depiction = Column(String(100), comment='备注')
|
||||
creator = Column(String(20), comment='创建人')
|
||||
creationtime = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='创建时间')
|
||||
modifier = Column(String(20), comment='最后修改人')
|
||||
modifiedtime = Column(DateTime, comment='最后修改时间')
|
||||
enablestate = Column(TINYINT(4), server_default=text("'1'"), comment='启用状态')
|
||||
create_by = Column(String(100), comment='创建人')
|
||||
create_time = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='创建时间')
|
||||
update_by = Column(String(100), comment='更新人')
|
||||
update_time = Column(DateTime, comment='更新时间')
|
||||
del_flag = Column(TINYINT(1), server_default=text("'0'"), comment='删除标记')
|
||||
Reference in New Issue
Block a user