|
|
@@ -1,5 +1,7 @@
|
|
|
import ApiModel from '~/models/ApiModel'
|
|
|
import { Bool, Num, Str, Uid, Attr } from 'pinia-orm/dist/decorators'
|
|
|
+import Access from "~/models/Access/Access";
|
|
|
+import ApiResource from "~/models/ApiResource";
|
|
|
|
|
|
/**
|
|
|
* AP2i Model : Parameters
|
|
|
@@ -8,6 +10,9 @@ import { Bool, Num, Str, Uid, Attr } from 'pinia-orm/dist/decorators'
|
|
|
*/
|
|
|
export default class Parameters extends ApiModel {
|
|
|
static entity = 'parameters'
|
|
|
+ static readonly relations: Record<string, ApiResource> = {
|
|
|
+ publicationDirectors: Access
|
|
|
+ }
|
|
|
|
|
|
@Uid()
|
|
|
declare id: number | string | null
|
|
|
@@ -121,5 +126,5 @@ export default class Parameters extends ApiModel {
|
|
|
declare subdomains: []
|
|
|
|
|
|
@Bool(false, { notNullable: true })
|
|
|
- declare notifyAdministrationAbsence: boolean
|
|
|
+ declare notifyAdministrationAbsence: boolean
|
|
|
}
|