feat: migrate rest schemas

This commit is contained in:
Mauricio Siu
2025-02-13 00:45:29 -06:00
parent 7c62408070
commit 0d525398a8
12 changed files with 5348 additions and 30 deletions
+2 -2
View File
@@ -47,9 +47,9 @@ export const server = pgTable("server", {
// userId: text("userId")
// .notNull()
// .references(() => user.userId, { onDelete: "cascade" }),
adminId: text("adminId")
userId: text("userId")
.notNull()
.references(() => admins.adminId, { onDelete: "cascade" }),
.references(() => users_temp.id, { onDelete: "cascade" }),
serverStatus: serverStatus("serverStatus").notNull().default("active"),
command: text("command").notNull().default(""),
sshKeyId: text("sshKeyId").references(() => sshKeys.sshKeyId, {