File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 11use sqlx:: FromRow ;
22use async_graphql:: SimpleObject ;
33
4+ //Struct for the Attendance table
45#[ derive( FromRow , SimpleObject ) ]
56pub struct Attendance {
67 pub id : i32 ,
Original file line number Diff line number Diff line change 11use sqlx:: FromRow ;
22use async_graphql:: SimpleObject ;
33
4+
5+ //Struct for the Member table
46#[ derive( FromRow , SimpleObject ) ]
57pub struct Member {
68 pub id : i32 ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ struct MyState {
1919 pool : Arc < PgPool > ,
2020}
2121
22+ //This is the main method
2223#[ shuttle_runtime:: main]
2324async fn main ( #[ shuttle_shared_db:: Postgres ] pool : PgPool ) -> shuttle_axum:: ShuttleAxum {
2425 env:: set_var ( "PGOPTIONS" , "-c ignore_version=true" ) ;
You can’t perform that action at this time.
0 commit comments