fix: change casing for apiKey schema

This commit is contained in:
Henry
2025-06-01 23:07:21 +01:00
parent 90b928bd51
commit ee5cbd1e7f
4 changed files with 7 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ export const verification = pgTable("verification", {
updatedAt: timestamp("updatedAt"),
}).enableRLS();
export const apiKey = pgTable("apiKey", {
export const apikey = pgTable("apiKey", {
id: bigserial("id", { mode: "number" }).primaryKey(),
name: text("name"),
start: text("start"),
@@ -77,9 +77,9 @@ export const apiKey = pgTable("apiKey", {
metadata: text("metadata"),
}).enableRLS();
export const apiKeyRelations = relations(apiKey, ({ one }) => ({
export const apiKeyRelations = relations(apikey, ({ one }) => ({
user: one(users, {
fields: [apiKey.userId],
fields: [apikey.userId],
references: [users.id],
}),
}));