2022-04-30 10:57:20 +00:00
|
|
|
import { Column, Entity } from 'typeorm';
|
2022-04-30 10:39:37 +00:00
|
|
|
import BaseModel from './BaseModel';
|
2022-05-01 12:41:55 +00:00
|
|
|
|
2022-04-30 10:39:37 +00:00
|
|
|
import Team from './Team';
|
|
|
|
import User from './User';
|
2022-04-26 20:24:24 +00:00
|
|
|
|
2022-04-27 19:38:55 +00:00
|
|
|
@Entity({
|
2022-04-30 10:57:20 +00:00
|
|
|
name: 'UserAlerts',
|
2022-04-27 19:38:55 +00:00
|
|
|
})
|
2022-04-30 10:39:37 +00:00
|
|
|
export default class Model extends BaseModel {
|
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public startTime?: Date = undefined;
|
2022-04-26 20:34:05 +00:00
|
|
|
|
2022-04-30 10:39:37 +00:00
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public endTime?: Date = undefined;
|
2022-04-26 20:34:05 +00:00
|
|
|
|
2022-04-30 10:39:37 +00:00
|
|
|
@Column()
|
2022-05-19 19:41:12 +00:00
|
|
|
public timezone?: string = undefined;
|
2022-04-26 20:24:24 +00:00
|
|
|
|
2022-04-30 10:39:37 +00:00
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public user?: User;
|
2022-04-26 20:24:24 +00:00
|
|
|
|
2022-04-30 10:39:37 +00:00
|
|
|
@Column()
|
2022-05-18 20:49:52 +00:00
|
|
|
public team?: Team;
|
2022-04-30 10:39:37 +00:00
|
|
|
}
|