notification system implemented

need refinements
This commit is contained in:
dimitar committed 2026-03-11 06:07:16 +01:00
1 parent 612259f020
commit 1143f8ca02
33 files changed
+2221 -222

No files matched your search

+5
View File
@@ -22,6 +22,8 @@ export const users = sqliteTable(
.default("client"),
phone: text("phone"),
gymId: text("gym_id"), // FK reference added after gyms table
expoPushToken: text("expo_push_token"), // For push notifications
deviceType: text("device_type", { enum: ["ios", "android"] }), // Device platform
createdAt: integer("created_at", { mode: "timestamp" })
.notNull()
.$defaultFn(() => new Date()),
@@ -33,6 +35,9 @@ export const users = sqliteTable(
emailIdx: index("users_email_idx").on(table.email),
gymIdIdx: index("users_gym_id_idx").on(table.gymId),
roleIdx: index("users_role_idx").on(table.role),
expoPushTokenIdx: index("users_expo_push_token_idx").on(
table.expoPushToken,
),
}),
);