Skip to content

Commit 33bc3ba

Browse files
committed
Add: Documentation
1 parent 0d1d1d7 commit 33bc3ba

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/db/attendance.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use sqlx::FromRow;
22
use async_graphql::SimpleObject;
33

4+
//Struct for the Attendance table
45
#[derive(FromRow, SimpleObject)]
56
pub struct Attendance {
67
pub id: i32,

src/db/member.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use sqlx::FromRow;
22
use async_graphql::SimpleObject;
33

4+
5+
//Struct for the Member table
46
#[derive(FromRow, SimpleObject)]
57
pub struct Member {
68
pub id: i32,

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ struct MyState {
1919
pool: Arc<PgPool>,
2020
}
2121

22+
//This is the main method
2223
#[shuttle_runtime::main]
2324
async fn main(#[shuttle_shared_db::Postgres] pool: PgPool) -> shuttle_axum::ShuttleAxum {
2425
env::set_var("PGOPTIONS", "-c ignore_version=true");

0 commit comments

Comments
 (0)