recompiled schema with new installer

This commit is contained in:
Markus Thielen 2023-02-16 22:19:09 +01:00
parent f28ca77ad7
commit a7b2dbf4bc
4 changed files with 44 additions and 39 deletions

View File

@ -1,7 +1,7 @@
CREATE TABLE "List" ( CREATE TABLE "List" (
"id" UUID DEFAULT gen_random_uuid() NOT NULL, "id" UUID DEFAULT gen_random_uuid() NOT NULL,
"title" VARCHAR NOT NULL, "title" VARCHAR NOT NULL,
"user.username" VARCHAR NOT NULL "user_username" VARCHAR NOT NULL
); );
CREATE TABLE "Task" ( CREATE TABLE "Task" (
@ -9,8 +9,8 @@ CREATE TABLE "Task" (
"title" VARCHAR NOT NULL, "title" VARCHAR NOT NULL,
"description" VARCHAR, "description" VARCHAR,
"completed" BOOLEAN NOT NULL, "completed" BOOLEAN NOT NULL,
"user.username" VARCHAR NOT NULL, "user_username" VARCHAR NOT NULL,
"list.id" UUID NOT NULL "list_id" UUID NOT NULL
); );
CREATE TABLE "User" ( CREATE TABLE "User" (
@ -24,9 +24,9 @@ ALTER TABLE "Task" ADD PRIMARY KEY ("id");
ALTER TABLE "User" ADD PRIMARY KEY ("username"); ALTER TABLE "User" ADD PRIMARY KEY ("username");
ALTER TABLE "List" ADD CONSTRAINT fk_list_1 FOREIGN KEY ("user.username") REFERENCES "User" ("username"); ALTER TABLE "List" ADD CONSTRAINT fk_list_1 FOREIGN KEY ("user_username") REFERENCES "User" ("username");
ALTER TABLE "Task" ADD CONSTRAINT fk_task_2 FOREIGN KEY ("user.username") REFERENCES "User" ("username"); ALTER TABLE "Task" ADD CONSTRAINT fk_task_2 FOREIGN KEY ("user_username") REFERENCES "User" ("username");
ALTER TABLE "Task" ADD CONSTRAINT fk_task_3 FOREIGN KEY ("list.id") REFERENCES "List" ("id"); ALTER TABLE "Task" ADD CONSTRAINT fk_task_3 FOREIGN KEY ("list_id") REFERENCES "List" ("id");

View File

@ -1,3 +1,16 @@
[resolvers.deleteTask]
operation_name = "deleteTask"
[resolvers.deleteTask.resolver]
command_type = "SQLDelete"
columns = []
tables = []
where_clauses = [["Task", "id", "= '$id'"]]
join_clauses = []
modify_table = ["Task", ""]
modify_values = []
aggregate_final_json_result = true
[resolvers.updateTask] [resolvers.updateTask]
operation_name = "updateTask" operation_name = "updateTask"
@ -8,19 +21,8 @@ tables = []
where_clauses = [["Task", "id", "= '$id'"]] where_clauses = [["Task", "id", "= '$id'"]]
join_clauses = [] join_clauses = []
modify_table = ["Task", ""] modify_table = ["Task", ""]
modify_values = [["title", "'$title'"], ["description", "'$description'"], ["completed", "$completed"], ["list.id", "'$list.$id'"]] modify_values = [["title", "'$title'"], ["description", "'$description'"], ["completed", "$completed"], ["list_id", "'$list.$id'"]]
aggregate_final_json_result = true
[resolvers.createList]
operation_name = "createList"
[resolvers.createList.resolver]
command_type = "SQLInsert"
columns = []
tables = []
where_clauses = []
join_clauses = []
modify_table = ["List", ""]
modify_values = [["title", "'$title'"], ["user.username", "'$user.$username'"]]
[resolvers.getUser] [resolvers.getUser]
operation_name = "getUser" operation_name = "getUser"
@ -33,6 +35,20 @@ where_clauses = [["User", "username", "= '$username'"]]
join_clauses = [] join_clauses = []
modify_table = ["", ""] modify_table = ["", ""]
modify_values = [] modify_values = []
aggregate_final_json_result = true
[resolvers.createList]
operation_name = "createList"
[resolvers.createList.resolver]
command_type = "SQLInsert"
columns = []
tables = []
where_clauses = []
join_clauses = []
modify_table = ["List", ""]
modify_values = [["title", "'$title'"], ["user_username", "'$user.$username'"]]
aggregate_final_json_result = true
[resolvers.createTask] [resolvers.createTask]
operation_name = "createTask" operation_name = "createTask"
@ -44,16 +60,5 @@ tables = []
where_clauses = [] where_clauses = []
join_clauses = [] join_clauses = []
modify_table = ["Task", ""] modify_table = ["Task", ""]
modify_values = [["title", "'$title'"], ["description", "'$description'"], ["completed", "$completed"], ["list.id", "'$list.$id'"], ["user.username", "'$user.$username'"]] modify_values = [["title", "'$title'"], ["description", "'$description'"], ["completed", "$completed"], ["list_id", "'$list.$id'"], ["user_username", "'$user.$username'"]]
aggregate_final_json_result = true
[resolvers.deleteTask]
operation_name = "deleteTask"
[resolvers.deleteTask.resolver]
command_type = "SQLDelete"
columns = []
tables = []
where_clauses = [["Task", "id", "= '$id'"]]
join_clauses = []
modify_table = ["Task", ""]
modify_values = []

View File

@ -93,7 +93,7 @@
"sql_table_of_field": "User", "sql_table_of_field": "User",
"sql_mapped_columns": [ "sql_mapped_columns": [
[ [
"user.username", "user_username",
"username" "username"
] ]
] ]
@ -113,7 +113,7 @@
"sql_mapped_columns": [ "sql_mapped_columns": [
[ [
"username", "username",
"user.username" "user_username"
] ]
] ]
} }
@ -131,7 +131,7 @@
"sql_table_of_field": "User", "sql_table_of_field": "User",
"sql_mapped_columns": [ "sql_mapped_columns": [
[ [
"user.username", "user_username",
"username" "username"
] ]
] ]
@ -151,7 +151,7 @@
"sql_mapped_columns": [ "sql_mapped_columns": [
[ [
"username", "username",
"user.username" "user_username"
] ]
] ]
} }
@ -169,7 +169,7 @@
"sql_table_of_field": "List", "sql_table_of_field": "List",
"sql_mapped_columns": [ "sql_mapped_columns": [
[ [
"list.id", "list_id",
"id" "id"
] ]
] ]
@ -189,7 +189,7 @@
"sql_mapped_columns": [ "sql_mapped_columns": [
[ [
"id", "id",
"list.id" "list_id"
] ]
] ]
} }

View File

@ -59,7 +59,7 @@ user_info_additional_claims_required = true
# be redirected to the application URL. # be redirected to the application URL.
# If this is unset, the browser gets an empty 200 response on successful # If this is unset, the browser gets an empty 200 response on successful
# authorization code flow completion. # authorization code flow completion.
client_app_url = "http://127.0.0.1:8080/_test/ping/" client_app_url = "http://127.0.0.1:8080/_test/ping"
[business_logic_layer] [business_logic_layer]
business_logic_layer_enabled = false business_logic_layer_enabled = false