feat: add isAdmin column to token entity; implement migration for isAdmin; enhance logging and error handling in query execution; update query plugin to support new logging structure

This commit is contained in:
lborv
2025-10-11 17:59:06 +03:00
parent 57e4a8b932
commit 08a62fa2c5
13 changed files with 135 additions and 55 deletions

View File

@ -9,7 +9,13 @@ export class Log {
@Column({ type: "varchar", length: 255 })
traceId: string;
@Column({ type: "longtext" })
@Column({
type: "longtext",
transformer: {
to: (value: TLog) => JSON.stringify(value),
from: (value: string) => JSON.parse(value) as TLog,
},
})
content: TLog;
@Column({ type: "timestamp", default: () => "CURRENT_TIMESTAMP" })