mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-25 07:32:19 -05:00
* Log in link creation initial * Add global name to update all command * Remove left over log * Login command * Update command * Add todos * TODOs * Migration file fix order
13 lines
302 B
JavaScript
13 lines
302 B
JavaScript
module.exports.up = function (db) {
|
|
db.prepare(
|
|
/*sql*/ `
|
|
create table "LogInLink" (
|
|
"code" text unique not null,
|
|
"expiresAt" integer not null,
|
|
"userId" integer not null,
|
|
foreign key ("userId") references "User"("id") on delete cascade
|
|
) strict
|
|
`,
|
|
).run();
|
|
};
|