care icon indicating copy to clipboard operation
care copied to clipboard

Constraint: AssetBed Relations

Open gigincg opened this issue 3 years ago • 0 comments

Currently AssetBed Relations are ManyToMany. Even though the Relation should work the same, we need to enforce constraints for this.

  • HL7Monitor Assets can have only 1 Bed Associated with it.
  • ONVIFCamera Assets can have multiple beds associated with it. One Bed Can have multiple Assets too
  • Assets that are neither HL7Monitor nor ONVIFCamera should not have Bed Relations

cc: @vigneshhari

gigincg avatar Jul 18 '22 13:07 gigincg