NewIntegralSetting.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. use yii\behaviors\TimestampBehavior;
  10. use yii\db\ActiveRecord;
  11. class NewIntegralSetting extends \yii\db\ActiveRecord
  12. {
  13. /**
  14. * @inheritdoc
  15. */
  16. public static function tableName()
  17. {
  18. return '{{%new_integral_setting}}';
  19. }
  20. /**
  21. * @inheritdoc
  22. */
  23. public function rules()
  24. {
  25. return [
  26. [['store_id'], 'integer'],
  27. ];
  28. }
  29. // public function behaviors()
  30. // {
  31. // return [
  32. // [
  33. // 'class' => TimestampBehavior::class,
  34. // 'attributes' => [
  35. // ActiveRecord::EVENT_BEFORE_INSERT => ['updated_at', 'created_at'],
  36. // ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at'
  37. // ]
  38. // ]
  39. // ];
  40. // }
  41. /**
  42. * @inheritdoc
  43. */
  44. public function attributeLabels()
  45. {
  46. return [
  47. 'id' => 'ID',
  48. 'store_id' => '商城id',
  49. 'polling_img' => '轮播图',
  50. 'explain' => '积分说明',
  51. 'created_at' => '创建时间',
  52. ];
  53. }
  54. }