| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%user_wallet_coin}}".
- *
- * @property integer $id ID
- * @property integer $store_id 店铺id
- * @property integer $user_id 用户id
- * @property integer $saas_id 联盟id
- * @property integer $cloud_user_id 供应商id
- * @property string $money 余额
- * @property string $money_total 余额总金额
- * @property string $frozen 冻结
- * @property string $withdraw 提现
- * @property string $currency_code 业务货币代码
- * @property integer $created_at
- * @property integer $updated_at
- * @property integer $currency_yewu_id 业务主键id
- * @property integer $currency_id 币种主键id
- * @property integer $is_status
- * @property string $user_percent
- * @property string $agent_percent
- * @property integer $is_open 币种账户是否开启
- * @property string $recommend_percent
- * @property string $store_percent
- * @property string $store_recommend_percent
- * @property string $pay_percent
- * @property string $huifu_id
- * @property integer $shop_status 商城开关
- * @property string $shop_user_percent
- * @property string $shop_agent_percent
- */
- class UserWalletCoin extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%user_wallet_coin}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id', 'user_id', 'saas_id', 'cloud_user_id', 'currency_yewu_id', 'currency_id', 'is_status', 'is_open', 'shop_status'], 'integer'],
- [['money', 'money_total', 'frozen', 'withdraw', 'user_percent', 'agent_percent', 'recommend_percent', 'store_percent', 'store_recommend_percent', 'pay_percent', 'shop_user_percent', 'shop_agent_percent'], 'number'],
- [['currency_code'], 'string', 'max' => 50],
- [['huifu_id'], 'string', 'max' => 255],
- [['created_at', 'updated_at'], 'safe']
- ];
- }
- }
|