sendou.ink/migrations/090-tournament-org-banned-players.js
Kalle c35da55294
Tournament org bans (#2397)
* Initial

* e2e test

* extract

* finish?
2025-06-16 22:28:10 +03:00

16 lines
527 B
JavaScript

export function up(db) {
db.transaction(() => {
db.prepare(
/* sql */ `
create table "TournamentOrganizationBannedUser" (
"organizationId" integer not null references "TournamentOrganization"("id") on delete cascade,
"userId" integer not null references "User"("id") on delete restrict,
"privateNote" text,
"updatedAt" integer default (strftime('%s', 'now')) not null,
unique("organizationId", "userId") on conflict replace
)
`,
).run();
})();
}