From 5c834e269bfff00b92ee63862cbbc7165743de9e Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Wed, 13 May 2026 16:36:35 +0100 Subject: add better-auth --- .../better-auth_migrations/2026-05-13T15-14-44.314Z.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 communities/red-right-hand/174bg.net/better-auth_migrations/2026-05-13T15-14-44.314Z.sql (limited to 'communities/red-right-hand/174bg.net/better-auth_migrations/2026-05-13T15-14-44.314Z.sql') diff --git a/communities/red-right-hand/174bg.net/better-auth_migrations/2026-05-13T15-14-44.314Z.sql b/communities/red-right-hand/174bg.net/better-auth_migrations/2026-05-13T15-14-44.314Z.sql new file mode 100644 index 0000000..5a2fae9 --- /dev/null +++ b/communities/red-right-hand/174bg.net/better-auth_migrations/2026-05-13T15-14-44.314Z.sql @@ -0,0 +1,13 @@ +create table "user" ("id" text not null primary key, "name" text not null, "email" text not null unique, "emailVerified" boolean not null, "image" text, "createdAt" timestamptz default CURRENT_TIMESTAMP not null, "updatedAt" timestamptz default CURRENT_TIMESTAMP not null); + +create table "session" ("id" text not null primary key, "expiresAt" timestamptz not null, "token" text not null unique, "createdAt" timestamptz default CURRENT_TIMESTAMP not null, "updatedAt" timestamptz not null, "ipAddress" text, "userAgent" text, "userId" text not null references "user" ("id") on delete cascade); + +create table "account" ("id" text not null primary key, "accountId" text not null, "providerId" text not null, "userId" text not null references "user" ("id") on delete cascade, "accessToken" text, "refreshToken" text, "idToken" text, "accessTokenExpiresAt" timestamptz, "refreshTokenExpiresAt" timestamptz, "scope" text, "password" text, "createdAt" timestamptz default CURRENT_TIMESTAMP not null, "updatedAt" timestamptz not null); + +create table "verification" ("id" text not null primary key, "identifier" text not null, "value" text not null, "expiresAt" timestamptz not null, "createdAt" timestamptz default CURRENT_TIMESTAMP not null, "updatedAt" timestamptz default CURRENT_TIMESTAMP not null); + +create index "session_userId_idx" on "session" ("userId"); + +create index "account_userId_idx" on "account" ("userId"); + +create index "verification_identifier_idx" on "verification" ("identifier"); \ No newline at end of file -- cgit v1.2.3