format and fix

This commit is contained in:
2026-02-24 23:01:11 +01:00
parent 1bb9241116
commit 81a6daaa75
17 changed files with 133 additions and 59 deletions

View File

@@ -1,12 +1,12 @@
import { relations, sql } from "drizzle-orm";
import {
boolean,
index,
jsonb,
pgTable,
text,
timestamp,
boolean,
uuid,
jsonb,
index,
} from "drizzle-orm/pg-core";
export const user = pgTable("user", {
@@ -43,7 +43,7 @@ export const session = pgTable(
.notNull()
.references(() => user.id, { onDelete: "cascade" }),
},
(table) => [index("session_userId_idx").on(table.userId)],
(table) => [index("session_userId_idx").on(table.userId)]
);
export const account = pgTable(
@@ -69,7 +69,7 @@ export const account = pgTable(
.$onUpdate(() => /* @__PURE__ */ new Date())
.notNull(),
},
(table) => [index("account_userId_idx").on(table.userId)],
(table) => [index("account_userId_idx").on(table.userId)]
);
export const verification = pgTable(
@@ -87,7 +87,7 @@ export const verification = pgTable(
.$onUpdate(() => /* @__PURE__ */ new Date())
.notNull(),
},
(table) => [index("verification_identifier_idx").on(table.identifier)],
(table) => [index("verification_identifier_idx").on(table.identifier)]
);
export const jwks = pgTable("jwks", {
@@ -240,7 +240,7 @@ export const oauthRefreshTokenRelations = relations(
references: [user.id],
}),
oauthAccessTokens: many(oauthAccessToken),
}),
})
);
export const oauthAccessTokenRelations = relations(
@@ -262,7 +262,7 @@ export const oauthAccessTokenRelations = relations(
fields: [oauthAccessToken.refreshId],
references: [oauthRefreshToken.id],
}),
}),
})
);
export const oauthConsentRelations = relations(oauthConsent, ({ one }) => ({