| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?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 "{{%sender}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property string $company
- * @property string $name
- * @property string $tel
- * @property string $mobile
- * @property string $post_code
- * @property string $province
- * @property string $city
- * @property string $exp_area
- * @property string $address
- * @property integer $is_delete
- * @property integer $delivery_id
- * @property integer $created_at
- * @property integer $updated_at
- * @property integer $supplier_id
- */
- class Sender extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%sender}}';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id', 'is_delete', 'delivery_id', 'created_at', 'updated_at', 'supplier_id'], 'integer'],
- [['company', 'name', 'tel', 'mobile', 'post_code', 'province', 'city', 'exp_area', 'address'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'company' => 'Company',
- 'name' => 'Name',
- 'tel' => 'Tel',
- 'mobile' => 'Mobile',
- 'post_code' => 'Post Code',
- 'province' => 'Province',
- 'city' => 'City',
- 'exp_area' => 'Exp Area',
- 'address' => 'Address',
- 'is_delete' => 'Is Delete',
- 'delivery_id' => 'Delivery ID',
- 'updated_at' => '更新时间',
- 'created_at' => '创建时间',
- 'supplier_id' => '供货商id'
- ];
- }
- }
|