ea28d9f5 months ago25 lines · 689 B| 1 | import { |
| 2 | index, |
| 3 | mysqlTable, |
| 4 | unique, |
| 5 | varchar, |
| 6 | } from "drizzle-orm/mysql-core"; |
| 7 | import { servers } |
| 8 | import { mounts } |
| 9 | |
| 10 | export const serverMounts = |
| 11 | "server_mounts", |
| 12 | { |
| 13 | id: varchar("id |
| 14 | serverId: varchar("server_id |
| 15 | .notNull() |
| 16 | .references(() => |
| 17 | mountId: varchar("mount_id |
| 18 | .notNull() |
| 19 | .references(() => |
| 20 | }, |
| 21 | (table) => |
| 22 | index("server_mounts_serverId_idx"). |
| 23 | unique("server_mounts_unique"). |
| 24 | ], |
| 25 | ); |