xhUserAlipay.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "xhUserAlipay".
  6. *
  7. * @property integer $id
  8. * @property integer $merchantId
  9. * @property string $alipayId
  10. * @property string $alipayAccount
  11. * @property integer $userId
  12. * @property integer $addTime
  13. * @property string $createTime
  14. * @property string $updateTime
  15. */
  16. class xhUserAlipay extends xhBaseModel
  17. {
  18. /**
  19. * @inheritdoc
  20. */
  21. public static function tableName()
  22. {
  23. return 'xhUserAlipay';
  24. }
  25. /**
  26. * @inheritdoc
  27. */
  28. public function rules()
  29. {
  30. return [
  31. [['merchantId', 'userId', 'addTime'], 'integer'],
  32. [['createTime'], 'required'],
  33. [['createTime', 'updateTime'], 'safe'],
  34. [['alipayId'], 'string', 'max' => 50],
  35. [['alipayAccount'], 'string', 'max' => 20],
  36. ];
  37. }
  38. /**
  39. * @inheritdoc
  40. */
  41. public function attributeLabels()
  42. {
  43. return [
  44. 'id' => 'ID',
  45. 'merchantId' => 'Merchant ID',
  46. 'alipayId' => 'Alipay ID',
  47. 'alipayAccount' => 'Alipay Account',
  48. 'userId' => 'User ID',
  49. 'addTime' => 'Add Time',
  50. 'createTime' => 'Create Time',
  51. 'updateTime' => 'Update Time',
  52. ];
  53. }
  54. }