IntegralAppreciationGoods.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 "{{%insurance}}".
  12. *
  13. * @property integer $id
  14. * @property integer $goods_id
  15. * @property integer $store_id
  16. * @property float $reflux_amount
  17. * @property float $integral_amount
  18. * @property integer $is_delete
  19. * @property string $created_at
  20. * @property string $updated_at
  21. */
  22. class IntegralAppreciationGoods extends \yii\db\ActiveRecord
  23. {
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public static function tableName()
  28. {
  29. return '{{%integral_appreciation_goods}}';
  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', 'goods_id', 'store_id', 'is_delete'], 'integer'],
  46. [['reflux_amount', 'integral_amount', 'created_at', 'updated_at'], 'number']
  47. ];
  48. }
  49. /**
  50. * {@inheritdoc}
  51. */
  52. public function attributeLabels()
  53. {
  54. return [
  55. 'id' => '',
  56. 'goods_id' => '商品ID',
  57. 'store_id' => '商城ID',
  58. 'reflux_amount' => '回流奖金池金额',
  59. 'integral_amount' => '增值积分金额',
  60. 'is_delete' => '',
  61. 'created_at' => '',
  62. 'updated_at' => ''
  63. ];
  64. }
  65. }