Skip to main content

toasty_driver_integration_suite/scenarios/
fixed_item_name_quantity.rs

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