Skip to content

Look Schema

Because items are represented by data in many different tables, the backend shapes the results of all database queries and optimizes the responses for developer usability. This processed item shape is referred to as a flattened item:

Look (Flattened)
type Look = {
id: string;
description: string;
entity: "look";
meta: Record<string, unknown>;
enabled: boolean;
createdAt: string;
updatedAt: string;
}
  • id : a unique id in CUID format (generated by paralleldrive)
  • description : text description for the look (no current character limit)
  • enabled : only items with enabled: true are included in API responses
  • createdAt : item creation timestamp, ISO-8601 string format
  • updatedAt : item updated timestamp, ISO-8601 string format
  • meta : jsonb column used for unstructured item data (see Validation)
  • media : Array of related Media records (see Media)
  • tags : Array of related Tag records (see Tags)
  • items : Array of related Item records (see Items)