| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\helpers\Json;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%local_delivery_courier_tag}}".
- *
- * @property integer $id
- * @property integer $tag
- * @property integer $star
- * @property integer $is_show
- * @property integer $is_delete
- * @property integer $created_at
- * @property integer $updated_at
- */
- class LocalDeliveryCourierTag extends \yii\db\ActiveRecord
- {
- const IS_DELETE_YES = 1;//已删除
- const IS_DELETE_NO = 0;//未删除
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%local_delivery_courier_tag}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['id', 'star', 'is_delete', 'created_at', 'updated_at', 'is_show'], 'integer'],
- [['tag'], 'string']
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => '',
- 'tag' => '标签内容',
- 'star' => '星级',
- 'is_delete' => '',
- 'is_show' => '',
- 'created_at' => '创建时间',
- 'updated_at' => '修改时间',
- ];
- }
-
- }
|