xhUserUnite.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace common\models;
  3. /**
  4. * This is the model class for table "xhUserUnite".
  5. *
  6. * @property int $id
  7. * @property string $alipayId 支付宝的uid
  8. * @property int $merchantId 商家id
  9. * @property int $userId 用户id
  10. * @property int $point 要转移的积分
  11. * @property string $totalExpend 要转移的累计消费
  12. * @property int $operateId 操作人id adminId 等
  13. * @property int $addTime 添加时间,时间戳格式
  14. * @property string $createTime 创建时间
  15. * @property string $updateTime
  16. */
  17. class xhUserUnite extends xhBaseModel
  18. {
  19. /**
  20. * @inheritdoc
  21. */
  22. public static function tableName()
  23. {
  24. return 'xhUserUnite';
  25. }
  26. /**
  27. * @inheritdoc
  28. */
  29. public function rules()
  30. {
  31. return [
  32. [['merchantId', 'userId', 'point', 'operateId', 'addTime'], 'integer'],
  33. [['totalExpend'], 'number'],
  34. [['createTime'], 'required'],
  35. [['createTime', 'updateTime'], 'safe'],
  36. [['alipayId'], 'string', 'max' => 50],
  37. ];
  38. }
  39. /**
  40. * @inheritdoc
  41. */
  42. public function attributeLabels()
  43. {
  44. return [
  45. 'id' => 'ID',
  46. 'alipayId' => 'Alipay ID',
  47. 'merchantId' => 'Merchant ID',
  48. 'userId' => 'User ID',
  49. 'point' => 'Point',
  50. 'totalExpend' => 'Total Expend',
  51. 'operateId' => 'Operate ID',
  52. 'addTime' => 'Add Time',
  53. 'createTime' => 'Create Time',
  54. 'updateTime' => 'Update Time',
  55. ];
  56. }
  57. }