Changed Backend to Supabase

This commit is contained in:
2023-11-26 17:15:55 +01:00
parent 8b76434b41
commit cb3d48d42c
22 changed files with 1420 additions and 346 deletions

View File

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

View File

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