This commit is contained in:
2025-06-03 14:19:50 +05:00
parent 53596462e9
commit 63518f36a1
4 changed files with 29 additions and 0 deletions
+3
View File
@@ -19,6 +19,9 @@ export const serversTable = pgTable("servers", {
.notNull()
.defaultNow()
.$onUpdate(() => new Date()),
status: varchar("status", { enum: ["online", "offline"] })
.notNull()
.default("online"),
});
export const serversRelations = relations(serversTable, ({ one, many }) => ({