refactor: add migration

This commit is contained in:
Mauricio Siu
2025-02-13 00:38:22 -06:00
parent 60eee55f2d
commit 23f1ce17de
13 changed files with 5661 additions and 78 deletions
+2 -2
View File
@@ -47,9 +47,9 @@ export const server = pgTable("server", {
// userId: text("userId")
// .notNull()
// .references(() => user.userId, { onDelete: "cascade" }),
userId: text("userId")
adminId: text("adminId")
.notNull()
.references(() => users_temp.id, { onDelete: "cascade" }),
.references(() => admins.adminId, { onDelete: "cascade" }),
serverStatus: serverStatus("serverStatus").notNull().default("active"),
command: text("command").notNull().default(""),
sshKeyId: text("sshKeyId").references(() => sshKeys.sshKeyId, {