You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 regels
903 B

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