Models
All the models that are used from SQL-Alchemy
Important
Only use this class if you interact with the Database. Convert it to schemes if you use it otherwise!
Allergie
Allergie structure for the DB
Classes:
|
Model for SQLAlchemy for the allergie Table in the DB |
Bewertung
Bewertung structure for the DB
Classes:
|
Model for SQLAlchemy for the bewertung Table in the DB |
|
Model for SQLAlchemy for the bewertung Table in the DB |
- class db.models.bewertung.BewertungRecipe(**kwargs)[source]
Model for SQLAlchemy for the bewertung Table in the DB
- person_email
Primary Key and ForeignKey of db.models.person.Person email
- Type
str
- rezept_id
Primary Key and ForeignKey of db.models.restaurant.BewertungRecipe
- Type
str
- rezept_name
Can not be None
- Type
str
- zeitstempel
Set automatic in DB when updated
- Type
sqlalchemy.DateTime
- kommentar
Can be None
- Type
str
- rating
Rating if the assessment
- Type
int
- person
- restaurant
- class db.models.bewertung.BewertungRestaurant(**kwargs)[source]
Model for SQLAlchemy for the bewertung Table in the DB
- person_email
Primary Key and ForeignKey of db.models.person.Person email
- Type
str
- place_id
Primary Key and ForeignKey of db.models.restaurant.BewertungRestaurant
- Type
str
- zeitstempel
Set automatic in DB when updated
- Type
sqlalchemy.DateTime
- kommentar
Can be None
- Type
str
- rating
Rating if the assessment
- Type
int
- person
- restaurant
Cuisine
Filter structure for the DB
Classes:
|
Model for SQLAlchemy for the Cuisine Table in the DB |
Filter
Filter structure for the DB
Classes:
|
Model for SQLAlchemy for the filter Table in the DB |
- class db.models.filter.FilterRest(**kwargs)[source]
Model for SQLAlchemy for the filter Table in the DB
- email
Primary Key and Foreign Key of person.email
- Type
str
- manuell_location
Location for the search
- Type
str
- radius
Radius of the search
- Type
int
- rating
Minimum rating of the google rating
- Type
int
- costs
Maximal costs of the google search
- Type
int
- person
Owner of the filter
- allergies
Allergies of the Filter
- cuisines
Cuisine of the Filter
Person
Person structure for the DB
Classes:
|
Model for SQLAlchemy for the person Table in the DB |
- class db.models.person.Person(**kwargs)[source]
Model for SQLAlchemy for the person Table in the DB
- email
Primary Key
- Type
str
- hashed_password
Hashed Password of the user
- Type
str
- last_login
Autamtic set on update
- Type
sqlalchemy.DateTime
- bewertungen
Bewertungen of the Person
- filterRest
Saved Filter of the Person
- Type
db.models.filter.Filter
Restaurant
Restaurant structure for the DB
Classes:
|
Model for SQLAlchemy for the restaurant Table in the DB |