Skip to content

Commit 94bb40b

Browse files
committed
formatting
1 parent e328296 commit 94bb40b

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

models/model.json

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,28 @@
2323
//convert: the value can be changed by a function call before it is stored into database or
2424
//after it is read from database
2525
"convert": {
26-
"enabled": false,
27-
"items":[{
28-
"table": "user",
29-
"column": "password",
30-
"method": {
31-
//after_db_read: name of the method which is called after reading from database, signature: void([const] std::shared_ptr [&])
32-
"after_db_read": "decrypt_password",
33-
//before_db_write: name of the method which is called before writing to database, signature: void([const] std::shared_ptr [&])
34-
"before_db_write": "encrypt_password"
35-
},
36-
"includes": [
37-
"\"file_local_search_path.h\"","<file_in_global_search_path.h>"
38-
]
39-
}]
26+
"enabled": false,
27+
"items": [
28+
{
29+
"table": "user",
30+
"column": "password",
31+
"method": {
32+
//after_db_read: name of the method which is called after reading from database, signature: void([const] std::shared_ptr [&])
33+
"after_db_read": "decrypt_password",
34+
//before_db_write: name of the method which is called before writing to database, signature: void([const] std::shared_ptr [&])
35+
"before_db_write": "encrypt_password"
36+
},
37+
"includes": [
38+
"\"file_local_search_path.h\"",
39+
"<file_in_global_search_path.h>"
40+
]
41+
}
42+
]
4043
},
4144
"relationships": {
4245
"enabled": false,
43-
"items": [{
46+
"items": [
47+
{
4448
"type": "has one",
4549
"original_table_name": "products",
4650
"original_table_alias": "product",
@@ -101,4 +105,4 @@
101105
// generate_base_only: false by default. Set to true to avoid overwriting custom subclasses.
102106
"generate_base_only": false
103107
}
104-
}
108+
}

0 commit comments

Comments
 (0)