2017-04-08 20:32:14 +00:00
|
|
|
import 'rxjs/add/operator/map';
|
2017-05-20 21:55:08 +00:00
|
|
|
import { Entity, Column, PrimaryGeneratedColumn, OneToMany, ManyToOne } from "typeorm";
|
2017-04-08 20:32:14 +00:00
|
|
|
|
2017-05-20 21:55:08 +00:00
|
|
|
@Entity()
|
2017-04-08 20:32:14 +00:00
|
|
|
export class Unit {
|
|
|
|
|
2017-05-20 21:55:08 +00:00
|
|
|
@PrimaryGeneratedColumn()
|
|
|
|
id: number;
|
2017-04-08 20:32:14 +00:00
|
|
|
|
2017-05-20 21:55:08 +00:00
|
|
|
@Column()
|
|
|
|
description: string;
|
2017-04-08 20:32:14 +00:00
|
|
|
|
2017-05-20 21:55:08 +00:00
|
|
|
@Column()
|
|
|
|
initials: string;
|
2017-04-08 20:32:14 +00:00
|
|
|
|
2017-05-20 21:55:08 +00:00
|
|
|
}
|