[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

@@ -117,7 +117,7 @@ class Invitation
public static function schemaDef(): array
{
return [
'name' => 'invitation',
'name' => 'invitation',
'fields' => [
'code' => ['type' => 'varchar', 'length' => 32, 'not null' => true, 'description' => 'random code for an invitation'],
'user_id' => ['type' => 'int', 'not null' => true, 'description' => 'who sent the invitation'],