mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
26 lines
465 B
TypeScript
26 lines
465 B
TypeScript
import { Column, Entity } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
|
|
import Team from './Team';
|
|
import User from './User';
|
|
|
|
@Entity({
|
|
name: 'UserAlerts',
|
|
})
|
|
export default class Model extends BaseModel {
|
|
@Column()
|
|
public startTime?: Date = undefined;
|
|
|
|
@Column()
|
|
public endTime?: Date = undefined;
|
|
|
|
@Column()
|
|
public timezone?: string = undefined;
|
|
|
|
@Column()
|
|
public user?: User;
|
|
|
|
@Column()
|
|
public team?: Team;
|
|
}
|