mirror of
https://github.com/ilyakooo0/reshape.git
synced 2024-11-29 12:03:35 +03:00
Make foreign_keys optionally when creating tables
This commit is contained in:
parent
bf75e00c29
commit
27ec085337
@ -8,6 +8,7 @@ pub struct CreateTable {
|
|||||||
pub name: String,
|
pub name: String,
|
||||||
pub columns: Vec<Column>,
|
pub columns: Vec<Column>,
|
||||||
pub primary_key: Vec<String>,
|
pub primary_key: Vec<String>,
|
||||||
|
#[serde(default)]
|
||||||
pub foreign_keys: Vec<ForeignKey>,
|
pub foreign_keys: Vec<ForeignKey>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user