feat: 恭学教育基地管理系统初始提交

- 后端: NestJS 11 + TypeORM + JWT认证 + SQLite/MySQL
- 前端: React 19 + Ant Design 6 + Vite 8 + ECharts
- 功能模块: 数据面板、学生管理、宿舍管理、入住管理、费用录入、账单管理、教室管理、押金管理、操作日志、账号管理
- 支持Docker一键部署
This commit is contained in:
陈浩
2026-06-06 17:26:10 +08:00
commit 78676a124a
123 changed files with 26403 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, ManyToOne, JoinColumn } from 'typeorm';
import { Room } from './room.entity';
@Entity('room_expenses')
export class RoomExpense {
@PrimaryGeneratedColumn()
id: number;
@Column({ name: 'room_id' })
roomId: number;
@Column({ name: 'expense_type', type: 'varchar', length: 20 })
expenseType: string;
@Column({ type: 'decimal', precision: 10, scale: 2 })
amount: number;
@Column({ name: 'period_start', type: 'date' })
periodStart: string;
@Column({ name: 'period_end', type: 'date' })
periodEnd: string;
@Column({ type: 'text', nullable: true })
description: string;
@Column({ name: 'recorded_by', nullable: true })
recordedBy: number;
@CreateDateColumn({ name: 'created_at' })
createdAt: Date;
@ManyToOne(() => Room, (r) => r.roomExpenses)
@JoinColumn({ name: 'room_id' })
room: Room;
}