cxgj/models/BallCart.php
2023-11-27 09:45:13 +08:00

68 lines
1.8 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace app\models;
use Yii;
/**
* This is the model class for table "cx_ball_cart".
*
* @property int $id
* @property int $store_id 门店ID
* @property int $mark_id 型号ID
* @property string $name 球车名称
* @property string $ball_number 球车编号
* @property float $money 租赁金额
* @property string $cover_pic 封面图
* @property int $status 0-正常 1-租赁 2-停用
* @property int $created_at 添加时间
* @property int $updated_at 更新时间
* @property int|null $is_delete 是否删除0=否1=是
* @property int|null $deleted_at 删除时间
*/
class BallCart extends \yii\db\ActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return 'cx_ball_cart';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['store_id', 'mark_id', 'name', 'ball_number', 'money', 'cover_pic', 'created_at'], 'required'],
[['store_id', 'mark_id', 'status', 'created_at', 'updated_at', 'is_delete', 'deleted_at'], 'integer'],
[['money'], 'number'],
[['name', 'ball_number'], 'string', 'max' => 50],
[['cover_pic'], 'string', 'max' => 255],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'store_id' => 'Store ID',
'mark_id' => 'Mark ID',
'name' => 'Name',
'ball_number' => 'Ball Number',
'money' => 'Money',
'cover_pic' => 'Cover Pic',
'status' => 'Status',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
'is_delete' => 'Is Delete',
'deleted_at' => 'Deleted At',
];
}
}