Skip to content

Entities Tables

Max H edited this page Jan 29, 2022 · 7 revisions

In this article, all definied entities are documented, which are created as tables in the database by TypeORM.
Please notice, that attribute-name may vary from the column-names in the Postgres-Tables.
In this documentation, only the names from the attributes definied in the entities are used.
By default, all attributes are not nullable.

User

Attribute-Name Datatype Aditional attributes
id number Primary Key, Autogenerated
username string Unique
password string
is_teacher boolean Default false
is_administrator boolean Default false

UserDetail

Attribute-Name Datatype Aditional attributes
id number Primary Key, Autogenerated
user_id User Foreign Key from User
fullname string
address string
matriculation_number string Unique
mail string Unique

Clone this wiki locally