Removed sqlx dep and fromrow from player

This commit is contained in:
Franklin 2023-01-24 19:15:17 -04:00
parent 35639161bf
commit ac93f4ba37
3 changed files with 2 additions and 1173 deletions

1169
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -14,9 +14,6 @@ repository = "https://github.com/franklinblanco/league-types.git"
serde = { version = "1.0", features = ["derive"] }
chrono = { version = "0.4", features = [ "serde" ] }
rust_decimal = "1.26"
sqlx = { version = "0.6", features = [ "runtime-tokio-native-tls" , "mysql" ] }
tokio = { version = "1", features = ["full"] }
err = { git = "https://github.com/franklinblanco/err.git" }
dev-dtos = { git = "https://github.com/franklinblanco/user-svc-dtos-rust.git" }

View File

@ -1,11 +1,10 @@
use chrono::{Utc, DateTime, NaiveDate};
use serde::{Serialize, Deserialize};
use sqlx::FromRow;
use crate::dto::player::PlayerForCreationDto;
//TODO: Remove sensitive information from player struct
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, PartialOrd, Ord, Default, FromRow)]
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, PartialOrd, Ord, Default)]
pub struct Player {
pub id: u32,
pub time_created: DateTime<Utc>,