[CORE][DATABASE] Restructure the database

This commit is contained in:
Hugo Sales
2020-06-30 16:26:40 +00:00
committed by Hugo Sales
parent 44eaf43ba9
commit 25aeac80a3
57 changed files with 332 additions and 3049 deletions

View File

@@ -84,16 +84,16 @@ class GroupAlias
'name' => 'group_alias',
'fields' => [
'alias' => ['type' => 'varchar', 'length' => 64, 'not null' => true, 'description' => 'additional nickname for the group'],
'group_id' => ['type' => 'int', 'not null' => true, 'description' => 'group profile is blocked from'],
'modified' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date alias was created'],
'group_id' => ['type' => 'int', 'not null' => true, 'description' => 'group id which this is an alias of'],
'modified' => ['type' => 'timestamp', 'not null' => true, 'description' => 'date alias was created'],
],
'primary key' => ['alias'],
'foreign keys' => [
'group_alias_group_id_fkey' => ['user_group', ['group_id' => 'id']],
'group_alias_group_id_fkey' => ['group', ['group_id' => 'id']],
],
'indexes' => [
'group_alias_group_id_idx' => ['group_id'],
],
];
}
}
}