CREATE TABLE "point_refund_record" (
     "id" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY,
     "user_id" int4 NOT NULL,
     "merchant_id" int4 NOT NULL,
     "point_type" varchar(32),
     "point" int4,
     "refund_remark" text,
     "status" int4 DEFAULT 0,
     "create_time" timestamp,
     PRIMARY KEY ("id")
)
;

CREATE INDEX "pr-uid" ON "point_refund_record" USING btree (
    "user_id"
    );

COMMENT ON COLUMN "point_refund_record"."point_type" IS '积分类型';

COMMENT ON COLUMN "point_refund_record"."point" IS '申请退款积分';

COMMENT ON COLUMN "point_refund_record"."refund_remark" IS '申请退款原因';

COMMENT ON COLUMN "point_refund_record"."status" IS '状态:默认0,待扣除积分,1:申请成功,待退款处理,2:已退款';