FStatsIllegalUsingCar.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. namespace app\modules\car\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%f_stats_illegal_using_car}}".
  6. *
  7. * @property int $id 序号
  8. * @property string|null $city 地市
  9. * @property string|null $sec_unit 二级单位
  10. * @property string|null $grid 网格
  11. * @property int|null $times 1
  12. * @property int|null $year 年
  13. * @property int|null $month 月
  14. */
  15. class FStatsIllegalUsingCar extends \app\common\models\EActiveRecord
  16. {
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public static function tableName()
  21. {
  22. return '{{%f_stats_illegal_using_car}}';
  23. }
  24. /**
  25. * {@inheritdoc}
  26. */
  27. public function rules()
  28. {
  29. return [
  30. [['times', 'year', 'month'], 'integer'],
  31. [['city', 'sec_unit', 'grid'], 'string', 'max' => 255],
  32. ];
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => '序号',
  41. 'city' => '地市',
  42. 'sec_unit' => '二级单位',
  43. 'grid' => '网格',
  44. 'times' => '1',
  45. 'year' => '年',
  46. 'month' => '月',
  47. ];
  48. }
  49. }