1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-11-24 08:22:42 +02:00
crud_generator/bin/templates/configs_
2024-05-31 16:09:51 +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
mapping.json сделал constants_ 2024-05-14 16:30:12 +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
readme.txt сделал ./crud_functions_rename.json 2024-01-09 13:48:10 +03:00
settings.txt сделал Replace_Postgres_ID_Test_ManyPK() 2024-05-31 16:09:51 +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"
	}
	]
}