'integer', 'growth_value' => 'integer', 'first_order_completed_at' => 'datetime', 'level_updated_at' => 'datetime', 'growth_value_expires_at' => 'datetime', ]; public function customer() { return $this->belongsTo(Customer::class, 'customer_id'); } public function history() { return $this->hasMany(GrowthValueHistory::class, 'customer_id', 'customer_id'); } public function levelConfig() { return $this->hasOne(GrowthValueLevel::class, 'level_code', 'growth_level'); } }