-- 先创建一个表结构，避免程序启动时找不到数据库表导致报错或者启动失败
CREATE TABLE "LOWCODE_MASTER"."LC_BUILDING"
(
    "ID" number(38,0) NOT NULL,
    "BUILDING_NAME" varchar2(128) NOT NULL,
    "CAMPUS_ID" varchar2(128) NOT NULL,
    "CAMPUS_NAME" varchar2(128) NOT NULL,
    "TENANT_ID" number(38,0),
    "CREATE_USER" number(38,0),
    "CREATE_TIME" timestamp(6),
    "CREATE_DEPT" number(38,0),
    "UPDATE_USER" number(38,0),
    "UPDATE_TIME" timestamp(6),
    "IS_DELETED" number(2,0) DEFAULT '0',
    "BUILDING_ID" varchar2(128) NOT NULL,
    "STATUS" number(11,0),
    NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE LOWCODE_MASTER.LC_BUILDING IS '楼宇点位信息表';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."BUILDING_ID" IS '楼宇编号';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."BUILDING_NAME" IS '楼宇名称';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."CAMPUS_ID" IS '园区编号';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."CAMPUS_NAME" IS '园区名称';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."CREATE_DEPT" IS '创建部门id';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."CREATE_USER" IS '创建人';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."ID" IS '主键';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."IS_DELETED" IS '是否删除';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."STATUS" IS '楼宇状态';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."TENANT_ID" IS '租户编号';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN LOWCODE_MASTER.LC_BUILDING."UPDATE_USER" IS '更新人';

