Setting Up a Data Model

This page covers creating a data model, how to open its three configuration tabs, the settings on its Details tab, and what deleting a data model removes.

What Is a Data Model?

A data model is one kind of thing you record. A lake ecology study might use Sites (where you sample), Species (what you observe), and Surveys (each sampling event). Each data model has its own fields, relationships to other data models, and records. In the app, data models are listed under Your Data in the project sidebar.

Creating Your First Data Model

Editor (Admin) members can create data models. Click the + next to Your Data in the sidebar, or Define something new on the Your Data page. The page asks "What are you collecting data about?" and has these fields: - Name: up to 32 characters. This is how the data model is labelled throughout the project. See Naming Conventions below for singular or plural. - Short Description: optional, up to 128 characters. Shown under the name on the Your Data page. - Detailed Description: optional on this page, a longer explanation of what the data model captures. Its first 100 characters appear in the Description column of the Your Data page. - Access Restriction: None, Readonly, or Hidden for non-admin members. See Roles and Permissions. Click Create. The tier limits how many data models a project can have: 5 on Free, 30 on Researcher, and 50 on Team. At the limit, the create page shows "Limit Reached" instead of the form.

Naming Conventions

Enter the Name in the singular: "Survey," "Survey Site," "Species Observation." Cnidarity adds the plural where it lists records and uses the name as typed where it means one record: - The sidebar, the page heading, and the + button's "Add Surveys" use the plural. - The first tab of the records table adds an "s" to the name as typed: "All Surveys." - The relationship sentence uses the name as typed: "Each Survey belongs to one Site." A plural Name produces "All Surveyss" and "Each Surveys belongs to one Site." Because the first tab always adds an "s," a name such as "Species" shows as "All Speciess." Use the noun your team already uses: "Survey Site" rather than "Location Data," and "Species Observation" rather than "Entity Type 1." You can rename a data model later on its Details tab. Its records, fields, and relationships stay attached.

Data Model Settings

Each data model has three configuration tabs: - Details: name, descriptions, access restriction, and upload permissions. - Fields: the data model's fields, groups, order, and record labels (Adding Fields). - Relationships: its relationships and the network graph (Connecting Your Data). Opening the tabs. Clicking a data model under Your Data opens its records table, not the tabs. From there, click the ⋮ button at the top right of the page (its tooltip says "Data Model options") and choose Configure. That opens the Fields tab; click Details or Relationships to switch. On the Your Data page, the pencil icon on a row (Edit data model) opens the Details tab directly. To get back to the records, click the stack icon at the top right of any tab (its tooltip says "View All Surveys," with your data model's name). The Details tab (Edit Details) has the same fields as the create page, except that the Detailed Description must be filled in before you can save. On tiers that allow uploads, it also has Record Media Upload Permissions: Allow image uploads, Allow video uploads, Allow audio uploads, and Allow 3D model uploads. Record media are files attached to a record as a whole in the Record Media section of the record page, such as a scan of the paper field sheet, rather than an Image field on the form. These boxes decide whether non-admin members can attach those kinds of files to this data model's records (Media Library). Save with Save Changes. Deleting a data model. Choose Delete Data Model from the actions menu next to Save Changes. The confirmation asks "Are you sure you want to delete this data and all its records?" Deleting permanently removes: - all of the data model's records and their values - all of its fields - every relationship to or from the data model - every link between its records and records in other data models - every saved dataset built from the data model (Data Pipelines), and the Table widgets on dashboards that show those datasets Charts that use the data model or those datasets aren't deleted. Review them after deleting. Display rules and conditional validation only use fields of their own data model, so other data models' rules aren't affected. There is no undo.
model-edit-pageA data model configuration page with the Details, Fields, and Relationships tabs, showing the Edit Details form

The three configuration tabs, with Details open. At the top right are the stack icon (back to the records), the ⋮ menu, and + (new record).