QuanziLabel.php 698 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * 重庆赤晓店信息科技有限公司
  4. * https://www.chixiaodian.com
  5. * Copyright (c) 2025 赤店商城 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. use yii\behaviors\TimestampBehavior;
  10. use yii\db\ActiveRecord;
  11. class QuanziLabel extends \yii\db\ActiveRecord
  12. {
  13. /**
  14. * @inheritdoc
  15. */
  16. public static function tableName()
  17. {
  18. return '{{%quanzi_label}}';
  19. }
  20. public function behaviors()
  21. {
  22. return [
  23. [
  24. // 自动更新创建和更新时间
  25. 'class' => TimestampBehavior::class,
  26. 'updatedAtAttribute' => null,
  27. ]
  28. ];
  29. }
  30. }