diff --git a/backend/db/1_info.sql b/backend/db/1_info.sql index f2ea0bc..2121fef 100644 --- a/backend/db/1_info.sql +++ b/backend/db/1_info.sql @@ -12,5 +12,6 @@ CREATE TABLE public.info ( email varchar NULL, softskills text NULL, interests text NULL, + profile_pic text NULL, CONSTRAINT info_pkey PRIMARY KEY (id) ); \ No newline at end of file diff --git a/backend/src/db.rs b/backend/src/db.rs index 3be178b..86a3704 100644 --- a/backend/src/db.rs +++ b/backend/src/db.rs @@ -10,6 +10,7 @@ pub struct Info { pub softskills: Option, pub interests: Option, pub birth_year: Option, + pub profile_pic: Option } #[derive(Deserialize, Serialize)] diff --git a/backend/src/main.rs b/backend/src/main.rs index cffec8e..f4f463b 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -60,7 +60,7 @@ macro_rules! _gather_data { async fn info(State(pool): State) -> Json> { let datas = sqlx::query_as!( Info, - "SELECT id, full_name, phone_number, email, softskills, interests, birth_year FROM public.info" + "SELECT id, full_name, phone_number, email, softskills, interests, birth_year, profile_pic FROM public.info" ) .fetch_all(&pool) .await.unwrap_or(vec![]); diff --git a/frontend/src/lib/img/cvnQU1-W_nowhite_carre.jpg b/frontend/src/lib/img/cvnQU1-W_nowhite_carre.jpg deleted file mode 100755 index 0a24f37..0000000 Binary files a/frontend/src/lib/img/cvnQU1-W_nowhite_carre.jpg and /dev/null differ diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte index ad4b032..2d0976f 100644 --- a/frontend/src/routes/+page.svelte +++ b/frontend/src/routes/+page.svelte @@ -6,7 +6,6 @@ import "$lib/css/cv.css"; // Sidebar - import profile_pic from "$lib/img/cvnQU1-W_nowhite_carre.jpg"; import SidebarComponent from "$lib/components/sidebar-component.svelte"; import { mdiAccount, @@ -83,7 +82,7 @@
{cv.info.full_name}