2023-03-15 02:04:48 -07:00
|
|
|
-- 2023-03-15: Add data export
|
|
|
|
|
2023-08-15 18:30:34 -07:00
|
|
|
-- +migrate Up
|
|
|
|
|
2023-03-15 02:04:48 -07:00
|
|
|
create table data_exports (
|
|
|
|
id serial primary key,
|
|
|
|
user_id text not null references users (id) on delete cascade,
|
2023-03-15 07:24:51 -07:00
|
|
|
filename text not null,
|
2023-03-15 02:04:48 -07:00
|
|
|
created_at timestamptz not null default now()
|
|
|
|
);
|
2023-08-15 18:30:34 -07:00
|
|
|
|
|
|
|
-- +migrate Down
|
|
|
|
|
|
|
|
drop table data_exports;
|