Revert "Merge pull request 'Complete Housekeeping migration and /ase cutover' (#52) from codex/housekeeping-complete into main"
CI / check (push) Successful in 27s
CI / release (push) Skipped
CI / deploy (push) Successful in 43s

This reverts commit 488b6e57c4, reversing
changes made to b506b4499a.
This commit is contained in:
Simo committed 2026-08-30 21:31:34 +02:00
1 parent 488b6e57c4
commit b1ddda66ff
802 files changed
+61370 -76659

No files matched your search

+14 -36
View File
@@ -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(),