| 1 | import { |
| 2 | boolean, |
| 3 | index, |
| 4 | mysqlTable, |
| 5 | text, |
| 6 | timestamp, |
| 7 | varchar, |
| 8 | } from "drizzle-orm/mysql-core"; |
| 9 | import { eggs } |
| 10 | |
| 11 | export const eggVariables = |
| 12 | "egg_variables", |
| 13 | { |
| 14 | id: varchar("id |
| 15 | eggId: varchar("egg_id |
| 16 | .notNull() |
| 17 | .references(() => |
| 18 | name: varchar("name |
| 19 | description: text("description |
| 20 | envVariable: varchar("env_variable |
| 21 | defaultValue: text("default_value |
| 22 | userViewable: boolean("user_viewable |
| 23 | userEditable: boolean("user_editable |
| 24 | rules: text("rules |
| 25 | createdAt: timestamp("created_at |
| 26 | updatedAt: timestamp("updated_at |
| 27 | .defaultNow() |
| 28 | .$onUpdate(() => |
| 29 | .notNull(), |
| 30 | }, |
| 31 | (table) => |
| 32 | ); |