from datetime import datetime

from sqlalchemy import Column, Integer, Sequence, ForeignKey, String, \
    DateTime, Boolean, UniqueConstraint, text

from fusion_models.fusion.base import FusionBase


class OracleFbdiTypes(FusionBase):
    __tablename__ = 'oracle_fbdi_types'

    id = Column(Integer, Sequence('oracle_fbdi_csv_types_id_seq'),
                primary_key=True)
    oracle_module_id = Column(Integer, ForeignKey('oracle_modules.id'),
                              nullable=False)
    # TODO: This field should not be nullable. Make it nullable=false once
    #  single migration is created
    oracle_job_id = Column(Integer, ForeignKey('oracle_jobs.id'),
                           nullable=True)
    name = Column(String(128), nullable=False)
    # TODO: This field should not be nullable. Make it nullable=false once
    #  single migration is created
    ucm_account = Column(String(256), nullable=True)

    created_on = Column(DateTime,
                        server_default=text("(now() at time zone 'utc')"))
    modified_on = Column(DateTime, onupdate=datetime.utcnow)
    modified_by = Column(Integer, ForeignKey('users.id'), nullable=False)
    is_active = Column(Boolean, default=True)

    __table_args__ = (
        UniqueConstraint('name', name='_oracle_fbdi_types_name_uc'),
    )

b64351759282107ca8b94a1c8c95f7567c1abb8c
<mask token>

<mask token>


class OracleFbdiTypes(FusionBase):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class OracleFbdiTypes(FusionBase):
    __tablename__ = 'oracle_fbdi_types'
    id = Column(Integer, Sequence('oracle_fbdi_csv_types_id_seq'),
        primary_key=True)
    oracle_module_id = Column(Integer, ForeignKey('oracle_modules.id'),
        nullable=False)
    oracle_job_id = Column(Integer, ForeignKey('oracle_jobs.id'), nullable=True
        )
    name = Column(String(128), nullable=False)
    ucm_account = Column(String(256), nullable=True)
    created_on = Column(DateTime, server_default=text(
        "(now() at time zone 'utc')"))
    modified_on = Column(DateTime, onupdate=datetime.utcnow)
    modified_by = Column(Integer, ForeignKey('users.id'), nullable=False)
    is_active = Column(Boolean, default=True)
    __table_args__ = UniqueConstraint('name', name='_oracle_fbdi_types_name_uc'
        ),

from datetime import datetime
from sqlalchemy import Column, Integer, Sequence, ForeignKey, String, DateTime, Boolean, UniqueConstraint, text
from fusion_models.fusion.base import FusionBase


class OracleFbdiTypes(FusionBase):
    __tablename__ = 'oracle_fbdi_types'
    id = Column(Integer, Sequence('oracle_fbdi_csv_types_id_seq'),
        primary_key=True)
    oracle_module_id = Column(Integer, ForeignKey('oracle_modules.id'),
        nullable=False)
    oracle_job_id = Column(Integer, ForeignKey('oracle_jobs.id'), nullable=True
        )
    name = Column(String(128), nullable=False)
    ucm_account = Column(String(256), nullable=True)
    created_on = Column(DateTime, server_default=text(
        "(now() at time zone 'utc')"))
    modified_on = Column(DateTime, onupdate=datetime.utcnow)
    modified_by = Column(Integer, ForeignKey('users.id'), nullable=False)
    is_active = Column(Boolean, default=True)
    __table_args__ = UniqueConstraint('name', name='_oracle_fbdi_types_name_uc'
        ),

from datetime import datetime

from sqlalchemy import Column, Integer, Sequence, ForeignKey, String, \
    DateTime, Boolean, UniqueConstraint, text

from fusion_models.fusion.base import FusionBase


class OracleFbdiTypes(FusionBase):
    __tablename__ = 'oracle_fbdi_types'

    id = Column(Integer, Sequence('oracle_fbdi_csv_types_id_seq'),
                primary_key=True)
    oracle_module_id = Column(Integer, ForeignKey('oracle_modules.id'),
                              nullable=False)
    # TODO: This field should not be nullable. Make it nullable=false once
    #  single migration is created
    oracle_job_id = Column(Integer, ForeignKey('oracle_jobs.id'),
                           nullable=True)
    name = Column(String(128), nullable=False)
    # TODO: This field should not be nullable. Make it nullable=false once
    #  single migration is created
    ucm_account = Column(String(256), nullable=True)

    created_on = Column(DateTime,
                        server_default=text("(now() at time zone 'utc')"))
    modified_on = Column(DateTime, onupdate=datetime.utcnow)
    modified_by = Column(Integer, ForeignKey('users.id'), nullable=False)
    is_active = Column(Boolean, default=True)

    __table_args__ = (
        UniqueConstraint('name', name='_oracle_fbdi_types_name_uc'),
    )
