*/ use HasFactory, HasUlids; protected $fillable = [ 'user_id', 'weight_kg', 'source', 'measured_at', ]; protected $attributes = [ 'source' => 'manual', ]; protected function casts(): array { return [ 'weight_kg' => 'float', 'measured_at' => 'immutable_datetime', ]; } public function user(): BelongsTo { return $this->belongsTo(User::class); } }