diff --git a/.gitignore b/.gitignore index 902a5d5..630be45 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,9 @@ frontend/target/ frontend/.env frontend/dist +backend/.env +backend/target + # These are backup files generated by rustfmt **/*.rs.bk diff --git a/backend/src/models/car_station.rs b/backend/src/models/car_station.rs new file mode 100644 index 0000000..1e208a2 --- /dev/null +++ b/backend/src/models/car_station.rs @@ -0,0 +1,12 @@ +use serde::{Serialize, Deserialize}; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct CarStation { + pub id: i32, + pub address: String +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct BindingCarStation { + pub address: String +} \ No newline at end of file diff --git a/backend/src/models/client.rs b/backend/src/models/client.rs new file mode 100644 index 0000000..0e0f7a7 --- /dev/null +++ b/backend/src/models/client.rs @@ -0,0 +1,18 @@ +use serde::{Serialize, Deserialize}; + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct Client { + pub id: i32, + pub name: String, + pub surname: String, + pub middlename: Option, + pub phone: String +} + +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct BindingClient { + pub name: String, + pub surname: String, + pub middlename: Option, + pub phone: String +} \ No newline at end of file diff --git a/backend/src/storages/mod.rs b/backend/src/storages/mod.rs new file mode 100644 index 0000000..4acaacf --- /dev/null +++ b/backend/src/storages/mod.rs @@ -0,0 +1,2 @@ +pub mod traits; +pub mod postgres; \ No newline at end of file