59 lines
1.4 KiB
PHP
59 lines
1.4 KiB
PHP
<?php
|
||
|
||
namespace app\models;
|
||
|
||
use Yii;
|
||
|
||
/**
|
||
* This is the model class for table "cx_ball_mark".
|
||
*
|
||
* @property int $id
|
||
* @property string $name 型号名称
|
||
* @property string|null $desc 型号描述
|
||
* @property int $is_delete 是否删除,0=否,1=是
|
||
* @property int $created_at 添加时间
|
||
* @property int $updated_at 更新时间
|
||
* @property int $deleted_at 删除时间
|
||
* @property int $status 是否启用,0=否,1=是
|
||
*/
|
||
class BallMark extends \yii\db\ActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'cx_ball_mark';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['name'], 'required'],
|
||
[['desc'], 'string'],
|
||
[['is_delete', 'created_at', 'updated_at', 'deleted_at', 'status'], 'integer'],
|
||
[['name'], 'string', 'max' => 50],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'name' => 'Name',
|
||
'desc' => 'Desc',
|
||
'is_delete' => 'Is Delete',
|
||
'created_at' => 'Created At',
|
||
'updated_at' => 'Updated At',
|
||
'deleted_at' => 'Deleted At',
|
||
'status' => 'Status',
|
||
];
|
||
}
|
||
}
|