1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-03 08:55:34 +02:00
crud_generator/bin/templates/configs_
2024-12-02 14:00:58 +03:00
..
convert_id_rapira.json сделал TEMPLATES_CONVERT_ID_FILENAME 2024-02-16 11:37:36 +03:00
convert_id.json сделал TEMPLATES_CONVERT_ID_FILENAME 2024-02-16 11:37:36 +03:00
crud_functions_rename_rapira.json сделал TEMPLATES_CONVERT_ID_FILENAME 2024-02-16 11:37:36 +03:00
crud_functions_rename.json сделал TEMPLATES_CONVERT_ID_FILENAME 2024-02-16 11:37:36 +03:00
findby_functions_rapira.json сделал AddTextMessageRequestID_Columns() 2024-09-26 14:27:25 +03:00
findby_functions_tink.json сделал MassAll := micro.MassFrom_Map_DESC(MapAll) 2024-12-02 11:20:06 +03:00
findby_functions.json сделал find_by_functions.json 2024-08-15 10:46:55 +03:00
findmassby_functions_rapira.json сделал CreateFiles_FindModelBy() 2024-10-29 13:55:08 +03:00
findmassby_functions_tink.json сделал MassAll := micro.MassFrom_Map_DESC(MapAll) 2024-12-02 11:20:06 +03:00
findmassby_functions.json сделал find_by_functions.json 2024-08-15 10:46:55 +03:00
findmodelby_functions_rapira.json сделал CreateFiles_FindModelBy() 2024-10-15 15:24:54 +03:00
findmodelby_functions.json сделал CreateFiles_FindModelBy() 2024-10-15 15:24:54 +03:00
mapping.json сделал NEED_USE_DB_VIEWS=false 2024-10-10 16:00:43 +03:00
mapping.json_old сделал UUID 2024-04-04 17:59:20 +03:00
model_crud_delete_functions_rapira.json сделал TEMPLATES_CONVERT_ID_FILENAME 2024-02-16 11:37:36 +03:00
model_crud_delete_functions.json сделал TEMPLATES_CONVERT_ID_FILENAME 2024-02-16 11:37:36 +03:00
name_replace_rapira.json сделал TEMPLATES_CONVERT_ID_FILENAME 2024-02-16 11:37:36 +03:00
name_replace.json сделал TEMPLATES_CONVERT_ID_FILENAME 2024-02-16 11:37:36 +03:00
nullable_rapira.json сделал TEMPLATES_CONVERT_ID_FILENAME 2024-02-16 11:37:36 +03:00
nullable.json сделал TEMPLATES_CONVERT_ID_FILENAME 2024-02-16 11:37:36 +03:00
primary_keys_rapira.json сделал NEED_USE_DB_VIEWS=false 2024-10-10 17:42:37 +03:00
primary_keys.json сделал NEED_USE_DB_VIEWS=false 2024-10-10 17:42:37 +03:00
readall_functions_rapira.json сделал CreateFiles_FindModelBy() 2024-10-29 13:55:08 +03:00
readall_functions_tink.json сделал .sh 2024-11-28 15:47:13 +03:00
readall_functions.json сделал ReadAll() 2024-09-13 13:24:55 +03:00
readme.txt сделал CreateFiles_FindModelBy() 2024-10-15 15:24:54 +03:00
settings.txt сделал NEED_CREATE_CONSTANTS_FILE 2024-12-02 14:00:58 +03:00

convert_id.json:
Mapping database table name . field name = field type in golang.
For tables file. 
For non standart rare case or type aliases
example:
{
  "lawsuit_payments.id": "alias.PaymentId",
  "lawsuit_payments.invoice_id": "alias.InvoiceId",
}



------------------------------------------------------------------------
mapping.json
Mapping Postgres types to Golang types



------------------------------------------------------------------------
name_replace.json
Mapping database field name = golang field name
For tables file. 
Replace standart field name to filled name
For non standart rare case.
example:
{
  "inn": "INN",
  "json_file_id": "JSONFileID"
}


------------------------------------------------------------------------
nullable.json
List of golang field names, which need change 0 to null.
true = need change 0 to null
For non standart rare case.
example:
{
      "ext_id": true,
      "created_at": false
}


------------------------------------------------------------------------
model_crud_delete_functions.json
Mapping postgres tables to golang function name,
this functions will be deleted from model crud files.
example:
{
      "lawsuits": "NewLawsuit,AsLawsuit"
}



------------------------------------------------------------------------
crud_functions_rename.json 
TableName:{old:"",new:""}
example:
{
      "functions": [
	{
	"old": "create_update_ctx",
	"new":"create_update_ctx_original"
	}
	]
}

------------------------------------------------------------------------
findby_functions.json
Need for automatic create functions searching 1 row in table filtered by column_name, 
example:
[{"Table":"table_name1","Columns":["column_name1"]}]
[{"Table":"table_name1","Columns":["column_name1","column_name2"]}]


------------------------------------------------------------------------
findmassby_function.json
Need for automatic create functions searching many rows in table filtered by column_name, 
example:
[{"Table":"table_name1","Columns":["column_name1"]}]
[{"Table":"table_name1","Columns":["column_name1","column_name2"]}]


readall_function.json
Need for automatic create functions ReadAll() returning all rows in table (exclude is_deleted rows)
example:
{
      "table_name1": ""
}


findmodelby_functions.json
Need for automatic create FindModelBy() functions searching 1 value in table_name1 filtered by column_name1,
this value will be searched in foreign table as identifier, and return this 1 row model
example:
[
	{"TableName":"table_name1","ColumnName":"column_name1"}
]