Skip to main content

toasty_driver_integration_suite/scenarios/
user_name_email.rs

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