IntegralAppreciationCashLog.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2023 赤店商城 All rights reserved.
  6. */
  7. namespace app\models;
  8. use yii\db\ActiveRecord;
  9. use yii\behaviors\TimestampBehavior;
  10. /**
  11. * This is the model class for table "{{%integral_appreciation_cash_log}}".
  12. *
  13. * @property integer $id
  14. * @property integer $user_id
  15. * @property integer $cash_id
  16. * @property float $integral
  17. * @property float $integral_price
  18. * @property float $reflux_profit
  19. * @property float $reflux_price
  20. * @property float $cash_price
  21. * @property string $created_at
  22. * @property string $updated_at
  23. */
  24. class IntegralAppreciationCashLog extends \yii\db\ActiveRecord
  25. {
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public static function tableName()
  30. {
  31. return '{{%integral_appreciation_cash_log}}';
  32. }
  33. public function behaviors()
  34. {
  35. return [
  36. [
  37. 'class' => TimestampBehavior::class
  38. ]
  39. ];
  40. }
  41. /**
  42. * {@inheritdoc}
  43. */
  44. public function rules()
  45. {
  46. return [
  47. [['id', 'user_id', 'cash_id'], 'integer'],
  48. [['integral', 'reflux_profit', 'reflux_price', 'cash_price', 'created_at', 'updated_at', 'integral_price'], 'number']
  49. ];
  50. }
  51. /**
  52. * {@inheritdoc}
  53. */
  54. public function attributeLabels()
  55. {
  56. return [
  57. 'id' => '',
  58. 'user_id' => '用户ID',
  59. 'cash_id' => '提现ID',
  60. 'integral' => '提现积分数量',
  61. 'integral_price' => '积分价格',
  62. 'reflux_profit' => '回流奖金池比例',
  63. 'reflux_price' => '回流奖金池金额',
  64. 'cash_price' => '实际提现金额',
  65. 'created_at' => '',
  66. 'updated_at' => '',
  67. ];
  68. }
  69. }