'integer', 'settled_at' => 'datetime', ]; } protected static function booted(): void { static::creating(function (self $s): void { if (empty($s->uuid)) { $s->uuid = (string) Str::uuid(); } }); } public function store(): BelongsTo { return $this->belongsTo(PartnerStore::class, 'store_id'); } public function recorder(): BelongsTo { return $this->belongsTo(User::class, 'recorded_by_user_id'); } }