diff --git a/backend/.sqlx/query-309f96c44710aa7ea23473a06858482431769bfc493190fa0e88d26a6761ffdc.json b/backend/.sqlx/query-309f96c44710aa7ea23473a06858482431769bfc493190fa0e88d26a6761ffdc.json new file mode 100644 index 0000000..c7f54a5 --- /dev/null +++ b/backend/.sqlx/query-309f96c44710aa7ea23473a06858482431769bfc493190fa0e88d26a6761ffdc.json @@ -0,0 +1,41 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT c.id, CONCAT(d.code, '-', c.course) as code, c.title, c.description FROM courses c, departments d, sections s WHERE c.department = d.id AND s.course = c.id AND s.status != 'X' AND d.id = $1 AND c.term = $2", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "code", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "title", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "description", + "type_info": "Text" + } + ], + "parameters": { + "Left": [ + "Int4", + "Int2" + ] + }, + "nullable": [ + false, + null, + false, + false + ] + }, + "hash": "309f96c44710aa7ea23473a06858482431769bfc493190fa0e88d26a6761ffdc" +} diff --git a/backend/.sqlx/query-35c34ab767b8d3b24491a353a0bc36c4bbb1d491f0602c7511acc014e70dd5be.json b/backend/.sqlx/query-35c34ab767b8d3b24491a353a0bc36c4bbb1d491f0602c7511acc014e70dd5be.json new file mode 100644 index 0000000..ca81954 --- /dev/null +++ b/backend/.sqlx/query-35c34ab767b8d3b24491a353a0bc36c4bbb1d491f0602c7511acc014e70dd5be.json @@ -0,0 +1,40 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT s.id, CONCAT(d.code, '-', c.course, '-', s.section) as code, s.title, s.instructor FROM sections s, departments d, courses c WHERE s.course = c.id AND c.department = d.id AND s.status != 'X' AND s.course = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "code", + "type_info": "Text" + }, + { + "ordinal": 2, + "name": "title", + "type_info": "Varchar" + }, + { + "ordinal": 3, + "name": "instructor", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + null, + false, + false + ] + }, + "hash": "35c34ab767b8d3b24491a353a0bc36c4bbb1d491f0602c7511acc014e70dd5be" +} diff --git a/backend/.sqlx/query-b63032f23e47e8c1c8a80ab487e9a7af3c7100f8a95fc8dc1c66227814a66174.json b/backend/.sqlx/query-508acf8711d7ca825f09704e7747dbdd541c01cdd388191ed74398eb1e2dd2e0.json similarity index 55% rename from backend/.sqlx/query-b63032f23e47e8c1c8a80ab487e9a7af3c7100f8a95fc8dc1c66227814a66174.json rename to backend/.sqlx/query-508acf8711d7ca825f09704e7747dbdd541c01cdd388191ed74398eb1e2dd2e0.json index ed72d3b..ce863e3 100644 --- a/backend/.sqlx/query-b63032f23e47e8c1c8a80ab487e9a7af3c7100f8a95fc8dc1c66227814a66174.json +++ b/backend/.sqlx/query-508acf8711d7ca825f09704e7747dbdd541c01cdd388191ed74398eb1e2dd2e0.json @@ -1,6 +1,6 @@ { "db_name": "PostgreSQL", - "query": "INSERT INTO times (section, day, start_time, end_time, building, room) VALUES ($1, $2, $3, $4, $5, $6)", + "query": "INSERT INTO times (section, day, start, \"end\", building, room) VALUES ($1, $2, $3, $4, $5, $6)", "describe": { "columns": [], "parameters": { @@ -15,5 +15,5 @@ }, "nullable": [] }, - "hash": "b63032f23e47e8c1c8a80ab487e9a7af3c7100f8a95fc8dc1c66227814a66174" + "hash": "508acf8711d7ca825f09704e7747dbdd541c01cdd388191ed74398eb1e2dd2e0" } diff --git a/backend/.sqlx/query-7a9abeb2163387e498e0700dc0841ddfe2b4abf22da3a60f5f9cd620bd441433.json b/backend/.sqlx/query-7a9abeb2163387e498e0700dc0841ddfe2b4abf22da3a60f5f9cd620bd441433.json new file mode 100644 index 0000000..c23d339 --- /dev/null +++ b/backend/.sqlx/query-7a9abeb2163387e498e0700dc0841ddfe2b4abf22da3a60f5f9cd620bd441433.json @@ -0,0 +1,32 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id, code, title FROM schools", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "code", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "title", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [] + }, + "nullable": [ + false, + false, + true + ] + }, + "hash": "7a9abeb2163387e498e0700dc0841ddfe2b4abf22da3a60f5f9cd620bd441433" +} diff --git a/backend/.sqlx/query-c6f57bdba8d23138d372226fd63d2b61db3857d335e58d16aba96f5c2e38b75a.json b/backend/.sqlx/query-c6f57bdba8d23138d372226fd63d2b61db3857d335e58d16aba96f5c2e38b75a.json deleted file mode 100644 index a549235..0000000 --- a/backend/.sqlx/query-c6f57bdba8d23138d372226fd63d2b61db3857d335e58d16aba96f5c2e38b75a.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "db_name": "PostgreSQL", - "query": "SELECT DISTINCT d.code AS dept_code, d.title AS dept_title, s.code AS school_code, s.title AS school_title FROM departments d, schools s WHERE d.school = s.id", - "describe": { - "columns": [ - { - "ordinal": 0, - "name": "dept_code", - "type_info": "Varchar" - }, - { - "ordinal": 1, - "name": "dept_title", - "type_info": "Varchar" - }, - { - "ordinal": 2, - "name": "school_code", - "type_info": "Varchar" - }, - { - "ordinal": 3, - "name": "school_title", - "type_info": "Varchar" - } - ], - "parameters": { - "Left": [] - }, - "nullable": [ - false, - true, - false, - true - ] - }, - "hash": "c6f57bdba8d23138d372226fd63d2b61db3857d335e58d16aba96f5c2e38b75a" -} diff --git a/backend/.sqlx/query-d94807514e692217d6306bd9e5a00412bd5901462b4d31d6fc545d6bad7a73f2.json b/backend/.sqlx/query-d94807514e692217d6306bd9e5a00412bd5901462b4d31d6fc545d6bad7a73f2.json new file mode 100644 index 0000000..a25cbf5 --- /dev/null +++ b/backend/.sqlx/query-d94807514e692217d6306bd9e5a00412bd5901462b4d31d6fc545d6bad7a73f2.json @@ -0,0 +1,34 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT id, code, title FROM departments WHERE school = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "id", + "type_info": "Int4" + }, + { + "ordinal": 1, + "name": "code", + "type_info": "Varchar" + }, + { + "ordinal": 2, + "name": "title", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + true + ] + }, + "hash": "d94807514e692217d6306bd9e5a00412bd5901462b4d31d6fc545d6bad7a73f2" +} diff --git a/backend/.sqlx/query-f8b6919c198dea5ff664d2a74477326f67482bab550c29685575e5bc51654986.json b/backend/.sqlx/query-f8b6919c198dea5ff664d2a74477326f67482bab550c29685575e5bc51654986.json new file mode 100644 index 0000000..e47d281 --- /dev/null +++ b/backend/.sqlx/query-f8b6919c198dea5ff664d2a74477326f67482bab550c29685575e5bc51654986.json @@ -0,0 +1,52 @@ +{ + "db_name": "PostgreSQL", + "query": "SELECT t.day, t.start, t.end, b.code as building_code, b.number as building_number, t.room FROM times t, buildings b WHERE t.building = b.number AND t.section = $1", + "describe": { + "columns": [ + { + "ordinal": 0, + "name": "day", + "type_info": "Int2" + }, + { + "ordinal": 1, + "name": "start", + "type_info": "Int2" + }, + { + "ordinal": 2, + "name": "end", + "type_info": "Int2" + }, + { + "ordinal": 3, + "name": "building_code", + "type_info": "Varchar" + }, + { + "ordinal": 4, + "name": "building_number", + "type_info": "Varchar" + }, + { + "ordinal": 5, + "name": "room", + "type_info": "Varchar" + } + ], + "parameters": { + "Left": [ + "Int4" + ] + }, + "nullable": [ + false, + false, + false, + false, + false, + false + ] + }, + "hash": "f8b6919c198dea5ff664d2a74477326f67482bab550c29685575e5bc51654986" +}