blob: ff4c6d6fbf617168c4f8d069c62080e63ab5ceb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Column, PrimaryColumn, Entity } from 'typeorm';
@Entity('ap_context')
export class SkApContext {
@PrimaryColumn('text', {
primaryKeyConstraintName: 'PK_ap_context',
})
public md5: string;
@Column('jsonb')
// https://github.com/typeorm/typeorm/issues/8559
// eslint-disable-next-line @typescript-eslint/no-explicit-any
public json: any;
constructor(data?: Partial<SkApContext>) {
if (data) {
Object.assign(this, data);
}
}
}
|