toasty_driver_integration_suite/scenarios/user_with_active.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 #[allow(dead_code)]
13 age: i64,
14
15 #[allow(dead_code)]
16 active: bool,
17 }
18
19 async fn setup(test: &mut Test) -> toasty::Db {
20 test.setup_db(models!(User)).await
21 }
22}