Data models

Introduction

Sutro is an AI-powered app builder that transforms your ideas into fully functional software with just a single text prompt. One of Sutro’s core features is its ability to automatically generate data models, which are the backbone of your application. These data models convert your idea into a structured system of collections, each with specific properties and actions. This guide will walk you through how to manage your data model.

What are collections?

Collections are groups of related data that Sutro’s AI automatically sets up based on your initial prompt. Think of a collection as a table in a database, with each row representing an item and each column representing a property of that item. For example, if you’re building a project management tool, a collection called “Tasks” might include properties like “Title,” “Description,” “Due Date,” and “Status.”

What are properties?

Properties are attributes or characteristics of a collection. Sutro’s AI determines which properties each collection should have, but you can customize them as needed. Properties help define the data your software will manage and track. For example, in the “Tasks” collection, “Title” might be a text field, while “Due Date” might be a date field.

Best practices

  • Be descriptive: Use clear, meaningful names for collections and properties.

  • Keep it simple: Only add essential properties to avoid clutter.

  • Leverage AI suggestions: Sutro’s AI often gets it right, but always double-check to ensure accuracy.

Summary

Data models are foundational to building software with Sutro. By understanding how to manage collections and properties, you gain greater control over how your software handles data. Whether you’re using Sutro’s AI suggestions or adding your own custom properties, efficient data management ensures your software functions as intended.