CREATE TABLE yb_inpatient_cancel_fee_detail (
	ID BIGSERIAL PRIMARY KEY,
	feedetl_sn VARCHAR ( 50 ) NOT NULL,
	psn_no VARCHAR ( 50 ) NOT NULL,
	mdtrt_id VARCHAR ( 50 ) NOT NULL,
	exp_content TEXT,
	input_param TEXT,
	output_result TEXT,
	"tenant_id" INT8 NOT NULL,
	"delete_flag" CHAR ( 1 ) COLLATE "pg_catalog"."default" NOT NULL DEFAULT 0,
	"create_by" VARCHAR COLLATE "pg_catalog"."default" NOT NULL DEFAULT '' :: CHARACTER VARYING,
	"create_time" TIMESTAMPTZ ( 6 ) NOT NULL,
	"update_by" VARCHAR COLLATE "pg_catalog"."default",
	"update_time" TIMESTAMPTZ ( 6 ) 
);
COMMENT ON TABLE yb_inpatient_cancel_fee_detail IS '住院退费明细表';
-- 添加字段注释
COMMENT ON COLUMN yb_inpatient_cancel_fee_detail.ID IS '主键ID';
COMMENT ON COLUMN yb_inpatient_cancel_fee_detail.feedetl_sn IS '费用明细流水号（单次就诊内唯一）';
COMMENT ON COLUMN yb_inpatient_cancel_fee_detail.psn_no IS '人员编号（退单时传入被退单的费用明细流水号）';
COMMENT ON COLUMN yb_inpatient_cancel_fee_detail.mdtrt_id IS '就诊ID';
COMMENT ON COLUMN yb_inpatient_cancel_fee_detail.exp_content IS '字段扩展';
COMMENT ON COLUMN yb_inpatient_cancel_fee_detail.input_param IS '输入参数';
COMMENT ON COLUMN yb_inpatient_cancel_fee_detail.output_result IS '输出结果';







-- 向迁移历史表插入记录
INSERT INTO __MigrationsHistory (MigrationId, ProductVersion)
VALUES ('202507311518 yb_inpatient_cancel_fee_detail', '1.0.0');