CREATE TABLE APP_ACT_COE_PAL_COOP_TEAM(ID CHAR(36) NOT NULL,WSID VARCHAR(36), CATEGORY VARCHAR(64), TEAMNAME VARCHAR(36), TEAMLOGO VARCHAR(255), TEAMDESC VARCHAR(255), TEAMSTATUS SMALLINT, CREATEUSER VARCHAR(36), CREATETIME  TIMESTAMP, UPDATEUSER VARCHAR(36), UPDATETIME  TIMESTAMP, CONSTRAINT APP_ACT_COOP_TEAM_PK PRIMARY KEY (ID));
CREATE TABLE APP_ACT_COE_PAL_COOP_TEAM_PERM(ID CHAR(36) NOT NULL,TEAMID CHAR(36) NOT NULL,PALVERSIONIDN VARCHAR(36), CONSTRAINT APP_ACT_COOP_T_P_PK PRIMARY KEY (ID));
CREATE TABLE APP_ACT_COE_PAL_COOP_ROLE(ID CHAR(36) NOT NULL,TEAMID CHAR(36) NOT NULL, ROLENAMEN VARCHAR(36), ROLEDESCN VARCHAR(255), ROLETYPE SMALLINT, APPPERMN VARCHAR(500), ACTIONPERMN VARCHAR(36), DATAPERMN VARCHAR(36), CREATEUSERN VARCHAR(36), CREATETIME  TIMESTAMP, UPDATEUSERN VARCHAR(36), UPDATETIME  TIMESTAMP, CONSTRAINT APP_ACT_COOP_ROLE_PK PRIMARY KEY (ID));
CREATE TABLE APP_ACT_COE_PAL_COOP_ROLE_PERM(ID CHAR(36) NOT NULL,TEAMID CHAR(36) NOT NULL, ROLEID CHAR(36) NOT NULL,PALVERSIONIDN VARCHAR(36), CONSTRAINT APP_ACT_COOP_R_P_PK PRIMARY KEY (ID));
CREATE TABLE APP_ACT_COE_PAL_COOP_MEMBER(ID CHAR(36) NOT NULL,TEAMID  CHAR(36) NOT NULL, USERID  VARCHAR(36) NOT NULL, ROLEID CHAR(36) NOT NULL, CREATEUSERN VARCHAR(36), CREATETIME  TIMESTAMP, UPDATEUSERN VARCHAR(36), UPDATETIME  TIMESTAMP, CONSTRAINT APP_ACT_COOP_M_PK PRIMARY KEY (ID));
