File

src/entity/file-type.entity.ts

Index

Properties

Properties

files
Type : Files[]
Decorators :
@OneToMany(undefined, undefined)
id
Type : number
Decorators :
@PrimaryGeneratedColumn({unsigned: true})
name
Type : string | null
Decorators :
@Column({nullable: true, length: 255})
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[];
}

result-matching ""

    No results matching ""