260330:1011 Addied correspondence_revieion_attcahments table table #01
CI / CD Pipeline / build (push) Failing after 21m19s
CI / CD Pipeline / deploy (push) Has been skipped

This commit is contained in:
admin
2026-03-30 10:11:40 +07:00
parent 1c6fec6c65
commit c83588ab43
287 changed files with 15117 additions and 69 deletions
+13 -5
View File
@@ -6,13 +6,20 @@ export interface Organization {
export interface Attachment {
publicId: string; // ADR-019: public identifier
name: string;
url: string;
size?: number;
type?: string;
originalFilename: string;
storedFilename?: string;
fileSize?: number;
mimeType?: string;
filePath?: string;
createdAt?: string;
}
// [FIX v1.8.1] ประเภทข้อมูล junction table correspondence_revision_attachments
export interface AttachmentLink {
isMainDocument: boolean;
attachment: Attachment;
}
// Used in List View mainly
export interface CorrespondenceRevision {
publicId: string; // ADR-019: public identifier
@@ -34,7 +41,8 @@ export interface CorrespondenceRevision {
statusName: string;
};
details?: Record<string, unknown> | null;
attachments?: Attachment[];
// [FIX v1.8.1] ไฟล์แนบผ่าน junction table (correspondence_revision_attachments)
attachmentLinks?: AttachmentLink[];
createdAt: string;
// Nested Relation from Backend Refactor