Files
paperlessmanager/paperless-backend/src/database/entities/user-settings.entity.ts
T
bjoernpoettker 8212f733ab
Build and Push Multi-Platform Images / build-and-push (push) Successful in 27s
feat: implement AES-256-GCM encryption for SMTP passwords with environment-based key support
2026-05-06 20:10:20 +02:00

29 lines
765 B
TypeScript

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;
}