diff options
Diffstat (limited to 'migrations/20241231_165056_create_user_account.php')
| -rw-r--r-- | migrations/20241231_165056_create_user_account.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/migrations/20241231_165056_create_user_account.php b/migrations/20241231_165056_create_user_account.php new file mode 100644 index 0000000..3a30547 --- /dev/null +++ b/migrations/20241231_165056_create_user_account.php @@ -0,0 +1,16 @@ +<?php + +use \Digitigrade\Db\Migrator; + +Migrator::getInstance()->register(20241231_165056, function (PDO $db) { + // local user accounts + $db->exec(<<<END + CREATE TABLE user_account ( + id bigserial primary key, + email text not null unique, + password_hash text not null, + actor bigint unique references actor on delete restrict, + banned boolean not null default false + ); + END); +}); |
