Skip to content

Customisable meta-data #328

@mattdy

Description

@mattdy

Area

Backend (API)

Problem / Motivation

Current structure does not allow storage of meta-data such as 'decant time' or 'storage temperature'.

Proposed Solution

Rather than forcing a set of meta-data on users, consider allowing customisable fields on each resource.

meta_fields table structure:

  • id: Primary key
  • resource: Type of resource this applies to
  • name: Customisable name, such as 'Decant Time'
  • type: Enum of meta-data type - text / number / decimal / date / interval etc

Each resource type table would then have a meta field added, which would have JSON structure:

{
['id':'12', 'value':'1 hour'],
['id':'15', 'value':'15C']
}

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendApplies to the backend server applicationdesign-requiredFurther discussion/decision needed on how to design & implement
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions