| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- <?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 "{{%delivery}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $express_id
- * @property string $customer_name
- * @property string $customer_pwd
- * @property string $month_code
- * @property string $send_site
- * @property string $send_name
- * @property integer $is_delete
- * @property integer $created_at
- * @property integer $updated_at
- * @property string $template_size
- * @property integer $supplier_id
- * @property integer $type
- */
- class Delivery extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%delivery}}';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id', 'express_id', 'is_delete', 'created_at', 'updated_at', 'supplier_id', 'type'], 'integer'],
- [['customer_name', 'customer_pwd', 'month_code', 'send_site', 'send_name', 'template_size'], 'string', 'max' => 255],
- ];
- }
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'express_id' => '快递公司id',
- 'customer_name' => '电子面单客户账号',
- 'customer_pwd' => '电子面单密码',
- 'month_code' => '月结编码',
- 'send_site' => '网点编码',
- 'send_name' => '网点名称',
- 'is_delete' => 'Is Delete',
- 'template_size' => '快递鸟电子面单模板规格',
- 'updated_at' => '更新时间',
- 'created_at' => '创建时间',
- 'supplier_id' => '供货商id',
- 'type' => '类型'
- ];
- }
- }
|