chuni: implement UserCharge APIs, add table for purchased tickets

This commit is contained in:
5ebef5658c5fcb6f5a62e75318bdc7fad90b21bc
2020-07-30 03:34:56 -05:00
committed by Tau
parent a8539b475e
commit 6c22c4287e
16 changed files with 185 additions and 12 deletions

View File

@@ -82,6 +82,21 @@ create table "cm_user_activity" (
)
);
create table "cm_user_charge" (
"id" integer primary key not null,
"profile_id" integer not null
references "cm_user_data"("id")
on delete cascade,
"charge_id" integer not null,
"stock" integer not null,
"purchase_date" text not null,
"valid_date" text not null,
"param1" integer not null,
"param2" integer not null,
"param_date" text not null,
constraint "cm_user_charge_uq" unique ("profile_id", "charge_id")
);
create table "cm_user_course" (
"id" integer primary key not null,
"profile_id" integer not null