SQL : upgrade modele

This commit is contained in:
Dany De Bontridder 2018-02-10 22:12:48 +01:00
parent 2bd51d285c
commit c93e7cff7f
9 changed files with 2654 additions and 1557 deletions

View file

@ -20,7 +20,6 @@ COMMENT ON COLUMN action_gestion.ag_type IS ' type of action: see document_type
COMMENT ON COLUMN action_gestion.f_id_dest IS ' third party ';
COMMENT ON COLUMN action_gestion.ag_title IS ' title ';
COMMENT ON COLUMN action_gestion.ag_timestamp IS ' ';
COMMENT ON COLUMN action_gestion.ag_ref_ag_id IS ' concerning the action ';
COMMENT ON COLUMN action_gestion.ag_ref IS 'its reference ';
COMMENT ON COLUMN action_gestion.ag_priority IS 'Low, medium, important ';
COMMENT ON COLUMN action_gestion.ag_dest IS ' is the profile which has to take care of this action ';
@ -85,7 +84,9 @@ COMMENT ON TABLE form IS 'Forms content';
COMMENT ON TABLE info_def IS 'Contains the types of additionnal info we can add to a operation';
COMMENT ON TABLE jnt_fic_attr IS 'join between the family card and the attribut definition';
COMMENT ON TABLE jrn IS 'Journal: content one line for a group of accountancy writing';
COMMENT ON COLUMN jrn.jr_optype IS 'Type of operation , NOR = NORMAL , OPE opening , EXT extourne, CLO closing';
COMMENT ON TABLE jrn_def IS 'Definition of a journal, his properties';
COMMENT ON COLUMN jrn_def.jrn_enable IS 'Set to 1 if the ledger is enable ';
COMMENT ON TABLE jrn_note IS 'Note about operation';
COMMENT ON TABLE jrn_rapt IS 'Rapprochement between operation';
COMMENT ON TABLE jrn_type IS 'Type of journal (Sell, Buy, Financial...)';
@ -124,6 +125,7 @@ COMMENT ON TABLE op_predef_detail IS 'contains the detail of predefined operatio
COMMENT ON TABLE operation_analytique IS 'History of the analytic account';
COMMENT ON COLUMN operation_analytique.oa_jrnx_id_source IS 'jrnx.j_id source of this amount, this amount is computed from an amount giving a ND VAT.Normally NULL is there is no ND VAT.';
COMMENT ON COLUMN operation_analytique.oa_positive IS 'Sign of the amount';
COMMENT ON COLUMN operation_analytique.f_id IS 'FK to fiche.f_id , used only with ODS';
COMMENT ON TABLE parameter IS 'parameter of the company';
COMMENT ON TABLE parm_money IS 'Currency conversion';
COMMENT ON TABLE parm_periode IS 'Periode definition';
@ -163,13 +165,19 @@ COMMENT ON COLUMN stock_repository.r_adress IS 'adress of the stock';
COMMENT ON COLUMN stock_repository.r_country IS 'country of the stock';
COMMENT ON COLUMN stock_repository.r_city IS 'City of the stock';
COMMENT ON COLUMN stock_repository.r_phone IS 'Phone number';
COMMENT ON COLUMN tags.t_actif IS 'Y if the tag is activate and can be used ';
COMMENT ON TABLE tmp_pcmn IS 'Plan comptable minimum normalisé';
COMMENT ON COLUMN tmp_pcmn.id IS 'allow to identify the row, it is unique and not null (pseudo pk)';
COMMENT ON COLUMN tmp_pcmn.pcm_direct_use IS 'Value are N or Y , N cannot be used directly , not even through a card';
COMMENT ON TABLE todo_list IS 'Todo list';
COMMENT ON COLUMN todo_list.is_public IS 'Flag for the public parameter';
COMMENT ON TABLE todo_list_shared IS 'Note of todo list shared with other users';
COMMENT ON COLUMN todo_list_shared.todo_list_id IS 'fk to todo_list';
COMMENT ON COLUMN todo_list_shared.use_login IS 'user login';
COMMENT ON TABLE tva_rate IS 'Rate of vat';
COMMENT ON COLUMN user_active_security.us_login IS 'user''s login';
COMMENT ON COLUMN user_active_security.us_ledger IS 'Flag Security for ledger';
COMMENT ON COLUMN user_active_security.us_action IS 'Security for action';
COMMENT ON TABLE user_local_pref IS 'The user''s local parameter ';
COMMENT ON COLUMN user_local_pref.user_id IS 'user''s login ';
COMMENT ON COLUMN user_local_pref.parameter_type IS 'the type of parameter ';
@ -180,6 +188,10 @@ COMMENT ON COLUMN user_sec_action_profile.p_id IS 'fk to profile';
COMMENT ON COLUMN user_sec_action_profile.ua_right IS 'Type of right : R for readonly W for write';
COMMENT ON VIEW v_menu_description IS 'Description des menus';
COMMENT ON VIEW v_menu_profile IS 'Give the profile and the menu + dependencies';
COMMENT ON VIEW v_tva_rate IS 'Show this table to be easily used by Tva_Rate_MTable';
COMMENT ON COLUMN v_tva_rate.tva_purchase IS ' VAT used for purchase';
COMMENT ON COLUMN v_tva_rate.tva_sale IS ' VAT used for sale';
COMMENT ON COLUMN v_tva_rate.tva_both_side IS 'if 1 , VAT avoided ';
COMMENT ON VIEW vw_fiche_def IS 'all the attributs for card family';
COMMENT ON CONSTRAINT uniq_user_ledger ON user_sec_jrn IS 'Create an unique combination user / ledger';
COMMENT ON TRIGGER action_gestion_t_insert_update ON action_gestion IS 'Truncate the column ag_title to 70 char';