Model.ts
307 Bytes
import {
Entity,
CreateDateColumn,
PrimaryGeneratedColumn,
Column,
ManyToMany,
ManyToOne,
EntityOptions,
OneToMany,
OneToOne
} from "typeorm";
import Drone from "./Drone";
@Entity("models")
export default class Model {
@PrimaryGeneratedColumn() id: string;
@Column() name: string;
}