2017-04-03 20:33:18 +00:00
|
|
|
import 'rxjs/add/operator/map';
|
2017-05-20 21:55:08 +00:00
|
|
|
import { Entity, Column, PrimaryGeneratedColumn, OneToMany } from "typeorm";
|
2017-04-03 20:33:18 +00:00
|
|
|
import { Survey } from "./Survey";
|
|
|
|
|
2017-05-20 21:55:08 +00:00
|
|
|
@Entity()
|
2017-04-03 20:33:18 +00:00
|
|
|
export class List {
|
|
|
|
|
2017-05-20 21:55:08 +00:00
|
|
|
@PrimaryGeneratedColumn()
|
|
|
|
id: number;
|
2017-04-03 20:33:18 +00:00
|
|
|
|
2017-05-20 21:55:08 +00:00
|
|
|
@Column()
|
|
|
|
date: Date;
|
2017-04-03 20:33:18 +00:00
|
|
|
|
2017-05-20 21:55:08 +00:00
|
|
|
@OneToMany(type => Survey, survey => survey.list)
|
|
|
|
surveys: Survey[];
|
2017-04-03 20:33:18 +00:00
|
|
|
|
2017-05-20 21:55:08 +00:00
|
|
|
}
|