What do default values for columns actually do? #2217
Unanswered
campbellcole
asked this question in
Q&A
Replies: 1 comment 1 reply
-
It's the corresponding database default expression, like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been trying to understand what
#[sea_orm(default_value = ...)]
andColumnDef::default_value()
actually do to the generated objects. Since the model must have every field, at what point is this default value used? Is it used when an ActiveModel with the corresponding column =ActiveValue::Unset
gets inserted?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions