1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| CREATE TABLE MYBAAS ( ID VARCHAR(64) NOT NULL, TYPE_NAME VARCHAR(64) NOT NULL, JSON LONGTEXT NOT NULL, CONSTRAINT MYBAAS_PK PRIMARY KEY (ID) WITH (IGNORE_DUP_KEY=ON) );
CREATE TABLE IF NOT EXISTS PROPERTY_MAP ( ID VARCHAR(64) NOT NULL, PROPERTY_NAME VARCHAR(64) NOT NULL, COLUMN_NAME VARCHAR(64) NOT NULL, TYPE_NAME VARCHAR(64) NOT NULL, CONSTRAINT PROPERTY_MAP_PK PRIMARY KEY (ID) );
CREATE UNIQUE INDEX PROPERTY_MAP_UK01 ON PROPERTY_MAP(PROPERTY_NAME) WITH (IGNORE_DUP_KEY = ON);
CREATE UNIQUE INDEX PROPERTY_MAP_UK02 ON PROPERTY_MAP(COLUMN_NAME) WITH (IGNORE_DUP_KEY = ON);
|