Skip to main content

Overview

Records are the core data entity in Simple Manager Mobile. Each record represents an item that users can create, manage, and track within the application.

Record Interface

The Record interface defines the structure of all records in the system:
export interface Record {
    id: string;
    title: string;
    subtitle?: string;
    metadata?: string;
    type: string;
    userId?: string;
    createdAt: string;
    updatedAt: string;
    isDeleted: boolean;
}

Fields

id
string
required
Unique identifier for the record. Generated automatically when a record is created.
title
string
required
The main title of the record. Must be between 3 and 50 characters. Cannot be empty or duplicated.
subtitle
string
Optional subtitle providing additional context for the record.
metadata
string
Optional metadata field for storing additional information about the record.
type
string
required
The type or category of the record. Must be at least 3 characters long.
userId
string
Optional identifier linking the record to a specific user.
createdAt
string
required
ISO timestamp indicating when the record was created.
updatedAt
string
required
ISO timestamp indicating when the record was last updated.
isDeleted
boolean
required
Soft delete flag. When true, the record is marked as deleted but remains in the database.

Usage Example

const record: Record = {
    id: "uuid-123",
    title: "Project Meeting",
    subtitle: "Weekly team sync",
    metadata: JSON.stringify({ location: "Room 301" }),
    type: "meeting",
    userId: "user-456",
    createdAt: "2026-03-12T10:00:00Z",
    updatedAt: "2026-03-12T10:00:00Z",
    isDeleted: false
};

Build docs developers (and LLMs) love