major updates to device and links management in admin
This commit is contained in:
@@ -15,10 +15,11 @@ export const device = pgTable("device", {
|
||||
|
||||
status: varchar("status", { length: 16 }).notNull().default("offline"), // "online" | "offline" | "busy" | "error"
|
||||
isActive: boolean("is_active").notNull().default(false),
|
||||
inUse: boolean("in_use").notNull().default(false),
|
||||
|
||||
containerId: text("container_id"), // Docker container ID on the VPS
|
||||
containerId: text("container_id").notNull(), // Docker container ID on the VPS
|
||||
host: text("host").notNull(), // VPS hostname or IP
|
||||
wsPort: text("ws_port"), // ws-scrcpy WebSocket port
|
||||
wsPort: text("ws_port").notNull(), // ws-scrcpy WebSocket port
|
||||
|
||||
createdAt: timestamp("created_at").notNull(),
|
||||
updatedAt: timestamp("updated_at").notNull(),
|
||||
|
||||
Reference in New Issue
Block a user