from flask import Flask
from sqlalchemy import Column, ForeignKey, Table
from sqlalchemy.orm import relationship, backref
from sqlalchemy.dialects.mysql import INTEGER, VARCHAR, TEXT
from OCAPP import app, Base, BaseChanges


class PresentationType(BaseChanges, Base):
    __tablename__ = 'presentation_types'
    id = Column(INTEGER(11), primary_key=True)
    name = Column(VARCHAR(255))
    description = Column(TEXT())
    duration = Column(INTEGER(11))
    presentations = relationship('Presentation', back_populates='type')

    def __init__(self, pres_type_info):
        self.name = pres_type_info['name']
        self.description = pres_type_info['description']
        self.duration = pres_type_info['duration']

c7e3bf9e23d24bc0782c9456da8904146f1a7202
<mask token>


class PresentationType(BaseChanges, Base):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class PresentationType(BaseChanges, Base):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __init__(self, pres_type_info):
        self.name = pres_type_info['name']
        self.description = pres_type_info['description']
        self.duration = pres_type_info['duration']

<mask token>


class PresentationType(BaseChanges, Base):
    __tablename__ = 'presentation_types'
    id = Column(INTEGER(11), primary_key=True)
    name = Column(VARCHAR(255))
    description = Column(TEXT())
    duration = Column(INTEGER(11))
    presentations = relationship('Presentation', back_populates='type')

    def __init__(self, pres_type_info):
        self.name = pres_type_info['name']
        self.description = pres_type_info['description']
        self.duration = pres_type_info['duration']

from flask import Flask
from sqlalchemy import Column, ForeignKey, Table
from sqlalchemy.orm import relationship, backref
from sqlalchemy.dialects.mysql import INTEGER, VARCHAR, TEXT
from OCAPP import app, Base, BaseChanges


class PresentationType(BaseChanges, Base):
    __tablename__ = 'presentation_types'
    id = Column(INTEGER(11), primary_key=True)
    name = Column(VARCHAR(255))
    description = Column(TEXT())
    duration = Column(INTEGER(11))
    presentations = relationship('Presentation', back_populates='type')

    def __init__(self, pres_type_info):
        self.name = pres_type_info['name']
        self.description = pres_type_info['description']
        self.duration = pres_type_info['duration']
