mirror of
https://github.com/v0l/route96.git
synced 2025-06-16 08:18:50 +00:00
wip
This commit is contained in:
15
migrations/20250115200151_report.sql
Normal file
15
migrations/20250115200151_report.sql
Normal file
@ -0,0 +1,15 @@
|
||||
-- Add migration script here
|
||||
create table reports
|
||||
(
|
||||
file_id binary(32) not null,
|
||||
report_id binary(32) not null,
|
||||
reporter_pubkey binary(32) not null,
|
||||
event varchar(8192) not null,
|
||||
received timestamp default current_timestamp,
|
||||
|
||||
constraint fk_reports_file_id
|
||||
foreign key (file_id) references uploads (id)
|
||||
on delete cascade
|
||||
on update restrict
|
||||
);
|
||||
create unique index ix_reports_file_report_id on reports (file_id, report_id);
|
Reference in New Issue
Block a user