mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
75 lines
1.0 KiB
TypeScript
75 lines
1.0 KiB
TypeScript
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
@Entity({
|
|
name: "UserAlerts"
|
|
})
|
|
export default class Model extends BaseModel{
|
|
|
|
@Column()
|
|
store!: {
|
|
|
|
@Column()
|
|
type!: Object;
|
|
|
|
@Column()
|
|
default!: {
|
|
|
|
@Column()
|
|
module!: 'oneuptime-le-store';
|
|
};
|
|
};
|
|
|
|
@Column()
|
|
challenges!: {
|
|
|
|
@Column()
|
|
'http-01'!: {
|
|
|
|
@Column()
|
|
type!: Object;
|
|
|
|
@Column()
|
|
default!: {
|
|
|
|
@Column()
|
|
module!: 'oneuptime-acme-http-01';
|
|
};
|
|
};
|
|
};
|
|
|
|
@Column()
|
|
renewOffset: { type: string, default!: '-45d' };
|
|
|
|
@Column()
|
|
renewStagger: { type: string, default!: '3d' };
|
|
|
|
@Column()
|
|
accountKeyType!: string;
|
|
|
|
@Column()
|
|
serverKeyType!: string;
|
|
|
|
@Column()
|
|
subscriberEmail!: string;
|
|
|
|
@Column()
|
|
agreeToTerms!: boolean;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|