|
- <?php
-
- namespace backend\modules\api\models;
-
- use yii\db\ActiveRecord;
-
- /**
- * This is the model class for table "driver_app_version".
- *
- * @property integer $id
- * @property string $app_version
- * @property string $app_url
- * @property string $last_release
- */
- class DriverAppVersion extends ActiveRecord
- {
- /**
- * @inheritdoc
- */
- public static function tableName()
- {
- return 'driver_app_version';
- }
-
- /**
- * @inheritdoc
- */
- public function rules()
- {
- return [
- [['app_version'], 'string', 'max' => 10],
- [['app_url'], 'string', 'max' => 100],
- [['last_release'], 'string', 'max' => 20],
- ];
- }
-
- /**
- * @inheritdoc
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'app_version' => 'App Version',
- 'app_url' => 'App Url',
- 'last_release' => 'Last Release',
- ];
- }
- }
|