ea28d9f5 months ago27 lines · 775 B| 1 | import { |
| 2 | index, |
| 3 | int, |
| 4 | mysqlTable, |
| 5 | timestamp, |
| 6 | varchar, |
| 7 | } from "drizzle-orm/mysql-core"; |
| 8 | import { nodes } |
| 9 | |
| 10 | export const nodeAllocations = |
| 11 | "node_allocations", |
| 12 | { |
| 13 | id: varchar("id |
| 14 | nodeId: varchar("node_id |
| 15 | .notNull() |
| 16 | .references(() => |
| 17 | ip: varchar("ip |
| 18 | ipAlias: varchar("ip_alias |
| 19 | port: int("port |
| 20 | serverId: varchar("server_id |
| 21 | createdAt: timestamp("created_at |
| 22 | }, |
| 23 | (table) => |
| 24 | index("allocations_nodeId_idx"). |
| 25 | index("allocations_serverId_idx"). |
| 26 | ], |
| 27 | ); |