Skip to main content

toasty_driver_integration_suite/scenarios/
user_with_age.rs

1use crate::prelude::*;
2
3scenario! {
4    #[derive(Debug, toasty::Model)]
5    struct User {
6        #[key]
7        #[auto]
8        id: uuid::Uuid,
9
10        #[index]
11        name: String,
12
13        #[index]
14        age: i64,
15    }
16
17    async fn setup(test: &mut Test) -> toasty::Db {
18        test.setup_db(models!(User)).await
19    }
20}