add contracts
This commit is contained in:
13
schema.json
13
schema.json
@ -157,6 +157,19 @@
|
||||
{ "name": "tenant", "sqltype": "integer", "notnull": true, "foreignkey": true },
|
||||
{ "name": "note", "sqltype": "varchar(4096)", "notnull": true }
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "contract",
|
||||
"immutable": false,
|
||||
"columns": [
|
||||
{ "name": "supplier", "sqltype": "varchar(256)", "notnull": true, "selector": 0 },
|
||||
{ "name": "content", "sqltype": "varchar(256)", "notnull": true, "selector": 1 },
|
||||
{ "name": "identifier", "sqltype": "varchar(256)", "notnull": true },
|
||||
{ "name": "notes", "sqltype": "varchar(4096)", "notnull": false }
|
||||
],
|
||||
"tableConstraints": [
|
||||
"unique(supplier, content)"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user