Make foreign_keys optionally when creating tables

This commit is contained in:
fabianlindfors 2022-01-05 14:03:56 +01:00
parent bf75e00c29
commit 27ec085337

View File

@ -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>,
} }