251213:1509 Docunment Number Businee Rule not correct
Spec Validation / validate-markdown (push) Has been cancelled
Spec Validation / validate-diagrams (push) Has been cancelled
Spec Validation / check-todos (push) Has been cancelled

This commit is contained in:
admin
2025-12-13 15:09:01 +07:00
parent d964546c8d
commit ec35521258
64 changed files with 11956 additions and 223 deletions
@@ -9,7 +9,6 @@ import {
PrimaryGeneratedColumn,
Unique,
} from 'typeorm';
import { Correspondence } from '../../correspondence/entities/correspondence.entity';
import { User } from '../../user/entities/user.entity';
import { RfaApproveCode } from './rfa-approve-code.entity';
import { RfaItem } from './rfa-item.entity';
@@ -24,9 +23,6 @@ export class RfaRevision {
@PrimaryGeneratedColumn()
id!: number;
@Column({ name: 'correspondence_id' })
correspondenceId!: number;
@Column({ name: 'rfa_id' })
rfaId!: number;
@@ -45,8 +41,8 @@ export class RfaRevision {
@Column({ name: 'rfa_approve_code_id', nullable: true })
rfaApproveCodeId?: number;
@Column({ length: 255 })
title!: string;
@Column({ length: 500 })
subject!: string;
@Column({ name: 'document_date', type: 'date', nullable: true })
documentDate?: Date;
@@ -57,12 +53,21 @@ export class RfaRevision {
@Column({ name: 'received_date', type: 'datetime', nullable: true })
receivedDate?: Date;
@Column({ name: 'due_date', type: 'datetime', nullable: true })
dueDate?: Date;
@Column({ name: 'approved_date', type: 'date', nullable: true })
approvedDate?: Date;
@Column({ type: 'text', nullable: true })
description?: string;
@Column({ type: 'text', nullable: true })
body?: string;
@Column({ type: 'text', nullable: true })
remarks?: string;
// --- JSON & Schema Section ---
@Column({ type: 'json', nullable: true })
@@ -95,10 +100,6 @@ export class RfaRevision {
// --- Relations ---
@ManyToOne(() => Correspondence)
@JoinColumn({ name: 'correspondence_id' })
correspondence!: Correspondence;
@ManyToOne(() => Rfa)
@JoinColumn({ name: 'rfa_id' })
rfa!: Rfa;