
CREATE TABLE "public"."goods_act_record" (
    "id" int4 NOT NULL GENERATED BY DEFAULT AS IDENTITY,
    "act_type" varchar(32) NOT NULL,
    "group_info_id" int4,
    "goods_id" int4,
    "goods_type" int2 DEFAULT 0,
    "ref_id" int4,
    "act_value" int4,
    "act_desc" varchar(1024),
    "act_value_type" varchar(64),
    "act_img" varchar(1024),
    "status" int2 DEFAULT 0,
    "create_time" timestamp,
    "prop1" text,
    PRIMARY KEY ("id")
)
;

COMMENT ON COLUMN "public"."goods_act_record"."act_type" IS '活动类型';

COMMENT ON COLUMN "public"."goods_act_record"."group_info_id" IS '组队id';

COMMENT ON COLUMN "public"."goods_act_record"."goods_id" IS '卡密id';

COMMENT ON COLUMN "public"."goods_act_record"."goods_type" IS '卡密数据库类型,默认0,1:新库';

COMMENT ON COLUMN "public"."goods_act_record"."ref_id" IS '关联活动商品id';

COMMENT ON COLUMN "public"."goods_act_record"."act_value" IS '活动值';

COMMENT ON COLUMN "public"."goods_act_record"."act_value_type" IS '活动奖励类型';

COMMENT ON COLUMN "public"."goods_act_record"."act_desc" IS '活动文字描述';

COMMENT ON COLUMN "public"."goods_act_record"."act_img" IS '活动图片';

COMMENT ON COLUMN "public"."goods_act_record"."prop1" IS '备用字段';