Arno Kaimbacher
ebb24cc75c
Some checks failed
CI Pipeline / japa-tests (push) Failing after 51s
- added model DocumentXmlCache.ts - npm updates - changed all models inside app/Models to use corrected BaseModel.ts - added extra extension class DatasetExtension.ts for app/dataset.ts for caching internal and external fields
55 lines
1.1 KiB
TypeScript
55 lines
1.1 KiB
TypeScript
import { column, SnakeCaseNamingStrategy } from '@ioc:Adonis/Lucid/Orm';
|
|
import BaseModel from './BaseModel';
|
|
|
|
export default class License extends BaseModel {
|
|
public static namingStrategy = new SnakeCaseNamingStrategy();
|
|
public static primaryKey = 'id';
|
|
public static table = 'document_licences';
|
|
public static selfAssignPrimaryKey = false;
|
|
public static timestamps = false;
|
|
public static fillable: string[] = [
|
|
'name_long',
|
|
'name',
|
|
'language',
|
|
'link_licence',
|
|
'link_logo',
|
|
'desc_text',
|
|
'desc_markup',
|
|
'comment_internal',
|
|
'mime_type',
|
|
'sort_order',
|
|
'language',
|
|
'active',
|
|
'pod_allowed',
|
|
];
|
|
|
|
@column({
|
|
isPrimary: true,
|
|
})
|
|
public id: number;
|
|
|
|
@column({})
|
|
public active: boolean;
|
|
|
|
@column({})
|
|
public langauge: string;
|
|
|
|
@column({})
|
|
public link_licence: string;
|
|
|
|
@column({})
|
|
public link_logo: string;
|
|
|
|
@column({})
|
|
public display_name: string;
|
|
|
|
@column({})
|
|
public name_long: string;
|
|
|
|
@column({})
|
|
public name: string;
|
|
|
|
@column({})
|
|
public sortOrder: number;
|
|
}
|