| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "{{%territorial_limitation}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property string $detail
- * @property integer $addtime
- * @property integer $is_enable
- * @property integer $is_delete
- */
- class TerritorialLimitation extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%territorial_limitation}}';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id', 'detail'], 'required'],
- [['store_id', 'created_at', 'updated_at', 'is_enable', 'is_delete'], 'integer'],
- [['detail'], 'string'],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'detail' => 'Detail',
- 'created_at' => '创建时间',
- 'is_enable' => 'Is Enable',
- 'is_delete' => 'Is Delete',
- 'updated_at' => '更新时间'
- ];
- }
- }
|