[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 4b4f235481
commit 6fe35833e7
57 changed files with 332 additions and 3049 deletions

View File

@@ -85,13 +85,13 @@ class ProfileBlock
'fields' => [
'blocker' => ['type' => 'int', 'not null' => true, 'description' => 'user making the block'],
'blocked' => ['type' => 'int', 'not null' => true, 'description' => 'profile that is blocked'],
'modified' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date of blocking'],
'modified' => ['type' => 'timestamp', 'not null' => true, 'description' => 'date of blocking'],
],
'primary key' => ['blocker', 'blocked'],
'foreign keys' => [
'profile_block_blocker_fkey' => ['user', ['blocker' => 'id']],
'profile_block_blocked_fkey' => ['profile', ['blocked' => 'id']],
],
'primary key' => ['blocker', 'blocked'],
];
}
}
}