Data property types

Introduction

Sutro supports a wide range of data properties that enable flexible and powerful data management within your software. These properties not only support various data types but also allow for dynamic configuration and validation. In this guide, we’ll cover data property types and how to manage them effectively.

Property type details

Text property

  • Text properties are designed to accept text inputs only.

  • There are several configurable options for text properties:

    • Length: Choose between single-line or multi-line text property length options.

    • Minimum character limit: Set a minimum character limit, with validation to ensure that the minimum character limit is met.

    • Maximum character limit: Set a minimum character limit, with validation to ensure that the maximum character limit is met.

    • Regex : Validates text with a regular expression (regex) to ensure that it matches a predefined pattern (such as an email address).

Number property

  • Number properties are designed to accept numerical inputs only.

URL property

  • Allows users to input URLs that are clickable and open in a new tab.

Address property

  • Stores addresses in a structured format.

Phone number property

  • Accepts phone numbers in a standardized format.

Currency property

  • Allows users to represent monetary values with a specific currency symbol.

  • Currency symbols are sourced from Stripe’s list of supported presentment currencies in the United States.

Checkbox property

  • Allows for quick toggling between checked and unchecked states.

  • There is one configurable option for checkbox properties:

    • Default checkbox value: Can be set as checked or unchecked.

Star rating property

  • Allows users to provide ratings with star icons.

  • There is one configurable option for star rating properties:

    • Increments: Select from either half-star or full-star increments for ratings.

Select property

  • Users can define a list of options to select from.

    • To add an option, click the + symbol in the options list.

    • To rename an option, click the desired option’s name in the options list.

    • To reorder how the options are displayed, drag-and-drop the desired option by clicking the icon to the left of the option name (six dots).

    • To delete an option, click the x symbol next to the desired option’s name in the options list.

Date property

  • Provides support for a specific date in the MM/DD/YYYY format.

Time property

  • Provides support for a specific time in the HH:MM format.

Image property

  • Supports image uploads in .png, .svg, and .jpeg formats.

  • There is one configurable option for image properties:

    • Limit: Select between limiting the number of uploaded images to one or allowing for unlimited images.

Video property

  • Supports video uploads in .mp4 or .mov formats.

File property

  • Supports uploading various file types.

Relation property

  • Supports connecting properties between different collections.

  • There are several configurable options for relation properties:

    • Collection: Select the collection to link to.

    • Limit: Select the number of properties that can be imported from the linked collection.

Tips for managing properties

  • Use clear labels: Clearly identify what each property is for, especially when multiple similar properties exist.

  • Choose the right property type: Make sure to select a property type that matches the data being stored.

  • Validate your data: Use regex and validation options in text properties to enforce consistency.

Summary

Advanced data properties in Sutro empower you to capture diverse and complex data with ease. By configuring and managing these properties effectively, you can build more dynamic and versatile software. Explore the various options to tailor your data management to your specific use case.