User Profile Examples

model: Profile
primaryKey:
    name: id
    type: ulid
fields:
    - { name: bio, type: text, nullable: true }
    - { name: website, type: string, nullable: true }
    - { name: birthday, type: date, nullable: true }
    - { name: settings, type: json, nullable: true }
timestamps: true
softDeletes: false
relationships:
    - { type: belongsTo, model: User, foreignKey: user_id, ownerKey: id, keyType: ulid }

Last updated