(db: &DatabaseConnection)
| 4 | use sea_query::{ColumnDef, ForeignKey, ForeignKeyAction, Index, Table}; |
| 5 | |
| 6 | pub async fn create_tables(db: &DatabaseConnection) -> Result<(), DbErr> { |
| 7 | create_worker_table(db).await?; |
| 8 | create_bakery_table(db).await?; |
| 9 | Ok(()) |
| 10 | } |
| 11 | |
| 12 | pub async fn create_bakery_table(db: &DbConn) -> Result<ExecResult, DbErr> { |
| 13 | let stmt = Table::create() |
no test coverage detected