Belongs To Many
relationships:
- type: belongsToMany
model: Role
pivotTable: user_roles
pivotTableKeyType: uuid
foreignPivot:
table: users
key: user_id
type: uuid
references: id
relatedPivot:
table: roles
key: role_id
type: id
references: id
pivotColumns:
- name: expires_at
type: timestamp
nullable: true
- name: active
type: boolean
nullable: false
withTimestamps: trueLast updated