idz: Add stamps tables

This commit is contained in:
b166fe48b91eb09f279b79a4ecf57b2f8f0d3705
2021-02-03 23:43:41 +00:00
committed by da5669c09fdb0a288ba01e259a609d7779ac7fc9
parent f79c4a4370
commit 8ada783f7c
12 changed files with 196 additions and 3 deletions
+19
View File
@@ -108,6 +108,25 @@ create table "idz_settings" (
"driving_style" integer not null
);
create table "idz_stamp_selections" (
"id" integer primary key not null
references "idz_profile"("id")
on delete cascade,
"stamp_01" integer not null,
"stamp_02" integer not null,
"stamp_03" integer not null,
"stamp_04" integer not null
);
create table "idz_stamp_unlock" (
"id" integer primary key not null,
"profile_id" integer not null
references "idz_profile"("id")
on delete cascade,
"stamp_no",
constraint "idz_stamp_unlock_uq" unique ("profile_id", "stamp_no")
);
create table "idz_story_state" (
"id" integer primary key not null
references "idz_profile"("id")