April 2018
Beginner
536 pages
13h 21m
English
Our model is going to be composed of two layers. We are going to implement an entity and a repository. The entity is implemented using TypeORM:
import {
Entity,
PrimaryGeneratedColumn,
Column
} from "typeorm";
@Entity()
export class Movie {
@PrimaryGeneratedColumn()
public id!: number;
@Column()
public title!: string;
@Column()
public year!: number;
}