mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-06-02 22:26:57 -05:00
* Initial * Progress * Layout work * New sub page initial * Edit sub posting * Delete sub posting * Improve sub nav looks on mobile * Finalized
20 lines
633 B
JavaScript
20 lines
633 B
JavaScript
module.exports.up = function (db) {
|
|
db.prepare(
|
|
/*sql*/ `
|
|
create table "TournamentSub" (
|
|
"userId" integer not null,
|
|
"tournamentId" integer not null,
|
|
"canVc" integer not null,
|
|
"bestWeapons" text not null,
|
|
"okWeapons" text,
|
|
"message" text,
|
|
"visibility" text not null,
|
|
"createdAt" integer default (strftime('%s', 'now')) not null,
|
|
foreign key ("userId") references "User"("id") on delete cascade,
|
|
foreign key ("tournamentId") references "Tournament"("id") on delete cascade,
|
|
unique("userId", "tournamentId") on conflict rollback
|
|
) strict
|
|
`
|
|
).run();
|
|
};
|