openagri-eu / farmcalendar

European Union Public License 1.2
1 stars 0 forks source link

Create a base FarmAsset model for most models to inherity (plans, equip, sensor, etc..) #5

Closed arruda closed 2 weeks ago

arruda commented 2 months ago

Use FarmOS structure as a base: https://github.com/farmOS/farmOS/tree/3.x/modules/asset

Most assets from FarmOS don't have any new fields, like compost for example. We can do the same for now, and make sure that FarmAsset is an abstract model, since we don't want the user to register this generic model.

Other assets, like sensors, will have more fields, ie: https://github.com/farmOS/farmOS/blob/3.x/modules/asset/sensor/src/Plugin/Asset/AssetType/Sensor.php