spacecloud-io / space-docs

Documentation for Space Cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mention the naming technique for constraints generated by the schema module

HeyItsJs opened this issue · comments

Space Cloud auto generates constraints like foreign keys and unique keys from the SDL. These constraints need to have a name. For example:

ADD CONSTRAINT <CONSTRAINT_NAME> PRIMARY KEY (Field1);

It will be better if we can document how Space Cloud chooses this CONSTRAINT_NAME based on the table and columns.