Skip to content

Commit

Permalink
Merge pull request #73 from MostroP2P/user-table-pubkey
Browse files Browse the repository at this point in the history
Remove of crud from users table
  • Loading branch information
grunch authored Dec 23, 2024
2 parents 6cf1803 + 404e763 commit fe2c9c3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ use chrono::Utc;
use serde::{Deserialize, Serialize};
#[cfg(feature = "sqlx")]
use sqlx::FromRow;
#[cfg(feature = "sqlx")]
use sqlx_crud::SqlxCrud;

/// Database representation of an user
#[cfg_attr(feature = "sqlx", derive(FromRow, SqlxCrud), external_id)]
#[cfg_attr(feature = "sqlx", derive(FromRow))]
#[derive(Debug, Default, Deserialize, Serialize, Clone, PartialEq, Eq)]
pub struct User {
pub id: uuid::Uuid,
pub pubkey: String,
pub is_admin: i64,
pub is_solver: i64,
Expand All @@ -36,7 +33,6 @@ impl User {
trade_index: i64,
) -> Self {
Self {
id: uuid::Uuid::new_v4(),
pubkey,
is_admin,
is_solver,
Expand Down

0 comments on commit fe2c9c3

Please sign in to comment.