xhAdminToMerchant.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhAdminToMerchant".
  5. *
  6. * @property int $id
  7. * @property int $merchantId 商家
  8. * @property int $adminId 管理员
  9. * @property int $receiveMsg 接收系统消息0不接收 1接收
  10. * @property string $createTime 创建时间
  11. * @property string $updateTime 修改时间
  12. */
  13. class xhAdminToMerchant extends xhBaseModel
  14. {
  15. /**
  16. * @inheritdoc
  17. */
  18. public static function tableName()
  19. {
  20. return 'xhAdminToMerchant';
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function rules()
  26. {
  27. return [
  28. [['merchantId', 'adminId', 'receiveMsg'], 'integer'],
  29. [['createTime'], 'required'],
  30. [['createTime', 'updateTime'], 'safe'],
  31. [['adminId'], 'unique'],
  32. ];
  33. }
  34. /**
  35. * @inheritdoc
  36. */
  37. public function attributeLabels()
  38. {
  39. return [
  40. 'id' => 'ID',
  41. 'merchantId' => 'Merchant ID',
  42. 'adminId' => 'Admin ID',
  43. 'receiveMsg' => 'Receive Msg',
  44. 'createTime' => 'Create Time',
  45. 'updateTime' => 'Update Time',
  46. ];
  47. }
  48. }