| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?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 $created_at
- * @property integer $is_enable
- * @property integer $is_delete
- * @property integer $updated_at
- * @property integer $price
- */
- class OfferPrice extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%offer_price}}';
- }
- 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','delivery_type'], 'integer'],
- [['price'], 'number'],
- [['detail'], 'string'],
- [['delivery_rules'], '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' => '更新时间',
- 'price' => '全国起送金额'
- ];
- }
- }
|