You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.1 KiB
TypeScript

import { Entity, PrimaryGeneratedColumn, Column, OneToOne, JoinColumn } from 'typeorm';
import { ContactInformation } from './ContactInformation';
@Entity()
export class Participant {
@PrimaryGeneratedColumn()
id: number;
@Column({
type: 'date'
})
start: Date;
@Column({
type: 'date'
})
end: Date;
@OneToOne(type => ContactInformation)
@JoinColumn()
contactInformation: ContactInformation;
@Column()
usernameflotte: string;
@Column()
usernameSlack: string;
@Column()
memberADFC: boolean;
@Column({
type: 'simple-array'
})
locationZIPs: string[];
@Column()
roleCoreTeam: boolean;
@Column()
roleCoordinator: boolean;
@Column()
roleEmployeADFC: boolean;
@Column()
roleMentor: boolean;
@Column()
roleAmbulance: boolean;
@Column()
roleBringer: boolean;
@Column({
type: 'date'
})
workshopMentor: Date;
@Column({
type: 'date'
})
workshopAmbulance: Date;
@Column({
nullable: true
})
reserve: string;
}