1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace app\modules\car\models;
- use Yii;
- /**
- * This is the model class for table "{{%f_car_scrap}}".
- *
- * @property int $id ID
- * @property string $card_num 车牌
- * @property string|null $city 一级单位,地市
- * @property string|null $dpt_sec 二级单位,区县
- * @property string|null $grid 三级单位,网格
- * @property int $year 年
- * @property int $month 月
- */
- class FCarScrap extends \app\common\models\EActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%f_car_scrap}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['card_num', 'year', 'month'], 'required'],
- [['year', 'month'], 'integer'],
- [['card_num'], 'string', 'max' => 20],
- [['city', 'dpt_sec', 'grid'], 'string', 'max' => 50],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'card_num' => '车牌',
- 'city' => '一级单位,地市',
- 'dpt_sec' => '二级单位,区县',
- 'grid' => '三级单位,网格',
- 'year' => '年',
- 'month' => '月',
- ];
- }
- }
|