Revert "Merge pull request 'Complete Housekeeping migration and /ase cutover' (#52) from codex/housekeeping-complete into main"
This reverts commit488b6e57c4, reversing changes made tob506b4499a.
This commit is contained in:
1 parent
488b6e57c4
commit
b1ddda66ff
802 files changed
+61370
-76659
No files matched your search
+14
-36
@@ -11,7 +11,6 @@ import {
|
||||
datetime,
|
||||
decimal,
|
||||
double,
|
||||
index,
|
||||
int,
|
||||
longtext,
|
||||
mediumtext,
|
||||
@@ -1150,42 +1149,21 @@ export const UserWatch = mysqlTable(
|
||||
],
|
||||
);
|
||||
|
||||
export const AdminAuditLog = mysqlTable(
|
||||
"admin_audit_log",
|
||||
{
|
||||
id: int("id").autoincrement().primaryKey().notNull(),
|
||||
userId: int("user_id").notNull(),
|
||||
action: varchar("action", { length: 191 }).notNull().default(""),
|
||||
target: varchar("target", { length: 191 }).notNull().default(""),
|
||||
targetId: int("target_id"),
|
||||
details: text("details"),
|
||||
before: text("before"),
|
||||
after: text("after"),
|
||||
diff: text("diff"),
|
||||
ipAddress: varchar("ip_address", { length: 45 }),
|
||||
correlationId: varchar("correlation_id", { length: 64 }),
|
||||
outcome: varchar("outcome", { length: 32 }),
|
||||
reason: text("reason"),
|
||||
domain: varchar("domain", { length: 32 }),
|
||||
createdAt: varchar("created_at", { length: 64 }).notNull().default(""),
|
||||
updatedAt: varchar("updated_at", { length: 64 }),
|
||||
},
|
||||
(t) => [index("admin_audit_log_correlation_id_idx").on(t.correlationId)],
|
||||
);
|
||||
export const AdminAuditLog = mysqlTable("admin_audit_log", {
|
||||
id: int("id").autoincrement().primaryKey().notNull(),
|
||||
userId: int("user_id").notNull(),
|
||||
action: varchar("action", { length: 191 }).notNull().default(""),
|
||||
target: varchar("target", { length: 191 }).notNull().default(""),
|
||||
targetId: int("target_id"),
|
||||
details: text("details"),
|
||||
before: text("before"),
|
||||
after: text("after"),
|
||||
diff: text("diff"),
|
||||
ipAddress: varchar("ip_address", { length: 45 }),
|
||||
createdAt: varchar("created_at", { length: 64 }).notNull().default(""),
|
||||
updatedAt: varchar("updated_at", { length: 64 }),
|
||||
});
|
||||
|
||||
export const HousekeepingUserPreferences = mysqlTable(
|
||||
"housekeeping_user_preferences",
|
||||
{
|
||||
userId: int("user_id").primaryKey().notNull(),
|
||||
schemaVersion: int("schema_version").notNull().default(1),
|
||||
payload: longtext("payload").notNull(),
|
||||
createdAt: datetime("created_at").notNull().default(sql`CURRENT_TIMESTAMP`),
|
||||
updatedAt: datetime("updated_at").notNull().default(sql`CURRENT_TIMESTAMP`),
|
||||
},
|
||||
);
|
||||
|
||||
export type HousekeepingUserPreferenceRow =
|
||||
typeof HousekeepingUserPreferences.$inferSelect;
|
||||
export const AclRole = mysqlTable("acl_roles", {
|
||||
id: int("id").autoincrement().primaryKey().notNull(),
|
||||
slug: varchar("slug", { length: 191 }).unique().notNull(),
|
||||
|
||||
Reference in new issue
Block a user