chuni: implement UserCharge APIs, add table for purchased tickets

This commit is contained in:
Rob
2020-08-02 11:24:21 -04:00
committed by Tau
parent 074aa1f3eb
commit f8a5a9d7a4
16 changed files with 185 additions and 12 deletions
+15
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