Customers, applications and documents
Compare three entities, their key fields and the cardinality of each relationship.
A real saved generation from a fictional example brief. Generated .
The saved result
A customer can submit zero or more applications. Each application contains one or more documents. The source facts specify the fields and relationships.
The result illustrates the supplied data model; it does not validate or create a production database.
The actual request
The request includes the source facts supplied with this example. Different inputs or a new run can produce different results.
Read the full prompt and source facts
Create a polished er diagram from these facts. Preserve the full labels, relationships, grouping and numeric values. Use a clear reading order, readable text and an intentional composition. Do not invent facts. Use English.
Supplied source facts:
{"entities":[{"id":"customers","label":"Customers","fields":[{"id":"customer-id","label":"customer_id","type":"uuid","key":"primary"},{"id":"email","label":"email_address","type":"varchar(255)","key":"unique"},{"id":"created","label":"created_at","type":"timestamp"}]},{"id":"applications","label":"Applications","fields":[{"id":"application-id","label":"application_id","type":"uuid","key":"primary"},{"id":"application-customer","label":"customer_id","type":"uuid","key":"foreign"},{"id":"status","label":"review_status","type":"varchar(32)"}]},{"id":"documents","label":"Documents","fields":[{"id":"document-id","label":"document_id","type":"uuid","key":"primary"},{"id":"document-application","label":"application_id","type":"uuid","key":"foreign"},{"id":"object-key","label":"storage_object_key","type":"text"}]}],"relationships":[{"id":"customer-apps","from":"customers","to":"applications","label":"submits","kind":"flow","directed":true,"fromFieldId":"customer-id","toFieldId":"application-customer","fromCardinality":"1","toCardinality":"0..*"},{"id":"app-docs","from":"applications","to":"documents","label":"contains","kind":"flow","directed":true,"fromFieldId":"application-id","toFieldId":"document-application","fromCardinality":"1","toCardinality":"1..*"}]}Make it about your work
Replace the fictional example facts with your own, then check labels, relationships and any numbers before using the result. Keep private information out of public sharing links.
Explore this diagram tool · Follow the creation guide · Plans and credit rules
Try your own version
Use “Try this prompt” to load the example, or write your own request. Nothing is generated until you send it.