Initial commit

This commit is contained in:
2026-06-25 01:57:07 +08:00
commit 1c5841833f
103 changed files with 16911 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
import { EntitySchema } from 'typeorm'
export type ClassEntity = {
id: string
name: string
type: string
familyPhoto: string | null
}
export const ClassEntitySchema = new EntitySchema<ClassEntity>({
name: 'ClassEntity',
tableName: 'classes',
columns: {
id: {
type: String,
primary: true
},
name: {
type: String
},
type: {
type: String,
default: 'cheap'
},
familyPhoto: {
name: 'family_photo',
type: String,
nullable: true
}
},
relations: {}
})