LocalDeliveryCourierTag.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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\helpers\Json;
  10. use yii\db\ActiveRecord;
  11. use yii\behaviors\TimestampBehavior;
  12. /**
  13. * This is the model class for table "{{%local_delivery_courier_tag}}".
  14. *
  15. * @property integer $id
  16. * @property integer $tag
  17. * @property integer $star
  18. * @property integer $is_show
  19. * @property integer $is_delete
  20. * @property integer $created_at
  21. * @property integer $updated_at
  22. */
  23. class LocalDeliveryCourierTag extends \yii\db\ActiveRecord
  24. {
  25. const IS_DELETE_YES = 1;//已删除
  26. const IS_DELETE_NO = 0;//未删除
  27. /**
  28. * @inheritdoc
  29. */
  30. public static function tableName()
  31. {
  32. return '{{%local_delivery_courier_tag}}';
  33. }
  34. public function behaviors()
  35. {
  36. return [
  37. [
  38. 'class' => TimestampBehavior::class
  39. ]
  40. ];
  41. }
  42. /**
  43. * @inheritdoc
  44. */
  45. public function rules()
  46. {
  47. return [
  48. [['id', 'star', 'is_delete', 'created_at', 'updated_at', 'is_show'], 'integer'],
  49. [['tag'], 'string']
  50. ];
  51. }
  52. /**
  53. * @inheritdoc
  54. */
  55. public function attributeLabels()
  56. {
  57. return [
  58. 'id' => '',
  59. 'tag' => '标签内容',
  60. 'star' => '星级',
  61. 'is_delete' => '',
  62. 'is_show' => '',
  63. 'created_at' => '创建时间',
  64. 'updated_at' => '修改时间',
  65. ];
  66. }
  67. }