feat: add rental_category/rate to Room, rental_type/tenant_id to Occupancy, tenant_id to Student

This commit is contained in:
2026-07-05 19:31:03 +08:00
parent 92e6ba0e34
commit 881e9c6175
8 changed files with 95 additions and 2 deletions

View File

@@ -28,6 +28,12 @@ export class Room {
@Column({ length: 10, nullable: true })
gender: string;
@Column({ name: 'rental_category', length: 10, default: 'short' })
rentalCategory: string;
@Column({ name: 'monthly_rate', type: 'decimal', precision: 10, scale: 2, default: 0 })
monthlyRate: number;
@CreateDateColumn({ name: 'created_at' })
createdAt: Date;