src/entity/file-type.entity.ts
Properties |
files |
Type : Files[]
|
Decorators :
@OneToMany(undefined, undefined)
|
Defined in src/entity/file-type.entity.ts:20
|
id |
Type : number
|
Decorators :
@PrimaryGeneratedColumn({unsigned: true})
|
Defined in src/entity/file-type.entity.ts:11
|
name |
Type : string | null
|
Decorators :
@Column({nullable: true, length: 255})
|
Defined in src/entity/file-type.entity.ts:17
|
import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from "typeorm";
import { FilesCourse } from "./file-course.entity";
import { Files } from "./file-descriptor.entity";
@Entity()
export class FileType {
@PrimaryGeneratedColumn({
unsigned: true,
})
id: number;
@Column({
nullable: true,
length: 255,
})
name: string | null;
@OneToMany(type => Files, files => files.fileType)
files: Files[];
}