2022-12-07 06:44:17 +00:00
|
|
|
import { Column, Entity, Index } from 'typeorm';
|
2022-11-27 20:16:28 +00:00
|
|
|
import BaseModel from 'Common/Models/BaseModel';
|
|
|
|
import TableColumnType from 'Common/Types/Database/TableColumnType';
|
|
|
|
import TableColumn from 'Common/Types/Database/TableColumn';
|
|
|
|
import ColumnType from 'Common/Types/Database/ColumnType';
|
|
|
|
import ColumnLength from 'Common/Types/Database/ColumnLength';
|
|
|
|
import TableAccessControl from 'Common/Types/Database/AccessControl/TableAccessControl';
|
|
|
|
import ColumnAccessControl from 'Common/Types/Database/AccessControl/ColumnAccessControl';
|
|
|
|
import SingularPluralName from 'Common/Types/Database/SingularPluralName';
|
|
|
|
|
|
|
|
@TableAccessControl({
|
|
|
|
create: [],
|
|
|
|
read: [],
|
|
|
|
delete: [],
|
|
|
|
update: [],
|
|
|
|
})
|
2022-12-08 16:23:21 +00:00
|
|
|
@SingularPluralName('Greenlock Certificate', 'Greenlock Certificate')
|
2022-11-27 20:16:28 +00:00
|
|
|
@Entity({
|
2022-12-08 16:23:21 +00:00
|
|
|
name: 'GreenlockCertificate',
|
2022-11-27 20:16:28 +00:00
|
|
|
})
|
|
|
|
export default class GreenlockCertificate extends BaseModel {
|
|
|
|
@Index()
|
|
|
|
@ColumnAccessControl({
|
|
|
|
create: [],
|
|
|
|
read: [],
|
|
|
|
update: [],
|
|
|
|
})
|
|
|
|
@TableColumn({ type: TableColumnType.LongText })
|
|
|
|
@Column({
|
|
|
|
type: ColumnType.LongText,
|
|
|
|
length: ColumnLength.LongText,
|
|
|
|
nullable: false,
|
|
|
|
unique: false,
|
|
|
|
})
|
|
|
|
public key?: string = undefined;
|
|
|
|
|
|
|
|
@ColumnAccessControl({
|
|
|
|
create: [],
|
|
|
|
read: [],
|
|
|
|
update: [],
|
|
|
|
})
|
|
|
|
@TableColumn({ type: TableColumnType.LongText })
|
|
|
|
@Column({
|
|
|
|
type: ColumnType.LongText,
|
|
|
|
nullable: false,
|
|
|
|
unique: false,
|
|
|
|
})
|
|
|
|
public blob?: string = undefined;
|
|
|
|
}
|