CREATE TABLE VIPMEMBERGRADE 
(
  GRADEID INTEGER NOT NULL,
  GRADETEXT VARCHAR(20) CHARACTER SET NONE COLLATE NONE,
  MinScoreLtd FLOAT,
  ConvertScale FLOAT,
  DiscountScale FLOAT);


ALTER TABLE VIPMEMBERGRADE ADD PRIMARY KEY (GRADEID);


CREATE TABLE LBLBUSERRIGHTS (
  SystemID VARCHAR(20) CHARACTER SET NONE NOT NULL COLLATE NONE,
  ID INTEGER NOT NULL,
  ParentID INTEGER,
  KeyValue VARCHAR(20) CHARACTER SET NONE COLLATE NONE,
  Descrip VARCHAR(50) CHARACTER SET NONE COLLATE NONE,
  CType VARCHAR(4) CHARACTER SET NONE COLLATE NONE,
  EffectDate TIMESTAMP,
  CutDate TIMESTAMP,
  Choose VARCHAR(4000) CHARACTER SET NONE COLLATE NONE,
  PhoneNo VARCHAR(20) CHARACTER SET NONE COLLATE NONE,
  Sex CHAR(2) CHARACTER SET NONE COLLATE NONE);


ALTER TABLE LBLBUSERRIGHTS ADD PRIMARY KEY (ID,SystemID);
