added amount

This commit is contained in:
Colin McKechney
2023-04-30 19:48:13 -04:00
parent 159faa8fef
commit b0dce09473

View File

@@ -154,7 +154,7 @@ fn create_user(username: &str, password: &str, first_name: &str, last_name: &str
} }
}; };
let mut new_table = conn.statement(format!("create table {} ( item_id number(5), foreign key (item_id) references menu_item (id))", username).as_str()).build()?; let mut new_table = conn.statement(format!("create table {} ( item_id number(5), amount number(5), foreign key (item_id) references menu_item (id))", username).as_str()).build()?;
match new_table.execute(&[]) { match new_table.execute(&[]) {
Ok(_) => { Ok(_) => {