xhPicture.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "xhPicture".
  6. *
  7. * @property integer $id
  8. * @property integer $merchantId
  9. * @property integer $categoryId
  10. * @property integer $categoryType
  11. * @property string $mobileUrl
  12. * @property string $mobileUrlBig
  13. * @property string $pcUrl
  14. * @property string $pcUrlBig
  15. * @property integer $addTime
  16. */
  17. class XhPicture extends xhBaseModel
  18. {
  19. /**
  20. * @inheritdoc
  21. */
  22. public static function tableName()
  23. {
  24. return 'xhPicture';
  25. }
  26. /**
  27. * @inheritdoc
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['merchantId', 'categoryId', 'categoryType', 'picSort', 'addTime'], 'integer'],
  33. [['mobileUrlSmall', 'mobileUrl', 'mobileUrlBig', 'pcUrl', 'pcUrlBig'], 'string', 'max' => 100],
  34. ];
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function attributeLabels()
  40. {
  41. return [
  42. 'id' => 'ID',
  43. 'merchantId' => 'Merchant ID',
  44. 'categoryId' => 'Category ID',
  45. 'categoryType' => 'Category Type',
  46. 'mobileUrlSmall' => 'Mobile Url Small',
  47. 'mobileUrl' => 'Mobile Url',
  48. 'mobileUrlBig' => 'Mobile Url Big',
  49. 'pcUrl' => 'Pc Url',
  50. 'pcUrlBig' => 'Pc Url Big',
  51. 'picSort' => 'Pic Sort',
  52. 'addTime' => 'Add Time',
  53. ];
  54. }
  55. }