xhDrawCash.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhDrawCash".
  5. *
  6. * @property string $id
  7. * @property string $thirdSerialNumber 第三方流水号,支付宝流水号
  8. * @property int $merchantId 商户id
  9. * @property string $amount 提现金额
  10. * @property string $balance 余额
  11. * @property int $checkStatus 审核状态 0 待审 1审核通过 2驳回
  12. * @property int $status 提现状态,0处理中 1完成
  13. * @property int $addTime 添加时间,时间戳格式
  14. * @property string $createTime 创建时间
  15. * @property string $updateTime
  16. */
  17. class xhDrawCash extends xhBaseModel
  18. {
  19. /**
  20. * @inheritdoc
  21. */
  22. public static function tableName()
  23. {
  24. return 'xhDrawCash';
  25. }
  26. /**
  27. * @inheritdoc
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['id', 'createTime'], 'required'],
  33. [['merchantId', 'checkStatus', 'status', 'addTime'], 'integer'],
  34. [['amount', 'balance'], 'number'],
  35. [['createTime', 'updateTime'], 'safe'],
  36. [['id', 'thirdSerialNumber'], 'string', 'max' => 100],
  37. [['id'], 'unique'],
  38. ];
  39. }
  40. /**
  41. * @inheritdoc
  42. */
  43. public function attributeLabels()
  44. {
  45. return [
  46. 'id' => 'ID',
  47. 'thirdSerialNumber' => 'Third Serial Number',
  48. 'merchantId' => 'Merchant ID',
  49. 'amount' => 'Amount',
  50. 'balance' => 'Balance',
  51. 'checkStatus' => 'Check Status',
  52. 'status' => 'Status',
  53. 'addTime' => 'Add Time',
  54. 'createTime' => 'Create Time',
  55. 'updateTime' => 'Update Time',
  56. ];
  57. }
  58. }