| 1 | import { |
| 2 | index, |
| 3 | mysqlTable, |
| 4 | text, |
| 5 | timestamp, |
| 6 | varchar, |
| 7 | } from "drizzle-orm/mysql-core"; |
| 8 | import { nests } |
| 9 | |
| 10 | export const eggs = |
| 11 | "eggs", |
| 12 | { |
| 13 | id: varchar("id |
| 14 | uuid: varchar("uuid |
| 15 | nestId: varchar("nest_id |
| 16 | .notNull() |
| 17 | .references(() => |
| 18 | configFrom: varchar("config_from |
| 19 | name: varchar("name |
| 20 | description: text("description |
| 21 | features: text("features |
| 22 | allowedDatabaseTypes: text("allowed_database_types |
| 23 | dockerImages: text("docker_images |
| 24 | stopCommand: varchar("stop_command |
| 25 | startup: text("startup |
| 26 | configFiles: text("config_files |
| 27 | configStartup: text("config_startup |
| 28 | configStop: text("config_stop |
| 29 | configLogs: text("config_logs |
| 30 | scriptInstall: text("script_install |
| 31 | scriptEntry: varchar("script_entry |
| 32 | scriptContainer: varchar("script_container |
| 33 | scriptExtension: varchar("script_extension |
| 34 | createdAt: timestamp("created_at |
| 35 | updatedAt: timestamp("updated_at |
| 36 | .defaultNow() |
| 37 | .$onUpdate(() => |
| 38 | .notNull(), |
| 39 | }, |
| 40 | (table) => |
| 41 | ); |