Changed Backend to Supabase
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
"info": {
|
||||
"singularName": "tenant",
|
||||
"pluralName": "tenants",
|
||||
"displayName": "Tenants"
|
||||
"displayName": "Tenants",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
@@ -16,6 +17,15 @@
|
||||
},
|
||||
"short": {
|
||||
"type": "string"
|
||||
},
|
||||
"users": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "plugin::users-permissions.user",
|
||||
"mappedBy": "tenant"
|
||||
},
|
||||
"modules": {
|
||||
"type": "json"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
"displayName": "User"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false,
|
||||
"timestamps": true
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"attributes": {
|
||||
"username": {
|
||||
@@ -65,6 +64,12 @@
|
||||
"target": "plugin::users-permissions.role",
|
||||
"inversedBy": "users",
|
||||
"configurable": false
|
||||
},
|
||||
"tenant": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::tenant.tenant",
|
||||
"inversedBy": "users"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user