20 lines
710 B
JavaScript
20 lines
710 B
JavaScript
import { TEMPLATE_DESCRIPTION } from "../common/_module.mjs";
|
|
import { CommonAppreciable } from "../common/appreciable.mjs";
|
|
import { INTEGER, STRING } from "../common/field-types.mjs";
|
|
|
|
const fields = foundry.data.fields;
|
|
const TEMPLATE_APPRECIABLE = new CommonAppreciable();
|
|
|
|
export default class RdDModelChant extends foundry.abstract.TypeDataModel {
|
|
static defineSchema() {
|
|
return Object.assign({},
|
|
TEMPLATE_DESCRIPTION.fields(),
|
|
TEMPLATE_APPRECIABLE.fields(),
|
|
{
|
|
niveau: new fields.NumberField({ label: "Niveau", initial: 0, integer: true, min: 0 }),
|
|
reference: new fields.StringField({ label: "Référence / Auteur", initial: "", ...STRING }),
|
|
}
|
|
);
|
|
}
|
|
}
|