Database
How to use the database in Superdev
Every Superdev project comes with a database by default.
If you ask the AI to create an application that requires data persistance, it will automatically create a database for you.
Entities
Entities are the core of the database. They are the tables in the database.
When the AI creates an entity, it is stored in the entities
folder if your project.
An entity is JSON file that contains the schema of the entity.
Every entity comes with a default CRUD API (create, read, update, delete) that the AI can use to interact with the database.
That way, you don’t need to integarte with any external database services. Simply ask the AI to create an app that requires a database, and it will automatically create the relevant entities for you.
Managing entities
You can manage entities and their data by clicking on the “Manage” tab in the right corner of the screen. By managing the entities, you can add, edit, and delete the data in the database.