import { Entity, PrimaryColumn, Column } from 'typeorm'; @Entity('user_settings') export class UserSettings { @PrimaryColumn({ type: 'varchar', length: 255 }) UserId!: string; @Column({ type: 'varchar', length: 255, nullable: true }) SmtpHost!: string | null; @Column({ type: 'int', nullable: true }) SmtpPort!: number | null; @Column({ type: 'boolean', default: false }) SmtpSecure!: boolean; @Column({ type: 'varchar', length: 255, nullable: true }) SmtpUser!: string | null; @Column({ type: 'varchar', length: 512, nullable: true }) SmtpPass!: string | null; @Column({ type: 'varchar', length: 255, nullable: true }) SmtpFrom!: string | null; @Column({ type: 'text', nullable: true }) MailSignatureHtml!: string | null; }