When creating a new system, the UUID of the corresponding profile to link it to is supplied. Before creating it, a check should be done to see if the profile to link actually exists and return an error if this is not the case.
The database will do this because of the foreign keys that are used, but this responsibility should be moved to the code itself.
When creating a new system, the UUID of the corresponding profile to link it to is supplied. Before creating it, a check should be done to see if the profile to link actually exists and return an error if this is not the case.
The database will do this because of the foreign keys that are used, but this responsibility should be moved to the code itself.