12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- create table ACT_ID_GROUP (
- ID_ nvarchar(64),
- REV_ int,
- NAME_ nvarchar(255),
- TYPE_ nvarchar(255),
- primary key (ID_)
- );
- create table ACT_ID_MEMBERSHIP (
- USER_ID_ nvarchar(64),
- GROUP_ID_ nvarchar(64),
- primary key (USER_ID_, GROUP_ID_)
- );
- create table ACT_ID_USER (
- ID_ nvarchar(64),
- REV_ int,
- FIRST_ nvarchar(255),
- LAST_ nvarchar(255),
- EMAIL_ nvarchar(255),
- PWD_ nvarchar(255),
- PICTURE_ID_ nvarchar(64),
- primary key (ID_)
- );
- create table ACT_ID_INFO (
- ID_ nvarchar(64),
- REV_ int,
- USER_ID_ nvarchar(64),
- TYPE_ nvarchar(64),
- KEY_ nvarchar(255),
- VALUE_ nvarchar(255),
- PASSWORD_ varbinary(max),
- PARENT_ID_ nvarchar(255),
- primary key (ID_)
- );
- alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_GROUP
- foreign key (GROUP_ID_)
- references ACT_ID_GROUP (ID_);
- alter table ACT_ID_MEMBERSHIP
- add constraint ACT_FK_MEMB_USER
- foreign key (USER_ID_)
- references ACT_ID_USER (ID_);
|