<?php


namespace app\shared\model;

use think\Model as ThinkModel;
//账单
class Bill extends ThinkModel
{
    // 设置当前模型对应的完整数据表名称
    protected $name = 'shared_bill';
    // 自动写入时间戳
    protected $autoWriteTimestamp = true;
    //订单类型
    const TYPE_HOUSE=1;//茶室
    
    const TYPE_RECHARGE=2;//后台充值

    const TYPE_WITHDRAW=3;//提现

    const TYPE_TEASPECIALIST=4;//茶艺师

    const TYPE_SHARE=5;//分销
    
    const TYPE_HOUSE_CONTINUE=6;//茶室订单续单

    const TYPE_GOODS=7;//商品订单

    const TYPE_CARD=8;//会员卡订单

    const TYPE_HOUSE_REFUND=9;//茶室订单退款

    const TYPE_PARTNER=10;//合伙人

    const TYPE_CONVERSION=11;//兑换码

    const TYPE_TEASPECIALIST_REFUND=12;//茶室订单退款
    
    const TYPE_STORE_USER_RECHARGE=13;//商户用户余额充值

    const TYPE_STORE_USER_HOUSE=14;//商户储值卡茶室消费

    const TYPE_STORE_USER_GOODS=15;//商户储值卡商城消费



    //账户类型平台
    const ACCOUNT_TYPE_PLATFORM=1;
     //账户类型商户
    const ACCOUNT_TYPE_STORE=2;
     //账户类型用户
    const ACCOUNT_TYPE_USER=3;
    //茶艺师
    const ACCOUNT_TYPE_TEASPECIALIST=4;

}