fix some foreign id fields and max-length

This commit is contained in:
Yuri Kuznetsov
2023-02-09 16:24:02 +02:00
parent a4f75f1423
commit 89b912ee73
5 changed files with 12 additions and 16 deletions
@@ -3,6 +3,9 @@
"storage": {
"readOnly": true
},
"source": {
"readOnly": true
},
"sourceId": {
"readOnly": true
}
@@ -36,7 +36,7 @@
},
"ipAddress": {
"type": "varchar",
"maxLength": "39"
"maxLength": 39
},
"authToken": {
"type": "link"
@@ -25,12 +25,10 @@
"view": "views/attachment/fields/parent",
"validatorClassName": "Espo\\Classes\\FieldValidators\\Attachment\\Related"
},
"sourceId": {
"type": "varchar",
"maxLength": 36,
"source": {
"type": "link",
"readOnly": true,
"disabled": true,
"index": true
"disabled": true
},
"field": {
"type": "varchar",
@@ -19,7 +19,7 @@
},
"ipAddress": {
"type": "varchar",
"maxLength": "45",
"maxLength": 45,
"readOnly": true
},
"createdAt": {
@@ -55,7 +55,7 @@
"requestMethod": {
"type": "varchar",
"readOnly": true,
"maxLength": "15"
"maxLength": 15
},
"authTokenIsActive": {
"type": "foreign",
@@ -2,7 +2,7 @@
"fields": {
"token": {
"type": "varchar",
"maxLength": "36",
"maxLength": 36,
"index": true,
"readOnly": true
},
@@ -14,12 +14,7 @@
},
"secret": {
"type": "varchar",
"maxLength": "36",
"readOnly": true
},
"userId": {
"type": "varchar",
"maxLength": "36",
"maxLength": 36,
"readOnly": true
},
"user": {
@@ -32,7 +27,7 @@
},
"ipAddress": {
"type": "varchar",
"maxLength": "45",
"maxLength": 45,
"readOnly": true
},
"isActive": {