Migration datamodels !

This commit is contained in:
2026-01-10 16:05:56 +01:00
parent 627ccc707b
commit 438caf3b1c
3946 changed files with 318813 additions and 3453 deletions

25
modules/models/charme.mjs Normal file
View File

@@ -0,0 +1,25 @@
/**
* Data model pour les charmes
*/
export default class CharmeDataModel extends foundry.abstract.TypeDataModel {
static defineSchema() {
const fields = foundry.data.fields;
return {
description: new fields.HTMLField({ initial: "" }),
charmetype: new fields.StringField({ initial: "tour" }),
resultats: new fields.ArrayField(new fields.SchemaField({
value: new fields.NumberField({ initial: -1, integer: true }),
description: new fields.StringField({ initial: "" })
}), {
initial: [
{ value: -1, description: "" },
{ value: -1, description: "" },
{ value: -1, description: "" },
{ value: -1, description: "" },
{ value: -1, description: "" },
{ value: -1, description: "" }
]
})
};
}
}