Closed arruda closed 2 weeks 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
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