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
37 lines
775 B
TypeScript
37 lines
775 B
TypeScript
import { column, SnakeCaseNamingStrategy } from '@ioc:Adonis/Lucid/Orm';
|
|
import BaseModel from './BaseModel';
|
|
// import { DateTime } from 'luxon';
|
|
|
|
export default class Language extends BaseModel {
|
|
public static namingStrategy = new SnakeCaseNamingStrategy();
|
|
public static primaryKey = 'id';
|
|
public static table = 'languages';
|
|
public static selfAssignPrimaryKey = false;
|
|
|
|
@column({
|
|
isPrimary: true,
|
|
})
|
|
public id: number;
|
|
|
|
@column({})
|
|
public part2_b: string;
|
|
|
|
@column({})
|
|
public part2_T: string;
|
|
|
|
@column({})
|
|
public description: string;
|
|
|
|
@column({})
|
|
public part1: string;
|
|
|
|
@column({})
|
|
public type: string;
|
|
|
|
@column({})
|
|
public ref_name: string;
|
|
|
|
@column({})
|
|
public active: boolean;
|
|
}
|