Language and development rules: Difference between revisions

Jump to navigation Jump to search
Line 82: Line 82:


Some properties of classes are found in different classes. To avoid having different names, we will use the following names:
Some properties of classes are found in different classes. To avoid having different names, we will use the following names:
* date_creation:                date of creation
 
* user_creation:                object User creating object
- rowid INTEGER AUTO_INCREMENT PRIMARY KEY    qui est l'id technique
* fk_user_creation:              id of user creating object
- entity INTEGER default 1                    that is id for the multicompany feature
* date_modification:             date of last modification
- date_creation  datetime                    that is the creation date
* user_modification:            object User performing the modification
- tms             timestamp                  qui sera un champ contenant la date de chaque mise à jour (la base de donnée le gère tout seul, pas besoin de le gérer par le code)
* fk_user_modification:          id of user doing modification
- import_key                                  qui contiendra le code d'import YYYYMMDDHHMMSS si vous faites des imports en masse dans la table.
* date_validation:              date validation
 
* user_validation:              object User
Eventualy
* fk_user_validation:            id of user making validation
- fk_user_author integer qui est l'id du user de création
- fk_user_mod integer qui est l'id du user de modification
- fk_user_valid integer qui est l'id du user de validation
- fk_soc integer qui est l'id du tiers (si applicable)
 
* Type of fields
- smallint for a very small integer
- integer for any number, id or foreign key
- double(24,8) for any amount
- double(6,3) for a vat rate
- real for a quantity
- varchar for a string (even if length is 1)
- timestamp for a date+time that is updated automaticaly
- datetime for a date+time
- date for a date


= SQL rules =
= SQL rules =

Navigation menu