linter fixes, env fixes
All checks were successful
Lint / Lint and Check (push) Successful in 51s

This commit is contained in:
2025-07-15 23:15:32 +02:00
parent f5fff9c52b
commit b02f5e6364
8 changed files with 169 additions and 66 deletions

View File

@@ -28,9 +28,7 @@ export const habits = pgTable(
createdAt: timestamp('created_at').defaultNow().notNull(),
archivedAt: timestamp('archived_at'),
},
(table) => ({
userIdIdx: index('habits_user_id_idx').on(table.userId),
}),
(table) => [index('habits_user_id_idx').on(table.userId)],
);
export const habitLogs = pgTable(
@@ -43,10 +41,10 @@ export const habitLogs = pgTable(
loggedAt: timestamp('logged_at').defaultNow().notNull(),
note: text('note'),
},
(table) => ({
habitIdIdx: index('habit_logs_habit_id_idx').on(table.habitId),
loggedAtIdx: index('habit_logs_logged_at_idx').on(table.loggedAt),
}),
(table) => [
index('habit_logs_habit_id_idx').on(table.habitId),
index('habit_logs_logged_at_idx').on(table.loggedAt),
],
);
// Relations