'int', 'default_items' => 'array', 'is_active' => 'bool', 'created_by' => 'int', ]; public function branch(): BelongsTo { return $this->belongsTo(Branch::class); } public function creator(): BelongsTo { return $this->belongsTo(User::class, 'created_by'); } public function scopeActive(Builder $q): Builder { return $q->where('is_active', true); } }