Да что не так с этим бэкендом
This commit is contained in:
parent
2e267b7c96
commit
1f1ec5f961
3
.gitignore
vendored
3
.gitignore
vendored
@ -6,6 +6,9 @@ frontend/target/
|
||||
frontend/.env
|
||||
frontend/dist
|
||||
|
||||
backend/.env
|
||||
backend/target
|
||||
|
||||
# These are backup files generated by rustfmt
|
||||
**/*.rs.bk
|
||||
|
||||
|
12
backend/src/models/car_station.rs
Normal file
12
backend/src/models/car_station.rs
Normal file
@ -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
|
||||
}
|
18
backend/src/models/client.rs
Normal file
18
backend/src/models/client.rs
Normal file
@ -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<String>,
|
||||
pub phone: String
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct BindingClient {
|
||||
pub name: String,
|
||||
pub surname: String,
|
||||
pub middlename: Option<String>,
|
||||
pub phone: String
|
||||
}
|
2
backend/src/storages/mod.rs
Normal file
2
backend/src/storages/mod.rs
Normal file
@ -0,0 +1,2 @@
|
||||
pub mod traits;
|
||||
pub mod postgres;
|
Loading…
Reference in New Issue
Block a user