Да что не так с этим бэкендом

This commit is contained in:
Сергей Полевой 2023-05-14 23:17:14 +04:00
parent 2e267b7c96
commit 1f1ec5f961
4 changed files with 35 additions and 0 deletions

3
.gitignore vendored
View File

@ -6,6 +6,9 @@ frontend/target/
frontend/.env
frontend/dist
backend/.env
backend/target
# These are backup files generated by rustfmt
**/*.rs.bk

View 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
}

View 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
}

View File

@ -0,0 +1,2 @@
pub mod traits;
pub mod postgres;