CREATE TABLE APP_ACT_COE_PAL_COOP_TEAM(ID CHAR(36) NOT NULL,WSID NVARCHAR(36), CATEGORY NVARCHAR(64), TEAMNAME NVARCHAR(36), TEAMLOGO NVARCHAR(255), TEAMDESC NVARCHAR(255), TEAMSTATUS SMALLINT, CREATEUSER NVARCHAR(36), CREATETIME  DATETIME, UPDATEUSER NVARCHAR(36), UPDATETIME  DATETIME, 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,PALVERSIONID NVARCHAR(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, ROLENAME NVARCHAR(36), ROLEDESC NVARCHAR(255), ROLETYPE SMALLINT, APPPERM NVARCHAR(500), ACTIONPERM NVARCHAR(36), DATAPERM NVARCHAR(36), CREATEUSER NVARCHAR(36), CREATETIME  DATETIME, UPDATEUSER NVARCHAR(36), UPDATETIME  DATETIME, 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,PALVERSIONID NVARCHAR(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  NVARCHAR(36) NOT NULL, ROLEID CHAR(36) NOT NULL, CREATEUSER NVARCHAR(36), CREATETIME  DATETIME, UPDATEUSER NVARCHAR(36), UPDATETIME  DATETIME, CONSTRAINT APP_ACT_COOP_M_PK PRIMARY KEY (ID));