| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- use Yii;
- /**
- * This is the model class for table "{{%md_staff}}".
- *
- * @property integer $id
- * @property integer $store_id
- * @property integer $md_id
- * @property integer $saas_user_id
- * @property string $name
- * @property string $mobile
- * @property integer $is_delete
- * @property integer $is_manager
- * @property integer $is_disable
- * @property integer $created_at
- * @property integer $updated_at
- */
- class MdStaff extends \yii\db\ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return '{{%md_staff}}';
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
- ]
- ]
- ];
- }
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['store_id', 'md_id', 'saas_user_id', 'is_manager', 'is_delete', 'is_disable', 'created_at', 'updated_at'], 'integer'],
- [['name', 'mobile'], 'string'],
- ];
- }
- }
|