mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
50 lines
1.2 KiB
TypeScript
50 lines
1.2 KiB
TypeScript
import { Column, Entity, Index } 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 User from './User';
|
|
import Project from './Project';
|
|
|
|
@Entity({
|
|
name: 'SsoConfig',
|
|
})
|
|
export default class SsoConfig extends BaseModel {
|
|
public constructor() {
|
|
super(
|
|
new EncryptedColumns([]),
|
|
new UniqueColumns([]),
|
|
new RequiredColumns([]),
|
|
null
|
|
);
|
|
}
|
|
@Column({ nullable: false })
|
|
public enabled!: boolean;
|
|
|
|
@Index()
|
|
@Column({ nullable: false })
|
|
public domain!: string;
|
|
|
|
@Column({ nullable: false })
|
|
public entity!: string;
|
|
|
|
@Column({ nullable: false })
|
|
public loginUrl!: string;
|
|
|
|
@Column()
|
|
public certificateFingerprint!: string;
|
|
|
|
@Column({ nullable: false })
|
|
public logoutUrl!: string;
|
|
|
|
@Column()
|
|
public ipRanges!: string;
|
|
|
|
@Column({ nullable: false })
|
|
public deletedByUser!: User;
|
|
|
|
@Index()
|
|
@Column({ nullable: false })
|
|
public project!: Project;
|
|
}
|