CD and DVD Collection: Overview
In this tutorial you design a data model for a CD and DVD collection together with the AI Data Modeler. Instead of creating every entity type by hand as in the manual tutorial, you describe what you need, check the AI's proposal and let it build the model.
The collection contains:
- CDs and DVDs with title, artist or director, release year and genre,
- DVD boxes that contain several single DVDs — the hierarchy example of this tutorial,
- artists who are connected to their CDs,
- a menu group in the sidebar, created by prompt.
Time: about 45 minutes. You need: access to the menu Administration, a test system, and an AI provider set up for EP (see MeMo and the AI Assistants).
Working With an AI: Results Will Differ
An AI does not answer the same way twice. Your proposal will use different names, a different order or a different structure than the examples in this tutorial — that is expected. This tutorial therefore does not tell you exactly what you will see. Instead, each step gives you:
| Element | Purpose |
|---|---|
| Prompt | Text you copy into the AI Data Modeler. Adjust it if you like. |
| Check | What the result must contain, no matter how the AI phrases it. Go through the list before you continue. |
| If not | A follow-up prompt that corrects the most common deviations. |
| Example result | One possible answer, so you know roughly what to expect. Yours may look different. |
Follow these rules — they apply to working with AI in EP in general:
- Plan first, then build. Start in Plan mode: the AI only proposes and changes nothing. Switch to Agent mode only when the plan passes the check.
- Be specific. Name the entity types, the important properties, the relationships and the technical names you want. The more you leave open, the more the AI decides for you.
- One topic per prompt. Ask for the data model first, then for scripts, then for sample data — not everything at once.
- Check in EP, not in the chat. After the AI built something, open the entity types in EP and check them there. The chat only tells you what the AI intended.
- Correct with follow-up prompts. Don't start over when something is wrong — tell the AI what to change, as precisely as you would tell a colleague.
- Keep the conversation. The AI Data Modeler saves your chats on the server. You can come back to them later under Chats.
In Agent mode the AI creates entity types in EP. Entity types that are in use cannot be deleted. Work on a test system, and check the names before you let the AI build.
Steps
| Step | What you do |
|---|---|
| Build the Collection | Plan the model, check it, let the AI build it, add the DVD box hierarchy, create sample data, add a menu entry, check everything in EP |