feat: add react tour

This commit is contained in:
Mauricio Siu
2024-12-15 02:14:43 -06:00
parent 86aba9ce3e
commit 5f297fd984
17 changed files with 4717 additions and 209 deletions

View File

@@ -40,7 +40,7 @@ export const server = pgTable("server", {
.notNull()
.references(() => admins.adminId, { onDelete: "cascade" }),
serverStatus: serverStatus("serverStatus").notNull().default("active"),
command: text("command").notNull().default(""),
sshKeyId: text("sshKeyId").references(() => sshKeys.sshKeyId, {
onDelete: "set null",
}),
@@ -105,4 +105,7 @@ export const apiUpdateServer = createSchema
username: true,
sshKeyId: true,
})
.required();
.required()
.extend({
command: z.string().optional(),
});