155 lines
4.5 KiB
JSON
155 lines
4.5 KiB
JSON
|
[
|
||
|
{
|
||
|
"id": "_pb_users_auth_",
|
||
|
"name": "users",
|
||
|
"type": "auth",
|
||
|
"system": false,
|
||
|
"schema": [
|
||
|
{
|
||
|
"system": false,
|
||
|
"id": "users_name",
|
||
|
"name": "name",
|
||
|
"type": "text",
|
||
|
"required": false,
|
||
|
"presentable": false,
|
||
|
"unique": false,
|
||
|
"options": {
|
||
|
"min": null,
|
||
|
"max": null,
|
||
|
"pattern": ""
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"system": false,
|
||
|
"id": "users_avatar",
|
||
|
"name": "avatar",
|
||
|
"type": "file",
|
||
|
"required": false,
|
||
|
"presentable": false,
|
||
|
"unique": false,
|
||
|
"options": {
|
||
|
"mimeTypes": [
|
||
|
"image/jpeg",
|
||
|
"image/png",
|
||
|
"image/svg+xml",
|
||
|
"image/gif",
|
||
|
"image/webp"
|
||
|
],
|
||
|
"thumbs": null,
|
||
|
"maxSelect": 1,
|
||
|
"maxSize": 5242880,
|
||
|
"protected": false
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"indexes": [],
|
||
|
"listRule": "id = @request.auth.id",
|
||
|
"viewRule": "id = @request.auth.id",
|
||
|
"createRule": "",
|
||
|
"updateRule": "id = @request.auth.id",
|
||
|
"deleteRule": "id = @request.auth.id",
|
||
|
"options": {
|
||
|
"allowEmailAuth": true,
|
||
|
"allowOAuth2Auth": true,
|
||
|
"allowUsernameAuth": true,
|
||
|
"exceptEmailDomains": null,
|
||
|
"manageRule": null,
|
||
|
"minPasswordLength": 8,
|
||
|
"onlyEmailDomains": null,
|
||
|
"onlyVerified": false,
|
||
|
"requireEmail": false
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"id": "okcdl5ouza7wpmh",
|
||
|
"name": "POI",
|
||
|
"type": "base",
|
||
|
"system": false,
|
||
|
"schema": [
|
||
|
{
|
||
|
"system": false,
|
||
|
"id": "tizn7ekv",
|
||
|
"name": "Poi",
|
||
|
"type": "json",
|
||
|
"required": true,
|
||
|
"presentable": false,
|
||
|
"unique": false,
|
||
|
"options": {
|
||
|
"maxSize": 2000000
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"system": false,
|
||
|
"id": "sknwezy1",
|
||
|
"name": "Poi_id",
|
||
|
"type": "text",
|
||
|
"required": true,
|
||
|
"presentable": false,
|
||
|
"unique": false,
|
||
|
"options": {
|
||
|
"min": null,
|
||
|
"max": null,
|
||
|
"pattern": ""
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"indexes": [
|
||
|
"CREATE UNIQUE INDEX `idx_iGYiVpo` ON `POI` (`Poi_id`)"
|
||
|
],
|
||
|
"listRule": "@request.auth.id != \"\"",
|
||
|
"viewRule": "@request.auth.id != \"\"",
|
||
|
"createRule": "(@request.auth.id != \"\")",
|
||
|
"updateRule": null,
|
||
|
"deleteRule": null,
|
||
|
"options": {}
|
||
|
},
|
||
|
{
|
||
|
"id": "iqpfqlcao9so0mj",
|
||
|
"name": "user_poi",
|
||
|
"type": "base",
|
||
|
"system": false,
|
||
|
"schema": [
|
||
|
{
|
||
|
"system": false,
|
||
|
"id": "skjq9wtr",
|
||
|
"name": "owner",
|
||
|
"type": "relation",
|
||
|
"required": false,
|
||
|
"presentable": false,
|
||
|
"unique": false,
|
||
|
"options": {
|
||
|
"collectionId": "_pb_users_auth_",
|
||
|
"cascadeDelete": false,
|
||
|
"minSelect": null,
|
||
|
"maxSelect": 1,
|
||
|
"displayFields": null
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"system": false,
|
||
|
"id": "buw92nch",
|
||
|
"name": "poi_list",
|
||
|
"type": "relation",
|
||
|
"required": false,
|
||
|
"presentable": false,
|
||
|
"unique": false,
|
||
|
"options": {
|
||
|
"collectionId": "okcdl5ouza7wpmh",
|
||
|
"cascadeDelete": false,
|
||
|
"minSelect": null,
|
||
|
"maxSelect": 1,
|
||
|
"displayFields": null
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"indexes": [
|
||
|
"CREATE UNIQUE INDEX `idx_PC3A5Pg` ON `user_poi` (\n `owner`,\n `poi_list`\n)"
|
||
|
],
|
||
|
"listRule": "",
|
||
|
"viewRule": "",
|
||
|
"createRule": "",
|
||
|
"updateRule": null,
|
||
|
"deleteRule": "",
|
||
|
"options": {}
|
||
|
}
|
||
|
]
|