Skip to main content

toasty_driver_integration_suite/scenarios/
user_with_active.rs

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