MonScoDocEssai/app/models/but_pn.py

20 lines
528 B
Python
Raw Normal View History

2021-09-29 10:36:57 +02:00
"""ScoDoc 9 models : Formation BUT 2021
"""
from enum import unique
from typing import Any
2021-09-29 10:36:57 +02: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"""
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"