Unique constraint support (#96)

* Draft of support for the unique constraint

* Update table.md

Removed the note beside the unique keyword description
This commit is contained in:
Jack Lilhammers 2020-07-13 19:49:16 +02:00 committed by GitHub
parent 6ce50e2250
commit 42c4016273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ NUT_DECLARE_FIELD(type, property_name, read_method_name, write_method_name)
| NUT_NOT_NULL(x) | The field *x* is not allowed to store NULL value |
| NUT_LEN(x, len) | Max length of *x* is *len* in string types and in numeric typed field *x* will be store in *len* bytes |
| NUT_DEFAULT_VALUE(x, def) | Default value of *x* is *def* |
| NUT_UNIQUE(x) | Field *x* is unique (Not implemented yet!) |
| NUT_UNIQUE(x) | Field *x* is unique |
| NUT_DISPLAY_NAME(field, name) | Sets display name for field (used in model creation |
## Sample table