IntegralAppreciationUser.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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_user}}".
  12. *
  13. * @property integer $id
  14. * @property integer $store_id
  15. * @property integer $user_id
  16. * @property float $integral
  17. * @property float $total_integral
  18. * @property string $created_at
  19. * @property string $updated_at
  20. */
  21. class IntegralAppreciationUser extends \yii\db\ActiveRecord
  22. {
  23. /**
  24. * {@inheritdoc}
  25. */
  26. public static function tableName()
  27. {
  28. return '{{%integral_appreciation_user}}';
  29. }
  30. public function behaviors()
  31. {
  32. return [
  33. [
  34. 'class' => TimestampBehavior::class
  35. ]
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function rules()
  42. {
  43. return [
  44. [['id', 'store_id', 'user_id'], 'integer'],
  45. [['integral', 'total_integral', 'created_at', 'updated_at'], 'number']
  46. ];
  47. }
  48. /**
  49. * {@inheritdoc}
  50. */
  51. public function attributeLabels()
  52. {
  53. return [
  54. 'id' => '',
  55. 'store_id' => '商城ID',
  56. 'user_id' => '用户ID',
  57. 'integral' => '可提现积分数量',
  58. 'total_integral' => '总积分数量',
  59. 'created_at' => '',
  60. 'updated_at' => '',
  61. ];
  62. }
  63. }