|
- <?php
-
- namespace backend\modules\api\models;
-
- use yii\db\ActiveRecord;
-
- /**
- * This is the model class for table "run_bus_pos".
- *
- * @property integer $id
- * @property integer $run_id
- * @property integer $bus_no
- * @property string $phone_serial_no
- * @property string $log_time
- * @property string $pos_x
- * @property string $pos_y
- * @property integer $driver_id
- */
- class RunBusPos extends ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'run_bus_pos';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['run_id', 'bus_no', 'driver_id'], 'integer'],
- [['pos_x', 'pos_y'], 'number'],
- [['phone_serial_no'], 'string', 'max' => 64],
- [['log_time'], 'string', 'max' => 20],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'run_id' => 'Run ID',
- 'bus_no' => 'Bus No',
- 'phone_serial_no' => 'Phone Serial No',
- 'log_time' => 'Log Time',
- 'pos_x' => 'Pos X',
- 'pos_y' => 'Pos Y',
- 'driver_id' => 'Driver ID',
- ];
- }
- }
|