folderFile Structure

A Sketch YAML file follows a specific structure to define your model's properties and relationships. Here's the basic structure:

model: YourModelName
primaryKey:
    name: id
    type: integer
fields:
    - { name: field_name, type: field_type, nullable: boolean }
timestamps: boolean
softDeletes: boolean
relationships:
    - { type: relationshipType, ... }

Last updated