<?php

namespace Modules\Payment\Models;

use App\Models\Model;
use App\Traits\OrderByIdDesc;
use Illuminate\Database\Eloquent\SoftDeletes;

class Redpack extends Model
{

    use OrderByIdDesc,
        SoftDeletes;

    protected $table = 'payment_redpacks';

    const COMMON_REDPACK = 0;
    const GROUP_REDPACK  = 1;

    const TYPE_MAP = [
        self::COMMON_REDPACK => '普通红包',
        self::GROUP_REDPACK  => '裂变红包',
    ];

}