ciatph / wysiwyg-list-editor

Encode rich text and preserve its format as HTML tags
https://ciatph.github.io/wysiwyg-list-editor/
1 stars 0 forks source link

Create the main object schemas #4

Closed ciatph closed 1 year ago

ciatph commented 1 year ago

Create mongoose schemas for the project's main objects:

SeasonalTable

Contains a list of SeasonalObjects

 - id
 - uid
 - records[] // ids of SeasonalObjects
 - name
 - description
 - updated_by
 - date_created
 - date_updated

SeasonalObject

Record object

 - id
 - uid
 - crop_stage
 - farm_operation
 - forecast
 - impacts
 - impacts_tg
 - practice
 - practice_tg
 - updated_by
 - date_created
 - date_updated

CropStage

Crop stages list

 - id
 - name
 - code

FarmOperation

Farm operations list

 - id
 - name
 - code

Forecast

Weather forecast list

 - id
 - name
 - code