(db: &DatabaseConnection)
| 4 | use sea_query::{ColumnDef, ForeignKey, ForeignKeyAction, Index, Table}; |
| 5 | |
| 6 | pub async fn create_tables(db: &DatabaseConnection) -> Result<(), DbErr> { |
| 7 | create_bakery_table(db).await?; |
| 8 | create_baker_table(db).await?; |
| 9 | create_customer_table(db).await?; |
| 10 | create_order_table(db).await?; |
| 11 | create_cake_table(db).await?; |
| 12 | create_cakes_bakers_table(db).await?; |
| 13 | create_lineitem_table(db).await?; |
| 14 | Ok(()) |
| 15 | } |
| 16 | |
| 17 | pub async fn create_bakery_table(db: &DbConn) -> Result<ExecResult, DbErr> { |
| 18 | let stmt = Table::create() |
nothing calls this directly
no test coverage detected