IntegralAppreciationPool.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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_pool}}".
  12. *
  13. * @property integer $id
  14. * @property integer $store_id
  15. * @property float $amount
  16. * @property float $total_integral
  17. * @property float $total_user_integral
  18. * @property float $integral_price
  19. * @property string $created_at
  20. * @property string $updated_at
  21. */
  22. class IntegralAppreciationPool extends \yii\db\ActiveRecord
  23. {
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public static function tableName()
  28. {
  29. return '{{%integral_appreciation_pool}}';
  30. }
  31. public function behaviors()
  32. {
  33. return [
  34. [
  35. 'class' => TimestampBehavior::class
  36. ]
  37. ];
  38. }
  39. /**
  40. * {@inheritdoc}
  41. */
  42. public function rules()
  43. {
  44. return [
  45. [['id', 'store_id'], 'integer'],
  46. [['amount', 'total_integral', 'integral_price', 'total_user_integral', 'created_at', 'updated_at'], 'number']
  47. ];
  48. }
  49. /**
  50. * {@inheritdoc}
  51. */
  52. public function attributeLabels()
  53. {
  54. return [
  55. 'id' => '',
  56. 'store_id' => '商城ID',
  57. 'amount' => '积分底池金额',
  58. 'total_integral' => '当前一共铸造积分数量',
  59. 'total_user_integral' => '当前给用户发放积分数量',
  60. 'integral_price' => '当前积分价格',
  61. 'created_at' => '',
  62. 'updated_at' => '',
  63. ];
  64. }
  65. }