aboutsummaryrefslogtreecommitdiff
path: root/communities/red-right-hand/174bg.net/better-auth_migrations
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-13 16:36:35 +0100
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2026-05-13 16:36:35 +0100
commit5c834e269bfff00b92ee63862cbbc7165743de9e (patch)
treebe15791166e572b246dd7a4adba0cf66d3bffe08 /communities/red-right-hand/174bg.net/better-auth_migrations
parent7dd09b51c733532ecb54951237f94368dd11badd (diff)
downloadunnamed-group-5c834e269bfff00b92ee63862cbbc7165743de9e.tar
unnamed-group-5c834e269bfff00b92ee63862cbbc7165743de9e.tar.gz
unnamed-group-5c834e269bfff00b92ee63862cbbc7165743de9e.tar.bz2
unnamed-group-5c834e269bfff00b92ee63862cbbc7165743de9e.tar.xz
unnamed-group-5c834e269bfff00b92ee63862cbbc7165743de9e.zip
add better-auth
Diffstat (limited to 'communities/red-right-hand/174bg.net/better-auth_migrations')
-rw-r--r--communities/red-right-hand/174bg.net/better-auth_migrations/2026-05-13T15-14-44.314Z.sql13
1 files changed, 13 insertions, 0 deletions
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