| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- namespace common\models;
- /**
- * This is the model class for table "xhUserCapital".
- *
- * @property int $id
- * @property int $userId 用户id
- * @property string $alipayId 支付宝用户id
- * @property int $merchantId 商家id
- * @property string $relateId 关联id
- * @property int $capitalType 流水订单的类型 参考configDict capitalType
- * @property int $operateId 操作人id adminId 等
- * @property string $balance 余额
- * @property string $amount 金额
- * @property int $io 收支类型0支出 1收入
- * @property string $totalIncome 累计收入
- * @property string $totalExpend 累计支出
- * @property int $payWay 资金收支方式0微信1支付宝2余额3现金,具体请查看配置文件configDict payWay
- * @property string $event 事项,说明,类型的具体解释
- * @property string $userName 用户名
- * @property string $remark 备注
- * @property int $addTime 添加时间,时间戳格式
- * @property string $createTime 创建时间
- * @property string $updateTime
- */
- class xhUserCapital extends xhBaseModel
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'xhUserCapital';
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['userId', 'merchantId', 'capitalType', 'operateId', 'io', 'payWay', 'addTime'], 'integer'],
- [['balance', 'amount', 'totalIncome', 'totalExpend'], 'number'],
- [['createTime'], 'required'],
- [['createTime', 'updateTime'], 'safe'],
- [['alipayId', 'event', 'userName'], 'string', 'max' => 50],
- [['relateId'], 'string', 'max' => 100],
- [['remark'], 'string', 'max' => 500],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'userId' => 'User ID',
- 'alipayId' => 'Alipay ID',
- 'merchantId' => 'Merchant ID',
- 'relateId' => 'Relate ID',
- 'capitalType' => 'Capital Type',
- 'operateId' => 'Operate ID',
- 'balance' => 'Balance',
- 'amount' => 'Amount',
- 'io' => 'Io',
- 'totalIncome' => 'Total Income',
- 'totalExpend' => 'Total Expend',
- 'payWay' => 'Pay Way',
- 'event' => 'Event',
- 'userName' => 'User Name',
- 'remark' => 'Remark',
- 'addTime' => 'Add Time',
- 'createTime' => 'Create Time',
- 'updateTime' => 'Update Time',
- ];
- }
- }
|