oneuptime/Common/Models/SslCertificate.ts
Simon Larsen f0c0715f36
fix
2022-04-29 20:52:23 +01:00

47 lines
639 B
TypeScript

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
@Entity({
name: "SslCertificate"
})
export default class SslCertificate extends BaseModel {
@Column()
certificateId!: string;
@Column()
privateKeyPem!: string;
@Column()
privateKeyJwk!: string;
@Column()
cert!: string;
@Column()
chain!: string;
@Column()
privKey!: string;
@Column()
subject!: string;
@Column()
altnames!: string;
@Column()
issuedAt!: Date;
@Column()
expiresAt!: Date;
}