create member type
All checks were successful
CI/CD Pipeline / test (push) Successful in 16m12s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

This commit is contained in:
2025-04-30 15:04:47 +02:00
parent 19887e133d
commit b2e07653e6
5 changed files with 168 additions and 92 deletions

View File

@ -2,14 +2,14 @@ use std::ops::DerefMut;
use chrono::{Datelike, Duration, Local, NaiveDateTime};
use rocket::FromForm;
use serde::Serialize;
use serde::{Deserialize, Serialize};
use sqlx::{FromRow, Sqlite, SqlitePool, Transaction};
use super::{
boat::Boat, log::Log, notification::Notification, role::Role, rower::Rower, user::User,
};
#[derive(FromRow, Serialize, Clone, Debug)]
#[derive(FromRow, Serialize, Deserialize, Clone, Debug)]
pub struct Logbook {
pub id: i64,
pub boat_id: i64,
@ -105,7 +105,7 @@ impl TryFrom<LogToAdd> for LogToFinalize {
}
}
#[derive(Serialize, Debug)]
#[derive(Serialize, Deserialize, Debug)]
pub struct LogbookWithBoatAndRowers {
#[serde(flatten)]
pub logbook: Logbook,