CREATE TABLE yb_inpatient_un_reg (
	ID BIGSERIAL PRIMARY KEY,
	mdtrt_id VARCHAR ( 50 ) NOT NULL,
	psn_no VARCHAR ( 50 ) NOT NULL,
	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_un_reg IS '住院未出院信息表';
COMMENT ON COLUMN yb_inpatient_un_reg.ID IS '主键ID';
COMMENT ON COLUMN yb_inpatient_un_reg.mdtrt_id IS '就诊ID';
COMMENT ON COLUMN yb_inpatient_un_reg.psn_no IS '人员编号';






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