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:
Looks Model
Section titled “Looks Model”type Look = {id: string;description: string;entity: "look";meta: Record<string, unknown>;enabled: boolean;createdAt: string;updatedAt: string;}Intrinsic values:
Section titled “Intrinsic values:”- 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: trueare 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)