Field
Create a field⚓
Concept⚓
The fields are used to define the data carried by an entity. A field can have a type which gives it a particular format or functionality. By default a field whose type is not specified will be a string type.
RemarqueType of field⚓
|
|
|
| |||
ExempleEnglish⚓
create data field NameOfDataField (with type NameOfSimpleType)
add field NameOfDataField (with type NameOfSimpleType)
ComplémentExample⚓
create data field Surname
create field DateOfBirth with type date
add field IsFinished with type boolean
ExempleFrench⚓
créer (un) champ (de données) NomDuChampsDeDonnées de type TypeSimple
ajouter (un) champ (de données) NomDuChampsDeDonnées de type TypeSimple
ComplémentExample⚓
créer un champ Prénom
créer champ de données Date De Naissance de type date
ajouter un champ Est Terminé de type boolean
Define a default value for a field⚓
Concept⚓
It is possible to specify a default value for a field. It is necessary to respect the field type to define the default value. For exemple an Integer type will have a default value only with digits. For the date and datetime types the default value can be the current date.
ExempleEnglish⚓
create field NameOfDataField (with type NameOfSimpleType) and default value ValueN
ComplémentExample⚓
create field Number with type integer and default value 123
create field DateOfDay with type date and default value Today
add field Mail with type mail and default value name@domain.com
ExempleFrench⚓
créer (un) champ (de données) NomDuChampsDeDonnées de type (TypeSimple) avec la valeur par défaut Valeur1
ComplémentExample⚓
créer un champ Nombre de type Nombre avec la valeur par défaut 123
créer champ de données Date de type date avec la valeur par défaut aujourd'hui
ajouter un champ Mail de type mail avec la valeur par défaut nom@domaine.fr
Delete a field⚓
Concept⚓
ExempleEnglish⚓
delete (data) field NameOfDataField
ComplémentExample⚓
delete data field IsFinished
ExempleFrench⚓
supprimer (le) champ (de données) NomChampsDeDonnées
ComplémentExample⚓
supprimer le champ de données EstTerminé