diff options
| author | winter | 2025-01-19 22:17:12 +0000 |
|---|---|---|
| committer | winter | 2025-01-19 22:17:12 +0000 |
| commit | 8c6dad8c48d5d730b102d9de0079fee9752b0d35 (patch) | |
| tree | 2cfe07a8c7958f78c767fd0d1444c3f8fef70511 /migrations/20250119_194145_create_notification.php | |
| parent | 2d9bd87fb1c565ee161f93219ce2533e8dbffe06 (diff) | |
implement notifications
Diffstat (limited to 'migrations/20250119_194145_create_notification.php')
| -rw-r--r-- | migrations/20250119_194145_create_notification.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/migrations/20250119_194145_create_notification.php b/migrations/20250119_194145_create_notification.php new file mode 100644 index 0000000..f4b3ae4 --- /dev/null +++ b/migrations/20250119_194145_create_notification.php @@ -0,0 +1,16 @@ +<?php + +use \Digitigrade\Db\Migrator; + +Migrator::getInstance()->register(20250119_194145, function (PDO $db) { + // table for notifications sent to users + $db->exec(<<<END + CREATE TABLE notification ( + id bigserial primary key, + user_account bigint not null references user_account, + item_type text not null, + item_data jsonb not null, + created timestamp with time zone not null + ); + END); +}); |
