Recharge.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. namespace addons\TinyShop\common\models\order;
  3. use Yii;
  4. /**
  5. * This is the model class for table "{{%addon_tiny_shop_order_recharge}}".
  6. *
  7. * @property int $id ID
  8. * @property int|null $merchant_id 商户ID
  9. * @property int|null $store_id 店铺ID
  10. * @property int|null $member_id 用户ID
  11. * @property string $order_sn 订单编号
  12. * @property string|null $out_trade_no 外部交易号
  13. * @property float|null $price 价格
  14. * @property float|null $give_price 赠送金额
  15. * @property int|null $give_point 送积分数量(0表示不送)
  16. * @property int|null $give_growth 赠送成长值
  17. * @property string|null $give_coupon_type_ids 优惠券
  18. * @property int|null $pay_type 支付类型
  19. * @property int|null $pay_status 订单付款状态
  20. * @property int|null $pay_time 订单付款时间
  21. * @property int|null $status 状态[-1:删除;0:禁用;1启用]
  22. * @property int|null $created_at 创建时间
  23. * @property int|null $updated_at 修改时间
  24. */
  25. class Recharge extends \common\models\base\BaseModel
  26. {
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public static function tableName()
  31. {
  32. return '{{%addon_tiny_shop_order_recharge}}';
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function rules()
  38. {
  39. return [
  40. [['merchant_id', 'store_id', 'member_id', 'give_point', 'give_growth', 'pay_type', 'pay_status', 'pay_time', 'status', 'created_at', 'updated_at'], 'integer'],
  41. [['price', 'give_price'], 'number'],
  42. [['give_coupon_type_ids'], 'safe'],
  43. [['order_sn', 'out_trade_no'], 'string', 'max' => 30],
  44. ];
  45. }
  46. /**
  47. * {@inheritdoc}
  48. */
  49. public function attributeLabels()
  50. {
  51. return [
  52. 'id' => 'ID',
  53. 'merchant_id' => '商户ID',
  54. 'store_id' => '店铺ID',
  55. 'member_id' => '用户ID',
  56. 'order_sn' => '订单编号',
  57. 'out_trade_no' => '外部交易号',
  58. 'price' => '价格',
  59. 'give_price' => '赠送金额',
  60. 'give_point' => '送积分数量(0表示不送)',
  61. 'give_growth' => '赠送成长值',
  62. 'give_coupon_type_ids' => '优惠券',
  63. 'pay_type' => '支付类型',
  64. 'pay_status' => '订单付款状态',
  65. 'pay_time' => '订单付款时间',
  66. 'status' => '状态[-1:删除;0:禁用;1启用]',
  67. 'created_at' => '创建时间',
  68. 'updated_at' => '修改时间',
  69. ];
  70. }
  71. }
粤ICP备19079148号