Create Your First Database Model
After creating a Project, you’re ready to design your first database model.
Qubase provides an interactive ERD Canvas where you can visually design database schemas, define relationships, and generate SQL or DBML code.
Before you begin
Before creating your first database model, make sure that you:
- Have a Qubase account
- Have created a Workspace
- Have created a Project
- Have permission to edit the Project
[!NOTE] Every Database Schema belongs to a Project.
Choose a model type
Qubase supports three database modeling approaches.
| Model Type | Purpose |
|---|---|
| Conceptual Model | Define high-level business entities and their relationships. |
| Logical Model | Design tables, attributes, keys, and relationships without database-specific details. |
| Physical Model | Define database-specific tables, data types, indexes, and constraints. |
Choose the model type that best matches your current stage of database design.
Create a Database Schema
- Open your Project.
- Navigate to Database Schemas.
- Click New Schema.
- Enter a schema name.
- Select the model type.
- Click Create.
Your new Database Schema will be created and opened automatically.
Open the ERD Canvas
After creating a Database Schema, Qubase opens the ERD Canvas.
From the canvas you can:
- Create tables
- Add columns
- Define primary keys
- Create foreign key relationships
- Organize the diagram visually
- Generate SQL or DBML code
- Save changes automatically
Your first table
To begin designing your database:
- Click Add Table.
- Enter the table name.
- Add columns.
- Select a Primary Key.
- Save the table.
Continue adding tables until your database structure is complete.
What’s next?
Once your first schema has been created, you can continue with advanced database modeling features such as:
- Creating relationships
- Managing constraints
- Synchronizing SQL and DBML
- Reverse Engineering existing databases
- Forward Engineering database scripts
- AI-assisted database design
[!TIP] Start with the core entities in your system before adding detailed tables and relationships.
Best practices
- Use clear and descriptive table names.
- Create one schema for each database design.
- Define primary keys before creating relationships.
- Organize tables to keep the ERD easy to read.
- Save your changes regularly.