Replace individual Rust migration modules with a define_sql_migrations macro that reads up/down SQL files via include_str!. Consolidate all legacy single-file SQL into per-table directories and add full schema migration coverage for 90+ tables.
21 lines
1.0 KiB
SQL
21 lines
1.0 KiB
SQL
create table if not exists user_notification
|
|
(
|
|
"user" uuid not null
|
|
primary key,
|
|
email_enabled boolean default false not null,
|
|
in_app_enabled boolean default true not null,
|
|
push_enabled boolean default false not null,
|
|
digest_mode varchar(255) not null,
|
|
dnd_enabled boolean default false not null,
|
|
dnd_start_minute integer,
|
|
dnd_end_minute integer,
|
|
marketing_enabled boolean default true not null,
|
|
security_enabled boolean default true not null,
|
|
product_enabled boolean default true not null,
|
|
created_at timestamp with time zone not null,
|
|
updated_at timestamp with time zone not null,
|
|
push_subscription_endpoint text,
|
|
push_subscription_keys_p256dh text,
|
|
push_subscription_keys_auth text
|
|
);
|