'integer', 'amount' => 'integer', 'balance' => 'integer', 'history_order_id' => 'integer', 'expired_day' => 'integer', 'point_remaining' => 'integer', 'check_time' => 'integer', 'status' => 'integer' ]; protected $dates = ['transaction_time', 'expired_time']; const STATUS_PENDING = 0; const STATUS_COMPLETED = 1; const STATUS_CANCELLED = 2; const STATUS_EXPIRED = 3; public function customer() { return $this->belongsTo(Customer::class, 'customer_id'); } }