Minor bugfixes
This commit is contained in:
@@ -3,17 +3,17 @@ use std::fmt::Display;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sqlx::{Decode, prelude::Type};
|
||||
|
||||
#[derive(Deserialize, Serialize, PartialEq, Debug, sqlx::FromRow)]
|
||||
pub struct Ticket {
|
||||
pub id: i32,
|
||||
pub category: String,
|
||||
pub betreff: String,
|
||||
pub description: String,
|
||||
pub room: i16,
|
||||
pub status: String,
|
||||
pub date: chrono::DateTime<chrono::Utc>,
|
||||
pub user_id: i16,
|
||||
}
|
||||
// #[derive(Deserialize, Serialize, PartialEq, Debug, sqlx::FromRow)]
|
||||
// pub struct Ticket {
|
||||
// pub id: i32,
|
||||
// pub category: String,
|
||||
// pub betreff: String,
|
||||
// pub description: String,
|
||||
// pub room: i16,
|
||||
// pub status: String,
|
||||
// pub date: chrono::DateTime<chrono::Utc>,
|
||||
// pub user_id: i16,
|
||||
// }
|
||||
|
||||
#[derive(Deserialize, Serialize, Debug, PartialEq)]
|
||||
pub struct TicketResponse {
|
||||
|
||||
Reference in New Issue
Block a user