add contracts

This commit is contained in:
2023-01-02 14:46:59 +01:00
parent 10b7f89831
commit 07dff73152
36 changed files with 1671 additions and 45 deletions

View File

@ -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)"
]
}
]
}