🚀 Ship faster with premium components 🚀
Search documentation v1.5.0

Database Reference

Working with the database

Webcore CMS is built on Astro DB backed by Turso. The schema is pre-defined and set up automatically. You do not need to design or modify it to use the CMS. This page serves as a reference for developers who want to understand the underlying data model or extend it for their own needs.

An overview of the database tables used by Webcore CMS:

For the complete column-level schema including all fields and references, see db/config.ts in your project.

Drizzle Studio

Exploring the Database

To browse your local database visually, run:

npm run dev:drizzle

This opens Drizzle Studio in your browser, where you can inspect tables, view records, and verify data without writing any queries. Note that this is a local instance of the database, not your remote database, so you’ll see data you’ve created in your local development environment.

Drizzle Studio

Migration

While we aim to keep the database schema stable, we may need to make changes in the future. In these cases, you can run the following command to automatically apply migrations to your database:

npm run db:migrate
Migration queries are stored in db/migrations and are applied in order.