- replaced validation library @adonisjs/validator with @vinejs/vine (performance)
Some checks failed
CI Pipeline / japa-tests (push) Failing after 56s
Some checks failed
CI Pipeline / japa-tests (push) Failing after 56s
- npm updates
This commit is contained in:
parent
08c2edca3b
commit
ec17d79cf2
32 changed files with 1677 additions and 1670 deletions
34
app/models/mime_type.ts
Normal file
34
app/models/mime_type.ts
Normal file
|
@ -0,0 +1,34 @@
|
|||
import { column, SnakeCaseNamingStrategy } from '@adonisjs/lucid/orm';
|
||||
import BaseModel from './base_model.js';
|
||||
|
||||
export default class MimeType extends BaseModel {
|
||||
public static namingStrategy = new SnakeCaseNamingStrategy();
|
||||
public static primaryKey = 'id';
|
||||
public static table = 'mime_types';
|
||||
public static fillable: string[] = ['name', 'file_extension', 'enabled'];
|
||||
|
||||
@column({
|
||||
isPrimary: true,
|
||||
})
|
||||
public id: number;
|
||||
|
||||
@column({})
|
||||
public name: string;
|
||||
|
||||
@column({})
|
||||
public file_extension: string;
|
||||
|
||||
@column({})
|
||||
public enabled: boolean;
|
||||
|
||||
@column({})
|
||||
public visible_frontdoor: boolean;
|
||||
|
||||
|
||||
public visible_oai: boolean;
|
||||
|
||||
// @hasMany(() => Collection, {
|
||||
// foreignKey: 'role_id',
|
||||
// })
|
||||
// public collections: HasMany<typeof Collection>;
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue