FDetaIllegalUsingCar.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace app\modules\car\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%f_deta_illegal_using_car}}".
  6. *
  7. * @property int $id 序号
  8. * @property int $car_id 外键关联f_car_infor(car_id)
  9. * @property string|null $alarm_area_des 报警区域描述
  10. * @property string|null $alarm_rule_des 报警规则描述
  11. * @property string $cross_border_t 越界时间
  12. * @property string|null $dest 目的地
  13. * @property string|null $reason 出车事由
  14. * @property int|null $year 年
  15. * @property int|null $month 月
  16. */
  17. class FDetaIllegalUsingCar extends \app\common\models\EActiveRecord
  18. {
  19. /**
  20. * {@inheritdoc}
  21. */
  22. public static function tableName()
  23. {
  24. return '{{%f_deta_illegal_using_car}}';
  25. }
  26. /**
  27. * {@inheritdoc}
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['car_id'], 'required'],
  33. [['car_id', 'year', 'month'], 'integer'],
  34. [['cross_border_t'], 'safe'],
  35. [['alarm_area_des', 'alarm_rule_des', 'dest', 'reason'], 'string', 'max' => 255],
  36. ];
  37. }
  38. /**
  39. * {@inheritdoc}
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => '序号',
  45. 'car_id' => '外键关联f_car_infor(car_id)',
  46. 'alarm_area_des' => '报警区域描述',
  47. 'alarm_rule_des' => '报警规则描述',
  48. 'cross_border_t' => '越界时间',
  49. 'dest' => '目的地',
  50. 'reason' => '出车事由',
  51. 'year' => '年',
  52. 'month' => '月',
  53. ];
  54. }
  55. }