DROP TABLE IF EXISTS T_CALCULATION_FORMULA;
CREATE TABLE T_CALCULATION_FORMULA(
 "ID" INTEGER IDENTITY (1,1),
 "TYPE" VARCHAR (50) NOT NULL,
 "ORDER_NO" INTEGER ,
 "FORMULA" TEXT NOT NULL,
 "PROVINCE" VARCHAR (50) NOT NULL,
 "ELECTRIC_TYPE" VARCHAR (50) NOT NULL,
 "STATION_CODE" VARCHAR (50) ,
 "RULE_FORMULA" VARCHAR (50) ,
 "IS_RATE" VARCHAR (50) NOT NULL,
 "MAX_MIN_LIMIT" VARCHAR (50) ,
 "STATE" VARCHAR (50) ,
 "DATA_SOURCE_TYPE" VARCHAR (50) ,
 "HOW_MANY_DAYS" VARCHAR (50) ,
 "CREATE_TIME" TIMESTAMP(0),
 "CREATOR" VARCHAR (50),
 "LAST_MODIFIER" VARCHAR (50),
 "LAST_MODIFY_TIME" TIMESTAMP(0),
  PRIMARY KEY ("ID") USING INDEX TABLESPACE "SYSTEM") WITHOUT OIDS
TABLESPACE "SYSTEM";
