Skip to content

Registry server: Declarative database associations #636

@theganyo

Description

@theganyo

Manually maintaining DB integrity can be quite error prone and should generally be done via rules. For example, the current model doesn't use foreign key constraints and we have to manually code relationship integrity during deletion (eg. for wipeout. We should transition to declarative association modeling as much as possible.

GORM can automatically create and maintain the common associations:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions