mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-12-31 20:42:31 +00:00
* refactor: replace gorm with vanilla sql and sqlc * chore: go mod tidy * refactor: rebase for main * tests: fix tests * fix: review comments
13 lines
353 B
SQL
13 lines
353 B
SQL
CREATE TABLE IF NOT EXISTS "sessions" (
|
|
"uuid" TEXT NOT NULL PRIMARY KEY UNIQUE,
|
|
"username" TEXT NOT NULL,
|
|
"email" TEXT NOT NULL,
|
|
"name" TEXT NOT NULL,
|
|
"provider" TEXT NOT NULL,
|
|
"totp_pending" BOOLEAN NOT NULL,
|
|
"oauth_groups" TEXT NULL,
|
|
"expiry" INTEGER NOT NULL,
|
|
"oauth_name" TEXT NULL,
|
|
"oauth_sub" TEXT NULL
|
|
);
|