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