After fixing the initial data.

In the Hearing table made the changes
1. Unique constraint on next_hearing_date & case_id
2. Made case_id non nullable as without it the data is garbage
3. Made the court_status_id in hearing non nullable
This commit is contained in:
2021-01-20 09:56:39 +05:30
parent e4783bc64e
commit 78e1ccd756
12 changed files with 22 additions and 47 deletions

View File

@ -5,7 +5,7 @@ export class Hearing {
courtNumber: string;
itemNumber: string;
bench: string;
courtStatus: CourtStatus | null;
courtStatus: CourtStatus;
proceedings: string;
complianceDate: string | null;
nextHearingDate: string | null;
@ -15,7 +15,7 @@ export class Hearing {
this.courtNumber = '';
this.itemNumber = '';
this.bench = '';
this.courtStatus = null;
this.courtStatus = new CourtStatus();
this.proceedings = '';
this.complianceDate = null;
this.nextHearingDate = null;