| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- /**
- * MdGroupDriver.php
- * todo 文件描述
- * Created on 2024/3/22 12:00
- * @author: hankaige
- */
- namespace app\models;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- * This is the model class for table "{{%md_setting}}".
- * @property integer $id
- * @property integer $store_id
- * @property integer $code
- * @property integer $name
- * @property integer $mobile
- * @property integer $status
- * @property integer $created_at
- * @property integer $updated_at
- * @property integer $is_delete
- */
- class MdGroupDriver extends \yii\db\ActiveRecord
- {
- const STATUS_TRUE = 1;
- const STATUS_FALSE = 0;
- public static function tableName()
- {
- return "{{%md_group_driver}}";
- }
- public function behaviors()
- {
- return [
- [
- 'class' => TimestampBehavior::class,
- 'attributes' => [
- ActiveRecord::EVENT_BEFORE_INSERT => ['created_at'],
- ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at']
- ]
- ]
- ];
- }
- public function rules()
- {
- return [
- [
- [
- 'store_id',
- 'code',
- 'name',
- 'mobile'
- ],
- 'required'
- ],
- [
- [
- 'store_id',
- 'status'
- ],
- 'integer'
- ],
- [
- [
- 'code',
- 'name',
- 'mobile'
- ],
- 'string'
- ]
- ];
- }
- public function attributeLabels()
- {
- return [
- 'store_id' => '商城ID',
- 'code' => '司机编号',
- 'name' => '司机姓名',
- 'mobile' => '司机手机号',
- 'status' => '司机状态'
- ];
- }
- }
|