mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
43 lines
1002 B
TypeScript
43 lines
1002 B
TypeScript
import { Column, Entity } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import EncryptedColumns from '../Types/Database/EncryptedColumns';
|
|
import UniqueColumns from '../Types/Database/UniqueColumns';
|
|
import RequiredColumns from '../Types/Database/RequiredColumns';
|
|
import ErrorTrackerContainer from './ErrorTrackerContainer';
|
|
import Issue from './Issue';
|
|
@Entity({
|
|
name: 'UserAlerts',
|
|
})
|
|
export default class Model extends BaseModel {
|
|
public constructor() {
|
|
super(
|
|
new EncryptedColumns([]),
|
|
new UniqueColumns([]),
|
|
new RequiredColumns([]),
|
|
null
|
|
);
|
|
}
|
|
@Column()
|
|
public errorTracker!: ErrorTrackerContainer;
|
|
@Column()
|
|
public issue!: Issue;
|
|
|
|
@Column()
|
|
public content!: Object;
|
|
|
|
@Column()
|
|
public timeline!: Object;
|
|
|
|
@Column()
|
|
public tags!: Object;
|
|
|
|
@Column()
|
|
public sdk!: Object;
|
|
|
|
@Column()
|
|
public fingerprintHash!: string;
|
|
|
|
@Column()
|
|
public device!: Object;
|
|
}
|