Skip to content

Support postgres Uuid #67

Answered by tyt2y3
tqwewe asked this question in Q&A
Aug 7, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

let uuid = Uuid::new_v4();
let mud_cake = cake::ActiveModel {
name: Set("Mud Cake".to_owned()),
price: Set(dec!(10.25)),
gluten_free: Set(false),
serial: Set(uuid),
bakery_id: Set(Some(bakery_insert_res.last_insert_id as i32)),
..Default::default()
};

Can you checkout this example?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tqwewe
Comment options

Answer selected by tqwewe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #66 on August 07, 2021 19:15.