fill data API CrewList, FishingTools, TripCost

This commit is contained in:
2025-11-06 17:28:10 +07:00
parent 6288e79622
commit 1ef83c9b22
8 changed files with 308 additions and 270 deletions

View File

@@ -121,19 +121,32 @@ declare namespace Model {
}
// Thuyền viên
interface TripCrews {
TripID: string;
PersonalID: string;
role: string;
joined_at: Date;
left_at: Date | null;
note: string | null;
Person: TripCrewPerson;
}
interface TripCrewPerson {
personal_id: string;
name: string;
phone: string;
email: string;
birth_date: Date; // ISO string (có thể chuyển sang Date nếu parse trước)
note: string;
address: string;
created_at: Date;
updated_at: Date;
}
// Chi phí chuyến đi
interface TripCost {
type: string;
unit: string;
amount: string;
total_cost: string;
cost_per_unit: string;
amount: number;
total_cost: number;
cost_per_unit: number;
}
// Thông tin mẻ lưới
interface FishingLog {