Files
lettersoup-online/001_documentation/Requirements/REQ0006/008_update_dbml_from_json.md
2025-05-09 14:14:00 +08:00

1.2 KiB

task

update dbml from schema.json, for collection billingAddress

Background information

  1. please ignore presentable properties from schema.json, this is for pocketbase internal usage
  2. please ignore collections with _ as its first character, this is for pocketbase internal usage
  3. just return the collection with billingAddress is ok, please ignore other collections

steps

  1. read file /home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/002_source/cms/src/db/schema.json. this is the export from pocketbase.
  2. read file /home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/001_documentation/Requirements/REQ0006/schema.dbml. this is file written in dbml format.
  3. currently the collection in schama.json is mapped to table in schema.dbml
  4. compare the schema.json and schema.dbml, remember the differences
  5. you may found some comment already exist in schema.dbml, please keep them
  6. while keeping schema.json content unchanged. write file to /home/logic/_wsl_workspace/001_github_ws/lettersoup-online-ws/lettersoup-online/project/001_documentation/Requirements/REQ0006/schema_ai_draft.dbml content based on schema.json.

thanks.