Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (15 sloc) 477 Bytes
import {Entity, Column, PrimaryGeneratedColumn, ManyToOne} from "typeorm";
import {CatalogEdition} from "./CatalogEdition";
@Entity()
export class CatalogEntry {
@PrimaryGeneratedColumn()
id: number;
@Column()
title: string;
@Column()
author: string;
@Column()
isPublished: boolean;
@ManyToOne(type => CatalogEdition, catalogEdition => catalogEdition.catalogEntries)
catalogEdition: CatalogEdition;
}
You can’t perform that action at this time.