analyse-parrainages/common/models/elu.json

55 lines
981 B
JSON

{
"name": "Elu",
"base": "PersistedModel",
"idInjection": true,
"indexes": {
"UNIQUE_INDEX": {
"columns": "firstname,lastname,mandat,circonscription,departement",
"kind": "unique"
}
},
"options": {
"validateUpsert": true
},
"properties": {
"firstname": {
"type": "string",
"required": true,
"limit": 100
},
"lastname": {
"type": "string",
"required": true,
"limit": 100
},
"mandat": {
"type": "string",
"required": true,
"limit": 100
},
"departement": {
"type": "string",
"required": true,
"limit": 100
},
"circonscription": {
"type": "string",
"limit": 100
},
"party": {
"type": "string",
"default": "unknown"
}
},
"validations": [],
"relations": {
"parrainages": {
"type": "hasMany",
"model": "Parrainage",
"foreignKey": ""
}
},
"acls": [],
"methods": {}
}