| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- namespace common\models\user;
- use Yii;
- /**
- * This is the model class for table "{{%user_freeze_commission_log}}".
- *
- * @property int $id ID
- * @property int $mall_id 商城ID
- * @property int $user_id 用户ID
- * @property float $amount 佣金金额
- * @property float $freeze_scale 冻结比例
- * @property float $freeze_amount 冻结金额
- * @property string $change_type 操作类型:add-增加,sub-减少
- * @property string $desc 备注
- * @property int $status 状态[-1删除; 0禁用; 1正常]
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- */
- class UserFreezeCommissionLog extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%user_freeze_commission_log}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['mall_id', 'user_id', 'status', 'created_at', 'updated_at'], 'integer'],
- [['amount', 'freeze_scale', 'freeze_amount'], 'number'],
- [['change_type'], 'string', 'max' => 12],
- [['desc'], 'string', 'max' => 255],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'mall_id' => '商城ID',
- 'user_id' => '用户ID',
- 'amount' => '佣金金额',
- 'freeze_scale' => '冻结比例',
- 'freeze_amount' => '冻结金额',
- 'change_type' => '操作类型:add-增加,sub-减少',
- 'desc' => '备注',
- 'status' => '状态[-1删除; 0禁用; 1正常]',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- ];
- }
- }
|