<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Coupon extends Model
{
    //
	const COUPON_GENERATE_USED = 1;
	const COUPON_GENERATE_NOT_USED = 0;

	const STATUS_ACTIVE = 1;
	const STATUS_IN_ACTIVE = 0;


    use SoftDeletes;

    protected $fillable = [
        'name',
        'number',
        'number_month_more',
        'package_ids',
	    'package_apply',
        'is_upgrade_package',
        'from_date_expire',
        'end_date_expire',
        'number_use',
        'note',
        'is_payment',
        'partner_id',
        'created_at',
        'updated_at',
        'deleted_at',
        'type',
        'amount_reduce',
        'percent_reduce',
        'percent_reduce_max',
        'minimum_payment_month'
    ];

    protected $dates = [
        'created_at',
        'updated_at',
        'deleted_at',
	    'from_date_expire',
	    'end_date_expire'
    ];
}
