2021-08-07 15:20:30 +02:00
|
|
|
# -*- coding: UTF-8 -*
|
|
|
|
|
|
|
|
"""Model : preferences
|
|
|
|
"""
|
2022-01-21 00:46:45 +01:00
|
|
|
|
|
|
|
from app import db
|
2021-08-07 15:20:30 +02:00
|
|
|
|
|
|
|
|
2021-08-13 00:34:58 +02:00
|
|
|
class ScoPreference(db.Model):
|
2021-09-05 12:30:11 +02:00
|
|
|
"""ScoDoc preferences (par département)"""
|
2021-08-07 15:20:30 +02:00
|
|
|
|
|
|
|
__tablename__ = "sco_prefs"
|
|
|
|
id = db.Column(db.Integer, primary_key=True)
|
|
|
|
pref_id = db.synonym("id")
|
2021-08-13 00:34:58 +02:00
|
|
|
|
|
|
|
dept_id = db.Column(db.Integer, db.ForeignKey("departement.id"))
|
|
|
|
|
|
|
|
name = db.Column(db.String(128), nullable=False, index=True)
|
2021-08-07 15:20:30 +02:00
|
|
|
value = db.Column(db.Text())
|
|
|
|
formsemestre_id = db.Column(db.Integer, db.ForeignKey("notes_formsemestre.id"))
|