Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
model_db_column_name
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Jul 31, 2023
1 parent aabd8d1 commit f5a06e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct KeyValue {
pub client_id: String,
#[primary_key]
pub key: String,
#[db_field_name(model_field_name = "field_model")]
#[db_field_name(model_db_column_name = "field_model")]
pub value: MyEnumWithModel,
}

Expand Down
2 changes: 1 addition & 1 deletion tests/src/dto/test_json_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct TestJsonField {

pub my_enum_no_model: MyEnum,

#[db_field_name(model_field_name = "field_model")]
#[db_field_name(model_db_column_name = "field_model")]
pub my_enum: MyEnumWithModel,

pub b: bool,
Expand Down

0 comments on commit f5a06e7

Please sign in to comment.