Commit ff0773da authored by Cedric Abunar's avatar Cedric Abunar

add missing models for asterisk dbn

parent 32b448a5
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
......@@ -15,14 +15,19 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from xivo_dao.alchemy.accessfeatures import AccessFeatures
from xivo_dao.alchemy.accesswebservice import AccessWebService
from xivo_dao.alchemy.agentfeatures import AgentFeatures
from xivo_dao.alchemy.agentglobalparams import AgentGlobalParams
from xivo_dao.alchemy.agentgroup import AgentGroup
from xivo_dao.alchemy.agent_login_status import AgentLoginStatus
from xivo_dao.alchemy.agent_membership_status import AgentMembershipStatus
from xivo_dao.alchemy.agentqueueskill import AgentQueueSkill
from xivo_dao.alchemy.attachment import Attachment
from xivo_dao.alchemy.callfiltermember import Callfiltermember
from xivo_dao.alchemy.callfilter import Callfilter
from xivo_dao.alchemy.call_log import CallLog
from xivo_dao.alchemy.callerid import Callerid
from xivo_dao.alchemy.cel import CEL
from xivo_dao.alchemy.contextinclude import ContextInclude
from xivo_dao.alchemy.contextmember import ContextMember
......@@ -32,6 +37,7 @@ from xivo_dao.alchemy.contexttype import ContextType
from xivo_dao.alchemy.cti_contexts import CtiContexts
from xivo_dao.alchemy.ctidirectories import CtiDirectories
from xivo_dao.alchemy.ctidirectoryfields import CtiDirectoryFields
from xivo_dao.alchemy.ctilog import CtiLog
from xivo_dao.alchemy.cti_displays import CtiDisplays
from xivo_dao.alchemy.ctimain import CtiMain
from xivo_dao.alchemy.ctiphonehintsgroup import CtiPhoneHintsGroup
......@@ -56,11 +62,13 @@ from xivo_dao.alchemy.extension import Extension
from xivo_dao.alchemy.features import Features
from xivo_dao.alchemy.func_key_destination_type import FuncKeyDestinationType
from xivo_dao.alchemy.func_key_dest_group import FuncKeyDestGroup
from xivo_dao.alchemy.func_key_dest_queue import FuncKeyDestQueue
from xivo_dao.alchemy.func_key_dest_user import FuncKeyDestUser
from xivo_dao.alchemy.func_key_mapping import FuncKeyMapping
from xivo_dao.alchemy.func_key import FuncKey
from xivo_dao.alchemy.func_key_template import FuncKeyTemplate
from xivo_dao.alchemy.func_key_type import FuncKeyType
from xivo_dao.alchemy.general import General
from xivo_dao.alchemy.groupfeatures import GroupFeatures
from xivo_dao.alchemy.iaxcallnumberlimits import IAXCallNumberLimits
from xivo_dao.alchemy.incall import Incall
......@@ -68,7 +76,12 @@ from xivo_dao.alchemy.ldapfilter import LdapFilter
from xivo_dao.alchemy.ldapserver import LdapServer
from xivo_dao.alchemy.linefeatures import LineFeatures
from xivo_dao.alchemy.meetmefeatures import MeetmeFeatures
from xivo_dao.alchemy.meetmeguest import MeetmeGuest
from xivo_dao.alchemy.musiconhold import MusicOnHold
from xivo_dao.alchemy.outcall import Outcall
from xivo_dao.alchemy.outcalltrunk import OutcallTrunk
from xivo_dao.alchemy.paging import Paging
from xivo_dao.alchemy.paginguser import PagingUser
from xivo_dao.alchemy.phonebookaddress import PhonebookAddress
from xivo_dao.alchemy.phonebooknumber import PhonebookNumber
from xivo_dao.alchemy.phonebook import Phonebook
......@@ -83,16 +96,20 @@ from xivo_dao.alchemy.queuepenaltychange import QueuePenaltyChange
from xivo_dao.alchemy.queuepenalty import QueuePenalty
from xivo_dao.alchemy.queue import Queue
from xivo_dao.alchemy.queueskill import QueueSkill
from xivo_dao.alchemy.queueskillcat import QueueSkillCat
from xivo_dao.alchemy.queueskillrule import QueueSkillRule
from xivo_dao.alchemy.record_campaigns import RecordCampaigns
from xivo_dao.alchemy.recordings import Recordings
from xivo_dao.alchemy.rightcallmember import RightCallMember
from xivo_dao.alchemy.rightcall import RightCall
from xivo_dao.alchemy.rightcallexten import RightCallExten
from xivo_dao.alchemy.sccpdevice import SCCPDevice
from xivo_dao.alchemy.sccpgeneralsettings import SCCPGeneralSettings
from xivo_dao.alchemy.sccpline import SCCPLine
from xivo_dao.alchemy.schedulepath import SchedulePath
from xivo_dao.alchemy.schedule import Schedule
from xivo_dao.alchemy.schedule_time import ScheduleTime
from xivo_dao.alchemy.serverfeatures import ServerFeatures
from xivo_dao.alchemy.sipauthentication import SIPAuthentication
from xivo_dao.alchemy.stat_agent_periodic import StatAgentPeriodic
from xivo_dao.alchemy.stat_agent import StatAgent
......
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, UniqueConstraint, CheckConstraint
from sqlalchemy.types import Integer, String
from xivo_dao.helpers.db_manager import Base
class AccessFeatures(Base):
__tablename__ = 'accessfeatures'
__table_args__ = (
CheckConstraint('feature=\'phonebook\''),
UniqueConstraint('host', 'feature'),
)
id = Column(Integer, primary_key=True)
host = Column(String(255), nullable=False, server_default='')
feature = Column(String(64), nullable=False, server_default='phonebook')
commented = Column(Integer, nullable=False, server_default='0')
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column
from sqlalchemy.types import Integer, String
from xivo_dao.helpers.db_manager import Base
class AgentGlobalParams(Base):
__tablename__ = 'agentglobalparams'
id = Column(Integer, primary_key=True)
category = Column(String(128), nullable=False)
option_name = Column(String(255), nullable=False)
option_value = Column(String(255))
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column
from sqlalchemy.types import Integer, String, Text
from xivo_dao.helpers.db_manager import Base
class AgentGroup(Base):
__tablename__ = 'agentgroup'
id = Column(Integer, primary_key=True)
groupid = Column(Integer, nullable=False)
name = Column(String(128), nullable=False, server_default='')
groups = Column(String(255), nullable=False, server_default='')
commented = Column(Integer, nullable=False, server_default='0')
deleted = Column(Integer, nullable=False, server_default='0')
description = Column(Text)
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, UniqueConstraint
from sqlalchemy.types import Integer, String, Binary
from xivo_dao.helpers.db_manager import Base
class Attachment(Base):
__tablename__ = 'attachment'
__table_args__ = (
UniqueConstraint('object_type', 'object_id'),
)
id = Column(Integer, primary_key=True)
name = Column(String(64), nullable=False)
object_type = Column(String(16), nullable=False)
object_id = Column(Integer, nullable=False)
file = Column(Binary)
size = Column(Integer, nullable=False)
mime = Column(String(64), nullable=False)
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint
from sqlalchemy.types import Integer, String, Enum
from xivo_dao.helpers.db_manager import Base
class Callerid(Base):
__tablename__ = 'callerid'
__table_args__ = (
PrimaryKeyConstraint('type', 'typeval'),
)
mode = Column(Enum('prepend', 'overwrite', 'append',
name='callerid_mode',
metadata=Base.metadata))
callerdisplay = Column(String(80), nullable=False, server_default='')
type = Column(Enum('callfilter', 'incall', 'group', 'queue',
name='callerid_type',
metadata=Base.metadata))
typeval = Column(Integer, nullable=False)
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint
from sqlalchemy.types import Integer, String, TIMESTAMP
from xivo_dao.helpers.db_manager import Base
class CtiLog(Base):
__tablename__ = 'ctilog'
__table_args__ = (
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
eventdate = Column(TIMESTAMP)
loginclient = Column(String(64))
compagny = Column(String(64))
status = Column(String(64))
action = Column(String(64))
arguments = Column(String(255))
callduration = Column(Integer)
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint
from sqlalchemy.types import Integer, String
from xivo_dao.helpers.db_manager import Base
class General(Base):
__tablename__ = 'general'
__table_args__ = (
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
timezone = Column(String(128))
exchange_trunkid = Column(Integer)
exchange_exten = Column(String(128), server_default='NULL')
dundi = Column(Integer)
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint
from sqlalchemy.types import Integer, String
from xivo_dao.helpers.db_manager import Base
class MeetmeGuest(Base):
__tablename__ = 'meetmeguest'
__table_args__ = (
PrimaryKeyConstraint('id'),
)
id = Column(Integer, nullable=False)
meetmefeaturesid = Column(Integer, nullable=False)
fullname = Column(String(255), nullable=False)
telephonenumber = Column(String(40))
email = Column(String(320))
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint, UniqueConstraint
from sqlalchemy.types import Integer, String, Text
from xivo_dao.helpers.db_manager import Base
class Outcall(Base):
__tablename__ = 'outcall'
__table_args__ = (
PrimaryKeyConstraint('id'),
UniqueConstraint('name'),
)
id = Column(Integer, nullable=False)
name = Column(String(128), nullable=False)
context = Column(String(39), nullable=False)
useenum = Column(Integer, nullable=False, server_default='0')
internal = Column(Integer, nullable=False, server_default='0')
preprocess_subroutine = Column(String(39))
hangupringtime = Column(Integer, nullable=False, server_default='0')
commented = Column(Integer, nullable=False, server_default='0')
description = Column(Text)
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint, Index
from sqlalchemy.types import Integer
from xivo_dao.helpers.db_manager import Base
class OutcallTrunk(Base):
__tablename__ = 'outcalltrunk'
__table_args__ = (
PrimaryKeyConstraint('outcallid', 'trunkfeaturesid'),
Index('outcalltrunk__idx__priority', 'priority'),
)
outcallid = Column(Integer, nullable=False, server_default='0')
trunkfeaturesid = Column(Integer, nullable=False, server_default='0')
priority = Column(Integer, nullable=False, server_default='0')
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint, UniqueConstraint
from sqlalchemy.types import Integer, String, Text
from xivo_dao.helpers.db_manager import Base
class Paging(Base):
__tablename__ = 'paging'
__table_args__ = (
PrimaryKeyConstraint('id'),
UniqueConstraint('number'),
)
id = Column(Integer, nullable=False)
number = Column(String(32))
duplex = Column(Integer, nullable=False, server_default='0')
ignore = Column(Integer, nullable=False, server_default='0')
record = Column(Integer, nullable=False, server_default='0')
quiet = Column(Integer, nullable=False, server_default='0')
timeout = Column(Integer, nullable=False)
announcement_file = Column(String(64))
announcement_play = Column(Integer, nullable=False, server_default='0')
announcement_caller = Column(Integer, nullable=False, server_default='0')
commented = Column(Integer, nullable=False, server_default='0')
description = Column(Text)
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint, Index
from sqlalchemy.types import Integer
from xivo_dao.helpers.db_manager import Base
class PagingUser(Base):
__tablename__ = 'paginguser'
__table_args__ = (
PrimaryKeyConstraint('pagingid', 'userfeaturesid', 'caller'),
Index('paginguser__idx__pagingid', 'pagingid'),
)
pagingid = Column(Integer, nullable=False)
userfeaturesid = Column(Integer, nullable=False)
caller = Column(Integer, nullable=False)
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint, UniqueConstraint
from sqlalchemy.types import Integer, String
from xivo_dao.helpers.db_manager import Base
class QueueSkillCat(Base):
__tablename__ = 'queueskillcat'
__table_args__ = (
PrimaryKeyConstraint('id'),
UniqueConstraint('name'),
)
id = Column(Integer, nullable=False)
name = Column(String(64), nullable=False, server_default='')
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint, UniqueConstraint
from sqlalchemy.types import Integer, String
from xivo_dao.helpers.db_manager import Base
class RightCallExten(Base):
__tablename__ = 'rightcallexten'
__table_args__ = (
PrimaryKeyConstraint('id'),
UniqueConstraint('rightcallid', 'exten'),
)
id = Column(Integer, nullable=False)
rightcallid = Column(Integer, nullable=False, server_default='0')
exten = Column(String(40), nullable=False, server_default='')
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint, Index
from sqlalchemy.types import Integer, String, Enum
from xivo_dao.helpers.db_manager import Base
class ScheduleTime(Base):
__tablename__ = 'schedule_time'
__table_args__ = (
PrimaryKeyConstraint('id'),
Index('schedule_time__idx__scheduleid_commented', 'schedule_id', 'commented'),
)
id = Column(Integer)
schedule_id = Column(Integer)
mode = Column(Enum('opened', 'closed',
name='schedule_time_mode',
metadata=Base.metadata),
nullable=False, server_default='opened')
hours = Column(String(512), server_default='NULL')
weekdays = Column(String(512), server_default='NULL')
monthdays = Column(String(512), server_default='NULL')
months = Column(String(512), server_default='NULL')
action = Column(Enum('none',
'endcall:busy',
'endcall:congestion',
'endcall:hangup',
'user',
'group',
'queue',
'meetme',
'voicemail',
'trunk',
'schedule',
'voicemenu',
'extension',
'outcall',
'application:callbackdisa',
'application:disa',
'application:directory',
'application:faxtomail',
'application:voicemailmain',
'application:password',
'sound',
'custom',
name='dialaction_action',
metadata=Base.metadata))
actionid = Column(String(512), server_default='NULL')
actionargs = Column(String(512), server_default='NULL')
commented = Column(Integer, nullable=False, server_default='0')
# -*- coding: utf-8 -*-
#
# Copyright (C) 2014 Avencall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from sqlalchemy.schema import Column, PrimaryKeyConstraint, UniqueConstraint, \
CheckConstraint
from sqlalchemy.types import Integer, String, Enum
from xivo_dao.helpers.db_manager import Base
class ServerFeatures(Base):
__tablename__ = 'serverfeatures'
__table_args__ = (
PrimaryKeyConstraint('id'),
CheckConstraint('feature=\'phonebook\''),
UniqueConstraint('serverid', 'feature', 'type'),
)
id = Column(Integer)
serverid = Column(Integer, nullable=False)
feature = Column(String(64), nullable=False)
type = Column(Enum('xivo', 'ldap',
name='serverfeatures_type',
metadata=Base.metadata))
commented = Column(Integer, nullable=False, server_default='0')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment