xhRecharge.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhRecharge".
  5. *
  6. * @property string $id
  7. * @property integer $payWay
  8. * @property integer $payStyle
  9. * @property string $payCode
  10. * @property integer $merchantId
  11. * @property integer $userId
  12. * @property string $userName
  13. * @property string $amount
  14. * @property string $balance
  15. * @property string $event
  16. * @property string $userTotalRecharge
  17. * @property string $merchantTotalRecharge
  18. * @property string $remark
  19. * @property integer $status
  20. * @property integer $addTime
  21. * @property string $createTime
  22. * @property string $updateTime
  23. */
  24. class xhRecharge extends xhBaseModel
  25. {
  26. /**
  27. * @inheritdoc
  28. */
  29. public static function tableName()
  30. {
  31. return 'xhRecharge';
  32. }
  33. /**
  34. * @inheritdoc
  35. */
  36. public function rules()
  37. {
  38. return [
  39. [['id', 'createTime'], 'required'],
  40. [['payWay', 'payStyle', 'merchantId', 'userId', 'status', 'addTime'], 'integer'],
  41. [['amount', 'balance', 'userTotalRecharge', 'merchantTotalRecharge'], 'number'],
  42. [['createTime', 'updateTime'], 'safe'],
  43. [['id'], 'string', 'max' => 100],
  44. [['payCode', 'remark'], 'string', 'max' => 1000],
  45. [['userName'], 'string', 'max' => 20],
  46. [['event'], 'string', 'max' => 50],
  47. ];
  48. }
  49. /**
  50. * @inheritdoc
  51. */
  52. public function attributeLabels()
  53. {
  54. return [
  55. 'id' => 'ID',
  56. 'payWay' => 'Pay Way',
  57. 'payStyle' => 'Pay Style',
  58. 'payCode' => 'Pay Code',
  59. 'merchantId' => 'Merchant ID',
  60. 'userId' => 'User ID',
  61. 'userName' => 'User Name',
  62. 'amount' => 'Amount',
  63. 'balance' => 'Balance',
  64. 'event' => 'Event',
  65. 'userTotalRecharge' => 'User Total Recharge',
  66. 'merchantTotalRecharge' => 'Merchant Total Recharge',
  67. 'remark' => 'Remark',
  68. 'status' => 'Status',
  69. 'addTime' => 'Add Time',
  70. 'createTime' => 'Create Time',
  71. 'updateTime' => 'Update Time',
  72. ];
  73. }
  74. }