/**
 * DataModel pour les items de type "specialty" (spécialités de compétence).
 * Modèle minimal sans base partagée.
 * @augments {foundry.abstract.TypeDataModel}
 */
export default class VermineSpecialtyData extends foundry.abstract.TypeDataModel {
  /** @override */
  static LOCALIZATION_PREFIXES = ["VERMINE.item.specialty"]

  /** @override */
  static defineSchema() {
    const fields = foundry.data.fields
    const reqInt = { required: true, nullable: false, integer: true }
    return {
      name: new fields.StringField({ required: true, nullable: false, initial: "" }),
      skill: new fields.StringField({ required: true, nullable: false, initial: "" }),
      level: new fields.NumberField({ ...reqInt, initial: 1, min: 0, max: 5 })
    }
  }
}
