fix(commandlog): changes to the log table
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { text, pgTable, timestamp, uuid, jsonb } from "drizzle-orm/pg-core";
|
import { jsonb, pgTable, text, timestamp, uuid } from "drizzle-orm/pg-core";
|
||||||
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
|
import { createInsertSchema, createSelectSchema } from "drizzle-zod";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
@@ -9,12 +9,12 @@ export const commandLog = pgTable(
|
|||||||
commandUsed: text("commandUsed").notNull(),
|
commandUsed: text("commandUsed").notNull(),
|
||||||
bodySent: jsonb("bodySent").default([]),
|
bodySent: jsonb("bodySent").default([]),
|
||||||
reasonUsed: text("reasonUsed"),
|
reasonUsed: text("reasonUsed"),
|
||||||
add_at: timestamp("add_Date").defaultNow(),
|
addDate: timestamp("add_Date").defaultNow(),
|
||||||
},
|
},
|
||||||
(table) => [
|
(table) => [
|
||||||
// uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),
|
// uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`),
|
||||||
// uniqueIndex("role_name").on(table.name),
|
// uniqueIndex("role_name").on(table.name),
|
||||||
]
|
],
|
||||||
);
|
);
|
||||||
|
|
||||||
// Schema for inserting a user - can be used to validate API requests
|
// Schema for inserting a user - can be used to validate API requests
|
||||||
|
|||||||
Reference in New Issue
Block a user