58 lines
1.3 KiB
PHP
58 lines
1.3 KiB
PHP
<?php
|
||
|
||
namespace app\models;
|
||
|
||
use Yii;
|
||
|
||
/**
|
||
* This is the model class for table "cx_store_bj".
|
||
*
|
||
* @property int $id
|
||
* @property int $store_id 门店ID
|
||
* @property string $name 保洁姓名
|
||
* @property string $mobile 保洁联系方式
|
||
* @property int|null $is_delete 是否删除,0=否,1=是
|
||
* @property int|null $deleted_at 删除时间
|
||
* @property int $status 状态,0=正常,1=封禁
|
||
* @property int $created_at 添加时间
|
||
* @property int $updated_at 更新时间
|
||
*/
|
||
class StoreBj extends \yii\db\ActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'cx_store_bj';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['name'], 'required'],
|
||
[['is_delete', 'deleted_at', 'status', 'created_at', 'updated_at'], 'integer'],
|
||
[['name'], 'string', 'max' => 30],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'name' => 'Name',
|
||
'is_delete' => 'Is Delete',
|
||
'deleted_at' => 'Deleted At',
|
||
'status' => 'Status',
|
||
'created_at' => 'Created At',
|
||
'updated_at' => 'Updated At',
|
||
];
|
||
}
|
||
}
|