2021-09-29 10:36:57 +02:00
|
|
|
"""ScoDoc 9 models : Formation BUT 2021
|
|
|
|
"""
|
2021-11-08 19:44:25 +01:00
|
|
|
from enum import unique
|
|
|
|
from typing import Any
|
2021-09-29 10:36:57 +02:00
|
|
|
|
2021-11-08 19:44:25 +01:00
|
|
|
from app import db
|
|
|
|
|
|
|
|
from app.scodoc.sco_utils import ModuleType
|
|
|
|
|
|
|
|
|
2021-12-02 12:08:03 +01:00
|
|
|
class APCFormation(db.Model):
|
|
|
|
"""Formation par compétence"""
|
2021-11-08 19:44:25 +01:00
|
|
|
|
|
|
|
id = db.Column(db.Integer, primary_key=True)
|
2021-12-02 12:08:03 +01:00
|
|
|
dept_id = db.Column(db.Integer, db.ForeignKey("departement.id"), index=True)
|
|
|
|
specialite = db.Column(db.Text(), nullable=False) # "RT"
|
|
|
|
specialite_long = db.Column(
|
|
|
|
db.Text(), nullable=False
|
|
|
|
) # "Réseaux et télécommunications"
|