UserFreezeCommissionLog.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. namespace common\models\user;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%user_freeze_commission_log}}".
  6. *
  7. * @property int $id ID
  8. * @property int $mall_id 商城ID
  9. * @property int $user_id 用户ID
  10. * @property float $amount 佣金金额
  11. * @property float $freeze_scale 冻结比例
  12. * @property float $freeze_amount 冻结金额
  13. * @property string $change_type 操作类型:add-增加,sub-减少
  14. * @property string $desc 备注
  15. * @property int $status 状态[-1删除; 0禁用; 1正常]
  16. * @property int $created_at 创建时间
  17. * @property int $updated_at 更新时间
  18. */
  19. class UserFreezeCommissionLog extends \common\models\base\BaseActiveRecord
  20. {
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%user_freeze_commission_log}}';
  27. }
  28. /**
  29. * {@inheritdoc}
  30. */
  31. public function rules()
  32. {
  33. return [
  34. [['mall_id', 'user_id', 'status', 'created_at', 'updated_at'], 'integer'],
  35. [['amount', 'freeze_scale', 'freeze_amount'], 'number'],
  36. [['change_type'], 'string', 'max' => 12],
  37. [['desc'], 'string', 'max' => 255],
  38. ];
  39. }
  40. /**
  41. * {@inheritdoc}
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'mall_id' => '商城ID',
  48. 'user_id' => '用户ID',
  49. 'amount' => '佣金金额',
  50. 'freeze_scale' => '冻结比例',
  51. 'freeze_amount' => '冻结金额',
  52. 'change_type' => '操作类型:add-增加,sub-减少',
  53. 'desc' => '备注',
  54. 'status' => '状态[-1删除; 0禁用; 1正常]',
  55. 'created_at' => '创建时间',
  56. 'updated_at' => '更新时间',
  57. ];
  58. }
  59. }