添加表zx_ie_phpjerror1和zx_ie_phpjerror2
This commit is contained in:
90
db/mysql.py
90
db/mysql.py
@@ -359,3 +359,93 @@ class ZxIeOcrerror(Base):
|
||||
judge_backup = Column(String(40))
|
||||
ps_flag = Column(CHAR(1), server_default=text("'0'"), comment='图片是否ps过(0-无,1-ps过)')
|
||||
cPhhd_id = Column(String(20), comment='拍一拍单据号')
|
||||
|
||||
|
||||
class ZxIePhpjerror1(Base):
|
||||
__tablename__ = 'zx_ie_phpjerror1'
|
||||
|
||||
pk_phhd = Column(INTEGER(11), primary_key=True, comment='病案主键')
|
||||
cphhd_id = Column(VARCHAR(20), index=True, comment='拍一拍单据号')
|
||||
billdate = Column(DateTime, index=True)
|
||||
cxm = Column(String(12), comment='姓名')
|
||||
csfzh = Column(VARCHAR(20), index=True, comment='身份证号')
|
||||
pk_yljg = Column(INTEGER(11), server_default=text("'0'"), comment='医院pk')
|
||||
pk_yljg_ocr = Column(INTEGER(11), server_default=text("'0'"), comment='医院pk')
|
||||
pk_ylks = Column(INTEGER(11), server_default=text("'0'"), comment='科室pk')
|
||||
pk_ylks_ocr = Column(INTEGER(11), server_default=text("'0'"), comment='科室pk')
|
||||
cdoctor = Column(VARCHAR(20), comment='医生')
|
||||
cdoctor_ocr = Column(VARCHAR(20), comment='医生')
|
||||
czyh = Column(VARCHAR(20), comment='住院号')
|
||||
czyh_ocr = Column(VARCHAR(20), comment='住院号')
|
||||
dzyrq = Column(DateTime, comment='入院日期')
|
||||
dzyrq_ocr = Column(DateTime, comment='入院日期')
|
||||
dcyrq = Column(DateTime)
|
||||
dcyrq_ocr = Column(DateTime)
|
||||
input_cxm = Column(String(20), comment='姓名核对')
|
||||
input_cxm_ocr = Column(String(20), comment='姓名核对')
|
||||
ffsylfy = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='发生医疗费用')
|
||||
ffsylfy_ocr = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='发生医疗费用')
|
||||
fgrzfje1 = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人支付金额1')
|
||||
fgrzfje1_ocr = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人支付金额1')
|
||||
fgezfje2 = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人支付金额2')
|
||||
fgezfje2_ocr = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人支付金额2')
|
||||
fgrzfje = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人自费金额')
|
||||
fgrzfje_ocr = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人自费金额')
|
||||
fzfje = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='自付金额')
|
||||
fzfje_ocr = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='自付金额')
|
||||
yb_type = Column(VARCHAR(10), comment='医保类别')
|
||||
yb_type_ocr = Column(VARCHAR(20), comment='医保类别')
|
||||
cjsd_id = Column(VARCHAR(30), comment='结算单号码')
|
||||
cjsd_id_ocr = Column(VARCHAR(30), comment='结算单号码')
|
||||
fage = Column(INTEGER(4), server_default=text("'0'"), comment='年龄')
|
||||
fage_ocr = Column(INTEGER(4), server_default=text("'0'"), comment='年龄')
|
||||
creator = Column(VARCHAR(30), index=True, comment='创建人')
|
||||
creationtime = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='创建时间')
|
||||
modifier = Column(VARCHAR(30), comment='最后修改人')
|
||||
modifiedtime = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='最后修改时间')
|
||||
cstatus = Column(CHAR(1), index=True, server_default=text("'0'"), comment='状态')
|
||||
|
||||
|
||||
class ZxIePhpjerror2(Base):
|
||||
__tablename__ = 'zx_ie_phpjerror2'
|
||||
|
||||
pk_phhd = Column(INTEGER(11), primary_key=True, comment='病案主键')
|
||||
cphhd_id = Column(VARCHAR(20), index=True, comment='拍一拍单据号')
|
||||
billdate = Column(DateTime, index=True)
|
||||
cxm = Column(String(12), comment='姓名')
|
||||
csfzh = Column(VARCHAR(20), index=True, comment='身份证号')
|
||||
pk_yljg = Column(INTEGER(11), server_default=text("'0'"), comment='医院pk')
|
||||
pk_yljg_ocr = Column(INTEGER(11), server_default=text("'0'"), comment='医院pk')
|
||||
pk_ylks = Column(INTEGER(11), server_default=text("'0'"), comment='科室pk')
|
||||
pk_ylks_ocr = Column(INTEGER(11), server_default=text("'0'"), comment='科室pk')
|
||||
cdoctor = Column(VARCHAR(20), comment='医生')
|
||||
cdoctor_ocr = Column(VARCHAR(20), comment='医生')
|
||||
czyh = Column(VARCHAR(20), comment='住院号')
|
||||
czyh_ocr = Column(VARCHAR(20), comment='住院号')
|
||||
dzyrq = Column(DateTime, comment='入院日期')
|
||||
dzyrq_ocr = Column(DateTime, comment='入院日期')
|
||||
dcyrq = Column(DateTime)
|
||||
dcyrq_ocr = Column(DateTime)
|
||||
input_cxm = Column(String(20), comment='姓名核对')
|
||||
input_cxm_ocr = Column(String(20), comment='姓名核对')
|
||||
ffsylfy = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='发生医疗费用')
|
||||
ffsylfy_ocr = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='发生医疗费用')
|
||||
fgrzfje1 = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人支付金额1')
|
||||
fgrzfje1_ocr = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人支付金额1')
|
||||
fgezfje2 = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人支付金额2')
|
||||
fgezfje2_ocr = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人支付金额2')
|
||||
fgrzfje = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人自费金额')
|
||||
fgrzfje_ocr = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='个人自费金额')
|
||||
fzfje = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='自付金额')
|
||||
fzfje_ocr = Column(DECIMAL(18, 2), server_default=text("'0.00'"), comment='自付金额')
|
||||
yb_type = Column(VARCHAR(10), comment='医保类别')
|
||||
yb_type_ocr = Column(VARCHAR(20), comment='医保类别')
|
||||
cjsd_id = Column(VARCHAR(30), comment='结算单号码')
|
||||
cjsd_id_ocr = Column(VARCHAR(30), comment='结算单号码')
|
||||
fage = Column(INTEGER(4), server_default=text("'0'"), comment='年龄')
|
||||
fage_ocr = Column(INTEGER(4), server_default=text("'0'"), comment='年龄')
|
||||
creator = Column(VARCHAR(30), index=True, comment='创建人')
|
||||
creationtime = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='创建时间')
|
||||
modifier = Column(VARCHAR(30), comment='最后修改人')
|
||||
modifiedtime = Column(DateTime, server_default=text("CURRENT_TIMESTAMP"), comment='最后修改时间')
|
||||
cstatus = Column(CHAR(1), index=True, server_default=text("'0'"), comment='状态')
|
||||
|
||||
Reference in New Issue
Block a user