mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
@Entity('cd_cert_info')
|
|
export class CertInfoEntity {
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@Column({ name: 'user_id', comment: '用户id' })
|
|
userId: number;
|
|
|
|
@Column({ name: 'domain', comment: '主域名' })
|
|
domain: string;
|
|
|
|
@Column({ name: 'domains', comment: '域名' })
|
|
domains: string;
|
|
|
|
@Column({ name: 'domain_count', comment: '域名数量' })
|
|
domainCount: number;
|
|
|
|
@Column({ name: 'pipeline_id', comment: '关联流水线id' })
|
|
pipelineId: number;
|
|
|
|
@Column({ name: 'apply_time', comment: '申请时间' })
|
|
applyTime: string;
|
|
|
|
@Column({ name: 'from_type', comment: '来源' })
|
|
fromType: string;
|
|
|
|
@Column({ name: 'cert_provider', comment: '证书颁发机构' })
|
|
certProvider: string;
|
|
|
|
@Column({ name: 'expires_time', comment: '过期时间' })
|
|
expiresTime: number;
|
|
|
|
@Column({ name: 'cert_info', comment: '证书详情' })
|
|
certInfo: string;
|
|
|
|
@Column({ name: 'cert_file', comment: '证书下载' })
|
|
certFile: string;
|
|
|
|
@Column({
|
|
name: 'create_time',
|
|
comment: '创建时间',
|
|
default: () => 'CURRENT_TIMESTAMP',
|
|
})
|
|
createTime: Date;
|
|
|
|
@Column({
|
|
name: 'update_time',
|
|
comment: '修改时间',
|
|
default: () => 'CURRENT_TIMESTAMP',
|
|
})
|
|
updateTime: Date;
|
|
}
|