選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

50 行
964 B

  1. <?php
  2. namespace backend\modules\api\models;
  3. use yii\db\ActiveRecord;
  4. /**
  5. * This is the model class for table "driver_app_version".
  6. *
  7. * @property integer $id
  8. * @property string $app_version
  9. * @property string $app_url
  10. * @property string $last_release
  11. */
  12. class DriverAppVersion extends ActiveRecord
  13. {
  14. /**
  15. * @inheritdoc
  16. */
  17. public static function tableName()
  18. {
  19. return 'driver_app_version';
  20. }
  21. /**
  22. * @inheritdoc
  23. */
  24. public function rules()
  25. {
  26. return [
  27. [['app_version'], 'string', 'max' => 10],
  28. [['app_url'], 'string', 'max' => 100],
  29. [['last_release'], 'string', 'max' => 20],
  30. ];
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function attributeLabels()
  36. {
  37. return [
  38. 'id' => 'ID',
  39. 'app_version' => 'App Version',
  40. 'app_url' => 'App Url',
  41. 'last_release' => 'Last Release',
  42. ];
  43. }
  44. }