xhWifi.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhWifi".
  5. *
  6. * @property int $id
  7. * @property string $shopId 微信shop_id
  8. * @property string $ssid wifi帐号
  9. * @property string $ssidPassword wifi密码
  10. * @property string $createTime 创建时间
  11. * @property string $updateTime
  12. */
  13. class xhWifi extends xhBaseModel
  14. {
  15. /**
  16. * @inheritdoc
  17. */
  18. public static function tableName()
  19. {
  20. return 'xhWifi';
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['createTime'], 'required'],
  29. [['createTime', 'updateTime'], 'safe'],
  30. [['shopId', 'ssid'], 'string', 'max' => 20],
  31. [['ssidPassword'], 'string', 'max' => 30],
  32. ];
  33. }
  34. /**
  35. * @inheritdoc
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => 'ID',
  41. 'shopId' => 'Shop ID',
  42. 'ssid' => 'Ssid',
  43. 'ssidPassword' => 'Ssid Password',
  44. 'createTime' => 'Create Time',
  45. 'updateTime' => 'Update Time',
  46. ];
  47. }
  48. }