| 1 | import { |
| 2 | index, |
| 3 | mysqlTable, |
| 4 | text, |
| 5 | timestamp, |
| 6 | varchar, |
| 7 | } from "drizzle-orm/mysql-core"; |
| 8 | |
| 9 | export const activityLogs = |
| 10 | "activity_logs", |
| 11 | { |
| 12 | id: varchar("id |
| 13 | batchUuid: varchar("batch_uuid |
| 14 | eventType: varchar("event_type |
| 15 | userId: varchar("user_id |
| 16 | serverId: varchar("server_id |
| 17 | nodeId: varchar("node_id |
| 18 | properties: text("properties |
| 19 | ip: varchar("ip |
| 20 | hashedIp: varchar("hashed_ip |
| 21 | timestamp: timestamp("timestamp |
| 22 | }, |
| 23 | (table) => |
| 24 | index("activity_logs_serverId_idx"). |
| 25 | index("activity_logs_userId_idx"). |
| 26 | index("activity_logs_timestamp_idx"). |
| 27 | ], |
| 28 | ); |