mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-26 09:20:24 -05:00
16 lines
527 B
JavaScript
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();
|
|
})();
|
|
}
|