WorkerCatExt.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. /**
  12. * This is the model class for table "{{%worker_cat_ext}}".
  13. *
  14. * @property integer $id
  15. * @property integer $store_id
  16. * @property string $worker_id
  17. * @property integer $cat_id
  18. * @property string $is_delete
  19. * @property integer $created_at
  20. * @property integer $updated_at
  21. */
  22. class WorkerCatExt extends \yii\db\ActiveRecord
  23. {
  24. /**
  25. * @inheritdoc
  26. */
  27. public static function tableName()
  28. {
  29. return '{{%worker_cat_ext}}';
  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', 'worker_id', 'is_delete', 'cat_id', 'created_at', 'updated_at'], 'integer'],
  46. [['created_at', 'updated_at'], 'safe']
  47. ];
  48. }
  49. }