mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 13:30:55 +01:00
32 lines
1 KiB
MySQL
32 lines
1 KiB
MySQL
|
create database phabricator_project;
|
||
|
create table phabricator_project.project (
|
||
|
id int unsigned not null auto_increment primary key,
|
||
|
name varchar(255) not null,
|
||
|
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
|
||
|
);
|
||
|
create table phabricator_project.project_profile (
|
||
|
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
|
||
|
);
|
||
|
create table phabricator_project.project_affiliation (
|
||
|
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
|
||
|
);
|
||
|
|