2012-04-30 07:53:53 -07:00
|
|
|
create table {$NAMESPACE}_project.project (
|
2011-02-20 18:41:23 -08:00
|
|
|
id int unsigned not null auto_increment primary key,
|
2014-10-29 15:49:29 -07:00
|
|
|
name varchar(255) COLLATE `binary` not null,
|
2011-02-20 18:41:23 -08:00
|
|
|
unique key (name),
|
|
|
|
phid varchar(64) binary not null,
|
|
|
|
authorPHID varchar(64) binary not null,
|
|
|
|
dateCreated int unsigned not null,
|
|
|
|
dateModified int unsigned not null
|
|
|
|
);
|
2012-04-30 07:53:53 -07:00
|
|
|
create table {$NAMESPACE}_project.project_profile (
|
2011-02-20 18:41:23 -08:00
|
|
|
id int unsigned not null auto_increment primary key,
|
|
|
|
projectPHID varchar(64) binary not null,
|
|
|
|
unique key (projectPHID),
|
|
|
|
blurb longtext not null,
|
|
|
|
profileImagePHID varchar(64) binary,
|
|
|
|
dateCreated int unsigned not null,
|
|
|
|
dateModified int unsigned not null
|
|
|
|
);
|
2012-04-30 07:53:53 -07:00
|
|
|
create table {$NAMESPACE}_project.project_affiliation (
|
2011-02-20 18:41:23 -08:00
|
|
|
id int unsigned not null auto_increment primary key,
|
|
|
|
projectPHID varchar(64) binary not null,
|
|
|
|
userPHID varchar(64) binary not null,
|
|
|
|
unique key (projectPHID, userPHID),
|
|
|
|
key (userPHID),
|
|
|
|
role varchar(255) not null,
|
|
|
|
status varchar(32) not null,
|
|
|
|
dateCreated int unsigned not null,
|
|
|
|
dateModified int unsigned not null
|
|
|
|
);
|