feat: review comments

This commit is contained in:
=
2025-09-10 16:12:00 +05:30
parent c682d87d95
commit 6f1c884bf5
3 changed files with 4 additions and 90 deletions
@@ -8,6 +8,7 @@ export async function up(knex: Knex): Promise<void> {
t.text("key").primary();
t.bigint("integerValue");
t.datetime("expiresAt");
t.timestamps(true, true, true);
});
}
}
+3 -1
View File
@@ -10,7 +10,9 @@ import { TImmutableDBKeys } from "./models";
export const KeyValueStoreSchema = z.object({
key: z.string(),
integerValue: z.coerce.number().nullable().optional(),
expiresAt: z.date().nullable().optional()
expiresAt: z.date().nullable().optional(),
createdAt: z.date(),
updatedAt: z.date()
});
export type TKeyValueStore = z.infer<typeof KeyValueStoreSchema>;