Telosys doc
WebsiteTwitterLinkedInNews
  • Telosys documentation
  • Telosys CLI
    • Installation on Linux
    • Installation on Windows
    • CLI configuration
    • CLI commands
    • Getting started
  • Telosys with VSCode
    • Extension installation
    • VSCode settings
    • Telosys terminal in VSCode
    • Telosys editor configuration
  • Telosys with JetBrains IDE
  • Project configuration
  • Project variables
  • Project databases
  • Models and entities
    • Model structure
    • Entity
    • Attribute / Link
    • Annotations
    • Tags
    • Examples
    • Model creation
    • Model installation
    • Models management
  • Bundles of templates
    • Bundle structure
    • Bundle creation
    • Bundles installation
    • Bundles management
    • Velocity language
    • Velocity directives
    • Velocity object types
    • Telosys directives
    • Telosys variables
    • Telosys objects
    • Code snippets
  • Code generation
    • "gen" command
    • "genb" command
  • Target languages
    • C++
    • C#
    • Golang
    • Java
    • JavaScript
    • Kotlin
    • PHP
    • Python
    • Scala
    • TypeScript
  • Target databases (SQL)
    • Predefined rules
    • Specific rules
    • Type size and precision
  • Telosys with Git
    • GitHub usage
    • Install with Git
    • Publish with Git
  • Support the project
  • How to contribute
  • Sponsors
  • IDE and editors
  • Telosys 3 Eclipse plugin
    • Eclipse plugin installation
    • Eclipse customization
    • Telosys 3 database model
Powered by GitBook
On this page
  • Model structure
  • How to use Git to clone and push a model?
  1. Models and entities

Model structure

PreviousModels and entitiesNextEntity

Last updated 4 months ago

Model structure

Since version 4.0 each model is a directory located in "TelosysTools/models".

The directory name is the model name.

A model directory contains

  • a file "model.yaml"

  • n files ".entity" (1 for each entity)

Example : model "employees"

In "employees" directory:
- model.yaml (model file)
- Employee.entity (entity file)
- Company.entity (entity file)
- Project.entity (entity file) 

The "model.yaml" contains basic informations about the model

How to use Git to clone and push a model?

Each ".entity" file defines an entity, see page for more information about the grammar.

See and

Entity
Install with Git
Publish with Git