mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 07:32:19 -05:00
18 lines
421 B
JavaScript
18 lines
421 B
JavaScript
export function up(db) {
|
|
db.transaction(() => {
|
|
db.prepare(
|
|
/*sql*/ `
|
|
create table "SeedingSkill" (
|
|
"mu" real not null,
|
|
"sigma" real not null,
|
|
"ordinal" real not null,
|
|
"userId" integer not null,
|
|
"type" text not null,
|
|
foreign key ("userId") references "User"("id") on delete cascade,
|
|
unique("userId", "type") on conflict replace
|
|
) strict
|
|
`,
|
|
).run();
|
|
})();
|
|
}
|