import { Column, CreateDateColumn, Entity, PrimaryGeneratedColumn } from 'typeorm'; @Entity('audit_logs') export class AuditLog { @PrimaryGeneratedColumn('uuid') id!: string; @Column() action!: string; @Column({ type: 'varchar', length: 64, nullable: true }) actorId!: string | null; @Column({ type: 'varchar', length: 64, nullable: true }) targetType!: string | null; @Column({ type: 'varchar', length: 120, nullable: true }) targetId!: string | null; @Column({ type: 'text', nullable: true }) detail!: string | null; @CreateDateColumn() createdAt!: Date; }