You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

91 lines
2.3 KiB

<?php
declare (strict_types=1);
namespace App\Model;
/**
*/
class FinancialRecord extends Model
{
/**
* 当面付商户首单奖励限制的订单金额
*/
const OFL_FIRST_AWARD_LIMIT_AMOUNT = 3;
/**
* 虚拟账户
*/
const ACCOUNT_LEDGER = -1;
/**
* 账户类型
*
* 总账
* USER_TYPE_LEDGER / -1
*
* 用户/商户账户
* USER_TYPE_USER / 1
*
* MP用户账户,服务商、市场经理、服务站点等
* USER_TYPE_MP / 2
*/
const USER_TYPE_LEDGER = -1;
const USER_TYPE_USER = 1;
const USER_TYPE_MP = 2;
/**
* 关联类型
*
* 订单
* SOURCE_TYPE_ORDER / 1
*/
const SOURCE_TYPE_ORDER = 1;
/**
* 流水类型,大的分类,<100是奖励分账等收入项 >=100是提现消费等支出项
*/
const MONEY_TYPE_PLAT_NEW_USER = 1; // 社区服务点新用户奖励(线上订单完成)
const MONEY_TYPE_FIRST_ORDER = 2; // 社区服务点新用户线上首单奖励(线上订单完成)
const MONEY_TYPE_OL_ORDER = 3; // 社区服务点用户线上订单分账(线上订单完成)
const MONEY_TYPE_STORE_PLAT_NEW_USER = 4; // 商户平台新用户奖励
const MONEY_TYPE_STORE_FIRST_ORDER = 5; // 商户当日首单奖励
const MONEY_TYPE_STORE_OL_ORDER_COMP = 6; // 商户线上订单完成收入
const MONEY_TYPE_STORE_OFL_ORDER_COMP = 7; // 商户线下订单完成收入
const MONEY_TYPE_USER_OFL_ORDER = 100; // 用户线下支付订单
const MONEY_TYPE_USER_OL_ORDER = 101; // 用户线上支付订单
/**
* 状态
*/
const STATUS_NORMAL = 1;
const STATUS_ABNORMAL = 2;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'lanzu_financial_record';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'user_id',
'user_type',
'money',
'money_type',
'source_id',
'source_type',
'desc',
'comment',
'status',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [];
}