Finish products

This commit is contained in:
eraden 2023-06-13 21:37:24 +02:00
parent 5111c6efb2
commit 6eb9857066

View File

@ -335,6 +335,7 @@ impl Migration {
m.create_table( m.create_table(
Table::create() Table::create()
.table(ProductOptions) .table(ProductOptions)
.col(auto_uuid_not_null!(Id))
.col(Title.col().string().not_null()) .col(Title.col().string().not_null())
.col(ts_def_now_not_null!(CreatedAt)) .col(ts_def_now_not_null!(CreatedAt))
.col(ts_def_now_not_null!(UpdatedAt)) .col(ts_def_now_not_null!(UpdatedAt))
@ -376,7 +377,7 @@ impl Migration {
.col(Metadata.col().json_binary()) .col(Metadata.col().json_binary())
.to_owned(), .to_owned(),
) )
.await; .await?;
Ok(()) Ok(())
} }
@ -419,7 +420,7 @@ impl Migration {
.col(Metadata.col().json_binary()) .col(Metadata.col().json_binary())
.to_owned(), .to_owned(),
) )
.await; .await?;
Ok(()) Ok(())
} }