Pricing
← Back to Tutorials
Getting started

Creating a CRUD App with a Local Database

Applies to 1.0.1603-

What you'll build

In this tutorial you'll build a complete Help Desk and ticket-management app on your own local MySQL database — nine related tables, generated schema, and a live create, read, update and delete interface for every table. No SQL writing required: you describe the app, the platform builds the schema and the interface.

Step 1 — Create the app

Open My Apps and start a new application. The New App Setup asks for the essentials: an app title (Help Desk), an optional description, and the URL slug that will become the app's runtime address — for example lowcodeapps.dev/{owner}/help-desk . Choose Auto-Increment for the default primary key type so new tables get sequential integer IDs, leave Include Timestamp Fields enabled so created_at and updated_at are added automatically, then click Save Details & Continue to Schema.

Your app now exists as a Draft card. Continue Build re-enters the schema wizard, Edit Details returns to the form you just filled in, and Customize Interface unlocks as soon as the schema has been created. Keep the card open in a second tab if you like — nothing here affects data yet.

Step 2 — Select a local empty database

The schema wizard starts at Select Database. Pick the empty local database you want this app to own — lca_e2ad2db4e967 in our example, shown as Local and Connected. Databases that already contain tables are marked Not selectable: the wizard never lets you accidentally build an app on top of existing data. Click Continue.

Step 3 — Choose how to define your schema

Step 1 (Basic Info) offers four starting points. Create the app with AI describes the schema in plain language and generates it for you. Ready-to-Run Apps deploys a complete pre-built application. Start from Template gives you a pre-built table skeleton you can adapt, and Import SQL executes a script you already have. In this tutorial we'll use AI generation — click the Create the app with AI card.

Step 4 - Generate the schema with AI

Describe the app in one or two sentences. Our prompt:

Create a relational database schema for an IT Help Desk and Ticket Management System suitable for a small or medium-sized IT department. Generate all necessary tables, fields, primary keys, foreign keys and relationships.

Click Ask AI to generate SQL, then review the Schema Preview table by table. You can Regenerate for a different draft or edit everything by hand in the next step — the AI output is a starting point, not a commitment. When you're happy, click Use This SQL and Continue.

Step 5 — Review the tables and fields

Schema Fields shows every table in a left sidebar — Department, Category, Sla Policy, Ticket with 18 fields, Ticket Comment, Attachment and more — each marked New. Open a table to edit its columns: field name, data type, and whether the field is required. Timestamp columns created_at and updated_at are added automatically from your app defaults. Add, rename or delete freely; Advanced Mode exposes the full column options. Click Next: Relationships when the structure looks right.

Step 6 — Confirm the relationships

The wizard reads your field names and suggests foreign keys: ticket.department_id points to department.department_id, ticket.category_id to category, and so on. Each suggestion shows its reasoning and a confidence badge. Tick the ones you want — or use Select all — and click Save my choices. Relationships power related-data display and cascading behaviour everywhere in the finished app.

Step 7 — Map the UI fields

UI Fields decides how each column is presented in forms and lists: the input component (Number, Text, Textarea, DateTime), the display label your users will see, and whether the field is required. The defaults derived from your data types are sensible — adjust labels to plain language if you want, then click Next: Review & Create.

Step 8 — Review and create the schema

The final step restates the target database and summarizes the change — nine new tables in our case. Click Create Schema: the tables are created in your local database, a CRUD manifest is generated for each one, and the app moves from Draft to schema_complete. That's it — the backend of your application now exists.

Step 9 — Open your live CRUD interface

Open the app to find every table in the left navigation — Attachment, Canned Response, Category, Department, Kb Article, Sla Policy, Ticket, Ticket Comment and Ticket History — each with a fully working list view: search box, column filters, sorting, and an Add New button that opens the create form. Each table is also reachable directly at its runtime URL: /{owner}/{app}/crud/{table}. Add a couple of departments and categories, then create your first ticket — that's your smoke test.

A Help Desk app with nine related tables on your local database, a searchable CRUD interface for each of them, and a first ticket created end to end.

Related resources

← Back to Tutorials Start building — free trial