# _collections

id: _pb_users_auth_
type: auth
name: users
viewRule: id = @request.auth.id
updateRule: id = @request.auth.id
deleteRule: id = @request.auth.id
created: 2022-10-10 09:49:46.145Z
updated: 2023-03-20 16:29:47.200Z
indexes: ["CREATE INDEX `__pb_users_auth__created_idx` ON `users` (`created`)"]
schema:
  [{"system":false,"id":"users_name","name":"name","type":"text","required":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"users_avatar","name":"avatar","type":"file","required":false,"unique":false,"options":{"maxSelect":1,"maxSize":5242880,"mimeTypes":["image/jpg","image/jpeg","image/png","image/svg+xml","image/gif"],"thumbs":["70x50","70x50t","70x50b","70x50f","0x50","70x0"]}},{"system":false,"id":"xtecur3m","name":"file","type":"file","required":false,"unique":false,"options":{"maxSelect":5,"maxSize":5242880,"mimeTypes":[],"thumbs":[]}},{"system":false,"id":"lkeigvv3","name":"rel","type":"relation","required":false,"unique":false,"options":{"collectionId":"sz5l5z67tg7gku0","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}}]

options:
  {"allowEmailAuth":true,"allowOAuth2Auth":true,"allowUsernameAuth":true,"exceptEmailDomains":null,"manageRule":null,"minPasswordLength":8,"onlyEmailDomains":null,"requireEmail":false}


id: wsmn24bux7wo113
type: base
name: demo1
options: {}
created: 2022-10-10 09:51:19.868Z
updated: 2023-03-20 16:29:47.206Z
indexes: ["CREATE INDEX `_wsmn24bux7wo113_created_idx` ON `demo1` (`created`)"]
schema:
  [{"system":false,"id":"u7spsiph","name":"text","type":"text","required":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"puk534el","name":"bool","type":"bool","required":false,"unique":false,"options":{}},{"system":false,"id":"ktas5n7b","name":"url","type":"url","required":false,"unique":false,"options":{"exceptDomains":[],"onlyDomains":[]}},{"system":false,"id":"dc4abz4i","name":"select_one","type":"select","required":false,"unique":false,"options":{"maxSelect":1,"values":["optionA","optionB","optionC"]}},{"system":false,"id":"owtlq7zl","name":"select_many","type":"select","required":false,"unique":false,"options":{"maxSelect":3,"values":["optionA","optionB","optionC"]}},{"system":false,"id":"4ulkdevf","name":"file_one","type":"file","required":false,"unique":false,"options":{"maxSelect":1,"maxSize":5242880,"mimeTypes":[],"thumbs":[]}},{"system":false,"id":"fjzhrsvq","name":"file_many","type":"file","required":false,"unique":false,"options":{"maxSelect":99,"maxSize":5242880,"mimeTypes":[],"thumbs":[]}},{"system":false,"id":"1z1ld0i5","name":"number","type":"number","required":false,"unique":false,"options":{"min":null,"max":null}},{"system":false,"id":"khvhpwgj","name":"email","type":"email","required":false,"unique":false,"options":{"exceptDomains":null,"onlyDomains":null}},{"system":false,"id":"ro6p02gk","name":"datetime","type":"date","required":false,"unique":false,"options":{"min":"","max":""}},{"system":false,"id":"ei2fg4v1","name":"json","type":"json","required":false,"unique":false,"options":{}},{"system":false,"id":"zaedritp","name":"rel_one","type":"relation","required":false,"unique":false,"options":{"collectionId":"wsmn24bux7wo113","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"t9bpk2ug","name":"rel_many","type":"relation","required":false,"unique":false,"options":{"collectionId":"_pb_users_auth_","cascadeDelete":true,"minSelect":null,"maxSelect":null,"displayFields":null}}]


id: sz5l5z67tg7gku0
type: base
name: demo2
options: {}
created: 2022-10-10 09:51:28.452Z
updated: 2023-03-20 16:39:25.211Z
schema:
  [{"system":false,"id":"mkrguaaf","name":"title","type":"text","required":true,"unique":true,"options":{"min":2,"max":null,"pattern":""}},{"system":false,"id":"izkl5z2s","name":"active","type":"bool","required":false,"unique":false,"options":{}}]

indexes:
  ["CREATE INDEX `idx_demo2_created` ON `demo2` (`created`)","CREATE UNIQUE INDEX \"idx_unique_demo2_title\" on \"demo2\" (\"title\")","CREATE INDEX \"idx_demo2_active\" ON \"demo2\" (\n\"active\"\n)"]


id: wzlqyes4orhoygb
type: base
name: demo3
listRule: @request.auth.id != "" && @request.auth.collectionName != "users"
viewRule: @request.auth.id != "" && @request.auth.collectionName != "users"
createRule: @request.auth.id != "" && @request.auth.collectionName != "users"
updateRule: @request.auth.id != "" && @request.auth.collectionName != "users"
deleteRule: @request.auth.id != "" && @request.auth.collectionName != "users"
options: {}
created: 2022-10-10 09:51:36.853Z
updated: 2023-03-20 16:29:47.218Z
indexes: ["CREATE INDEX `_wzlqyes4orhoygb_created_idx` ON `demo3` (`created`)"]
schema:
  [{"system":false,"id":"w5z2x0nq","name":"title","type":"text","required":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"tgqrbwio","name":"files","type":"file","required":false,"unique":false,"options":{"maxSelect":99,"maxSize":5242880,"mimeTypes":[],"thumbs":[]}}]


id: 4d1blo5cuycfaca
type: base
name: demo4
createRule: @request.auth.collectionName = 'users'
updateRule: @request.auth.collectionName = 'users'
options: {}
created: 2022-10-10 09:51:47.770Z
updated: 2023-03-20 16:29:47.224Z
indexes: ["CREATE INDEX `_4d1blo5cuycfaca_created_idx` ON `demo4` (`created`)"]
schema:
  [{"system":false,"id":"erkxnabw","name":"title","type":"text","required":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"t5jskeyz","name":"rel_one_no_cascade","type":"relation","required":false,"unique":false,"options":{"collectionId":"wzlqyes4orhoygb","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"ldrcjhk8","name":"rel_one_no_cascade_required","type":"relation","required":true,"unique":false,"options":{"collectionId":"wzlqyes4orhoygb","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"pl5lcd4y","name":"rel_one_cascade","type":"relation","required":false,"unique":false,"options":{"collectionId":"wzlqyes4orhoygb","cascadeDelete":true,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"jz0oue3z","name":"rel_many_no_cascade","type":"relation","required":false,"unique":false,"options":{"collectionId":"wzlqyes4orhoygb","cascadeDelete":false,"minSelect":null,"maxSelect":null,"displayFields":null}},{"system":false,"id":"bsxyqrhb","name":"rel_many_no_cascade_required","type":"relation","required":true,"unique":false,"options":{"collectionId":"wzlqyes4orhoygb","cascadeDelete":false,"minSelect":null,"maxSelect":null,"displayFields":["title","id"]}},{"system":false,"id":"kwmchnf7","name":"rel_many_cascade","type":"relation","required":false,"unique":false,"options":{"collectionId":"wzlqyes4orhoygb","cascadeDelete":true,"minSelect":null,"maxSelect":null,"displayFields":null}},{"system":false,"id":"dagiyxj4","name":"self_rel_one","type":"relation","required":false,"unique":false,"options":{"collectionId":"4d1blo5cuycfaca","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"tsrki8kc","name":"self_rel_many","type":"relation","required":false,"unique":false,"options":{"collectionId":"4d1blo5cuycfaca","cascadeDelete":false,"minSelect":null,"maxSelect":null,"displayFields":null}},{"system":false,"id":"4wpx0hhx","name":"json_array","type":"json","required":false,"unique":false,"options":{}},{"system":false,"id":"ufpwiqnx","name":"json_object","type":"json","required":false,"unique":false,"options":{}}]


id: v851q4r790rhknl
type: auth
name: clients
created: 2022-10-11 09:41:36.712Z
updated: 2023-03-20 16:29:47.230Z
indexes: ["CREATE INDEX `_v851q4r790rhknl_created_idx` ON `clients` (`created`)"]
schema:
  [{"system":false,"id":"lacorw19","name":"name","type":"text","required":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}}]

options:
  {"allowEmailAuth":true,"allowOAuth2Auth":false,"allowUsernameAuth":false,"exceptEmailDomains":[],"manageRule":null,"minPasswordLength":8,"onlyEmailDomains":[],"requireEmail":true}


id: kpv709sk2lqbqk8
type: auth
name: nologin
created: 2022-10-12 10:39:21.294Z
updated: 2023-03-20 16:29:47.235Z
indexes: ["CREATE INDEX `_kpv709sk2lqbqk8_created_idx` ON \"nologin\" (`created`)"]
schema:
  [{"system":false,"id":"x8zzktwe","name":"name","type":"text","required":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}}]

options:
  {"allowEmailAuth":false,"allowOAuth2Auth":false,"allowUsernameAuth":false,"exceptEmailDomains":[],"manageRule":"@request.auth.collectionName = 'users'","minPasswordLength":8,"onlyEmailDomains":[],"requireEmail":true}


id: 9n89pl5vkct6330
type: base
name: demo5
listRule: select_many:length = 3
viewRule: rel_many.self_rel_many.rel_many_cascade.files:length = 1
createRule: @request.data.total = 3
updateRule: @request.data.total = 3
deleteRule: @request.query.test:isset = true
options: {}
created: 2023-01-07 13:13:08.733Z
updated: 2023-03-20 16:29:47.240Z
indexes: ["CREATE INDEX `_9n89pl5vkct6330_created_idx` ON `demo5` (`created`)"]
schema:
  [{"system":false,"id":"sozvpexq","name":"select_one","type":"select","required":false,"unique":false,"options":{"maxSelect":1,"values":["a","b","c","d"]}},{"system":false,"id":"qlq1nxlc","name":"select_many","type":"select","required":false,"unique":false,"options":{"maxSelect":5,"values":["a","b","c","d","e"]}},{"system":false,"id":"ajrrsq1a","name":"rel_one","type":"relation","required":false,"unique":false,"options":{"collectionId":"4d1blo5cuycfaca","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"soxhs0ou","name":"rel_many","type":"relation","required":false,"unique":false,"options":{"collectionId":"4d1blo5cuycfaca","cascadeDelete":false,"minSelect":null,"maxSelect":5,"displayFields":null}},{"system":false,"id":"kvbyzuqj","name":"total","type":"number","required":false,"unique":false,"options":{"min":null,"max":null}},{"system":false,"id":"ob7dsrcl","name":"file","type":"file","required":false,"unique":false,"options":{"maxSelect":1,"maxSize":5242880,"mimeTypes":[],"thumbs":[]}}]


id: v9gwnfh02gjq1q0
type: view
name: view1
listRule: @request.auth.id != "" && bool = true
viewRule: @request.auth.id != "" && bool = true
created: 2023-02-12 18:58:12.315Z
updated: 2023-03-06 13:04:54.205Z
schema:
  [{"system":false,"id":"u7spsiph","name":"text","type":"text","required":false,"unique":false,"options":{"min":null,"max":null,"pattern":""}},{"system":false,"id":"puk534el","name":"bool","type":"bool","required":false,"unique":false,"options":{}},{"system":false,"id":"ktas5n7b","name":"url","type":"url","required":false,"unique":false,"options":{"exceptDomains":[],"onlyDomains":[]}},{"system":false,"id":"dc4abz4i","name":"select_one","type":"select","required":false,"unique":false,"options":{"maxSelect":1,"values":["optionA","optionB","optionC"]}},{"system":false,"id":"owtlq7zl","name":"select_many","type":"select","required":false,"unique":false,"options":{"maxSelect":3,"values":["optionA","optionB","optionC"]}},{"system":false,"id":"4ulkdevf","name":"file_one","type":"file","required":false,"unique":false,"options":{"maxSelect":1,"maxSize":5242880,"mimeTypes":[],"thumbs":[]}},{"system":false,"id":"fjzhrsvq","name":"file_many","type":"file","required":false,"unique":false,"options":{"maxSelect":99,"maxSize":5242880,"mimeTypes":[],"thumbs":[]}},{"system":false,"id":"1z1ld0i5","name":"number","type":"number","required":false,"unique":false,"options":{"min":null,"max":null}},{"system":false,"id":"khvhpwgj","name":"email","type":"email","required":false,"unique":false,"options":{"exceptDomains":null,"onlyDomains":null}},{"system":false,"id":"ro6p02gk","name":"datetime","type":"date","required":false,"unique":false,"options":{"min":"","max":""}},{"system":false,"id":"ei2fg4v1","name":"json","type":"json","required":false,"unique":false,"options":{}},{"system":false,"id":"zaedritp","name":"rel_one","type":"relation","required":false,"unique":false,"options":{"collectionId":"wsmn24bux7wo113","cascadeDelete":false,"minSelect":null,"maxSelect":1,"displayFields":null}},{"system":false,"id":"t9bpk2ug","name":"rel_many","type":"relation","required":false,"unique":false,"options":{"collectionId":"_pb_users_auth_","cascadeDelete":true,"minSelect":null,"maxSelect":null,"displayFields":null}}]

options:
  {"query":"select id, text, bool, url, select_one, select_many, file_one, file_many, number, email, datetime, json, rel_one, rel_many, created from demo1"}


id: ib3m2700k5hlsjz
type: view
name: view2
options: {"query":"SELECT view1.id, view1.bool as state, view1.file_many, view1.rel_many from view1"}
created: 2023-02-17 19:42:54.278Z
updated: 2023-03-06 13:04:54.208Z
schema:
  [{"system":false,"id":"puk534el","name":"state","type":"bool","required":false,"unique":false,"options":{}},{"system":false,"id":"fjzhrsvq","name":"file_many","type":"file","required":false,"unique":false,"options":{"maxSelect":99,"maxSize":5242880,"mimeTypes":[],"thumbs":[]}},{"system":false,"id":"t9bpk2ug","name":"rel_many","type":"relation","required":false,"unique":false,"options":{"collectionId":"_pb_users_auth_","cascadeDelete":true,"minSelect":null,"maxSelect":null,"displayFields":null}}]


# _params

id: ye7i7hrf6ljms0j
key: settings
created: 2022-10-10 09:49:46.155Z
updated: 2022-11-26 12:12:54.814Z
value:
  {"meta":{"appName":"acme_test","appUrl":"http://localhost:8090","hideControls":false,"senderName":"Support","senderAddress":"support@example.com","verificationTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eThank you for joining us at {APP_NAME}.\u003c/p\u003e\n\u003cp\u003eClick on the button below to verify your email address.\u003c/p\u003e\n\u003cp\u003e\n  \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eVerify\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\n  Thanks,\u003cbr/\u003e\n  {APP_NAME} team\n\u003c/p\u003e","subject":"Verify your {APP_NAME} email","actionUrl":"{APP_URL}/_/#/auth/confirm-verification/{TOKEN}"},"resetPasswordTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eClick on the button below to reset your password.\u003c/p\u003e\n\u003cp\u003e\n  \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eReset password\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\u003ci\u003eIf you didn't ask to reset your password, you can ignore this email.\u003c/i\u003e\u003c/p\u003e\n\u003cp\u003e\n  Thanks,\u003cbr/\u003e\n  {APP_NAME} team\n\u003c/p\u003e","subject":"Reset your {APP_NAME} password","actionUrl":"{APP_URL}/_/#/auth/confirm-password-reset/{TOKEN}"},"confirmEmailChangeTemplate":{"body":"\u003cp\u003eHello,\u003c/p\u003e\n\u003cp\u003eClick on the button below to confirm your new email address.\u003c/p\u003e\n\u003cp\u003e\n  \u003ca class=\"btn\" href=\"{ACTION_URL}\" target=\"_blank\" rel=\"noopener\"\u003eConfirm new email\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\u003ci\u003eIf you didn't ask to change your email address, you can ignore this email.\u003c/i\u003e\u003c/p\u003e\n\u003cp\u003e\n  Thanks,\u003cbr/\u003e\n  {APP_NAME} team\n\u003c/p\u003e","subject":"Confirm your {APP_NAME} new email address","actionUrl":"{APP_URL}/_/#/auth/confirm-email-change/{TOKEN}"}},"logs":{"maxDays":5},"smtp":{"enabled":false,"host":"smtp.example.com","port":587,"username":"","password":"","tls":false},"s3":{"enabled":false,"bucket":"","region":"","endpoint":"","accessKey":"","secret":"","forcePathStyle":false},"adminAuthToken":{"secret":"MyN3nDlzmHnuCjd35vb6cyIdqNr7Os0PmgiPVDMxmbFToSpBvS","duration":1209600},"adminPasswordResetToken":{"secret":"fPSpFm9rxjj4mdeWYfyQ5OZQ4UWpyainTO0dqrJe3LHEYEDduq","duration":1800},"recordAuthToken":{"secret":"PjVU4hAV7CZIWbCByJHkDcMUlSEWCLI6M5aWSZOpEq0a3rYxKT","duration":1209600},"recordPasswordResetToken":{"secret":"BC6jYPe4JXpQGGNzu6VXtYw0yhKoH2mh2ezIJClOJQuZYrd4Ol","duration":1800},"recordEmailChangeToken":{"secret":"eON2TTJZiGCEi7mvUvwMLADj8CMHQzwZN3gmyMjQb24EY08ATP","duration":1800},"recordVerificationToken":{"secret":"dgGGHlzzdCJ2C5MjXGoondllwSXkJHyL50FuvLvXGHNmBhvGKO","duration":604800},"emailAuth":{"enabled":false,"exceptDomains":null,"onlyDomains":null,"minPasswordLength":0},"googleAuth":{"enabled":false},"facebookAuth":{"enabled":false},"githubAuth":{"enabled":false},"gitlabAuth":{"enabled":true,"clientId":"test_id","clientSecret":"test_secret","authUrl":"https://example.com"},"discordAuth":{"enabled":false},"twitterAuth":{"enabled":false},"microsoftAuth":{"enabled":false},"spotifyAuth":{"enabled":false},"kakaoAuth":{"enabled":false},"twitchAuth":{"enabled":false}}


# demo1

created: 2022-10-14 10:13:12.397Z
id: 84nmscqy84lsi1t
updated: 2023-01-04 20:11:20.732Z
text: test
url: https://example.copm
select_one: optionB
file_one: test_d61b33QdDU.txt
email: test@example.com
datetime: 2022-10-01 12:00:00.000Z
json:
  [
  1,
  2,
  3
  ]

rel_many: ["oap640cot4yru2s"]
select_many: ["optionB","optionC"]
file_many:
  ["test_QZFjKjXchk.txt","300_WlbFWSGmW9.png","logo_vcfJJG5TAh.svg","test_MaWC6mWyrP.txt","test_tC1Yc87DfC.txt"]


