DriverLine.php 741 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * 厦门云联储网络科技有限公司
  4. * https://www.baokuaiyun.com
  5. * Copyright (c) 2023 爆块云 All rights reserved.
  6. */
  7. namespace app\models;
  8. use Yii;
  9. use yii\behaviors\TimestampBehavior;
  10. use yii\db\ActiveRecord;
  11. /**
  12. * This is the model class for table "{{%driver_line}}".
  13. *
  14. * @property integer $id
  15. */
  16. class DriverLine extends \yii\db\ActiveRecord
  17. {
  18. const STATUS_WAIT = 0;
  19. const STATUS_DOING = 101;
  20. const STATUS_FINISH = 1;
  21. /**
  22. * @inheritdoc
  23. */
  24. public static function tableName()
  25. {
  26. return '{{%driver_line}}';
  27. }
  28. public function behaviors()
  29. {
  30. return [
  31. [
  32. 'class' => TimestampBehavior::class,
  33. ]
  34. ];
  35. }
  36. }