import enum
from sqlalchemy import Boolean, \
                       Column, \
                       Enum, \
                       String
from sqlalchemy.sql import expression
from sqlalchemy_api_handler import ApiHandler

from utils.database import db


class FeatureName(enum.Enum):
    WITH_SIGNUP = "Webapp displays the page /signup"
    WITH_TRENDINGS = "Webapp displays the page /trendings"
    WITH_VERDICT_QUOTATIONS = "Webapp displays the page /verdicts/<verdict_id>/quotations"
    WITH_VERDICT_GRAPH = "Webapp displays the page /verdicts/<verdict_id>/graph"
    WITH_VERDICT_SHARES = "Webapp displays the page /verdicts/<verdict_id>/shares"
    WITH_VERDICT_BACKLINKS = "Webapp displays the view /verdicts/<verdict_id>/backlinks"


class Feature(ApiHandler,
              db.Model):

    description = Column(String(300), nullable=False)

    isActive = Column(Boolean(),
                      default=True,
                      nullable=False,
                      server_default=expression.true())

    name = Column(Enum(FeatureName),
                  nullable=False,
                  unique=True)

    __as_dict_includes__ = [
        "nameKey"
    ]

    @property
    def nameKey(self):
        return str(self.name).replace('FeatureName.', '')

7fd9d7f2050e3b5e2530f59d73fcc8b6084a1ab4
<mask token>


class Feature(ApiHandler, db.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class FeatureName(enum.Enum):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Feature(ApiHandler, db.Model):
    description = Column(String(300), nullable=False)
    isActive = Column(Boolean(), default=True, nullable=False,
        server_default=expression.true())
    name = Column(Enum(FeatureName), nullable=False, unique=True)
    __as_dict_includes__ = ['nameKey']

    @property
    def nameKey(self):
        return str(self.name).replace('FeatureName.', '')

<mask token>


class FeatureName(enum.Enum):
    WITH_SIGNUP = 'Webapp displays the page /signup'
    WITH_TRENDINGS = 'Webapp displays the page /trendings'
    WITH_VERDICT_QUOTATIONS = (
        'Webapp displays the page /verdicts/<verdict_id>/quotations')
    WITH_VERDICT_GRAPH = (
        'Webapp displays the page /verdicts/<verdict_id>/graph')
    WITH_VERDICT_SHARES = (
        'Webapp displays the page /verdicts/<verdict_id>/shares')
    WITH_VERDICT_BACKLINKS = (
        'Webapp displays the view /verdicts/<verdict_id>/backlinks')


class Feature(ApiHandler, db.Model):
    description = Column(String(300), nullable=False)
    isActive = Column(Boolean(), default=True, nullable=False,
        server_default=expression.true())
    name = Column(Enum(FeatureName), nullable=False, unique=True)
    __as_dict_includes__ = ['nameKey']

    @property
    def nameKey(self):
        return str(self.name).replace('FeatureName.', '')

import enum
from sqlalchemy import Boolean, Column, Enum, String
from sqlalchemy.sql import expression
from sqlalchemy_api_handler import ApiHandler
from utils.database import db


class FeatureName(enum.Enum):
    WITH_SIGNUP = 'Webapp displays the page /signup'
    WITH_TRENDINGS = 'Webapp displays the page /trendings'
    WITH_VERDICT_QUOTATIONS = (
        'Webapp displays the page /verdicts/<verdict_id>/quotations')
    WITH_VERDICT_GRAPH = (
        'Webapp displays the page /verdicts/<verdict_id>/graph')
    WITH_VERDICT_SHARES = (
        'Webapp displays the page /verdicts/<verdict_id>/shares')
    WITH_VERDICT_BACKLINKS = (
        'Webapp displays the view /verdicts/<verdict_id>/backlinks')


class Feature(ApiHandler, db.Model):
    description = Column(String(300), nullable=False)
    isActive = Column(Boolean(), default=True, nullable=False,
        server_default=expression.true())
    name = Column(Enum(FeatureName), nullable=False, unique=True)
    __as_dict_includes__ = ['nameKey']

    @property
    def nameKey(self):
        return str(self.name).replace('FeatureName.', '')

import enum
from sqlalchemy import Boolean, \
                       Column, \
                       Enum, \
                       String
from sqlalchemy.sql import expression
from sqlalchemy_api_handler import ApiHandler

from utils.database import db


class FeatureName(enum.Enum):
    WITH_SIGNUP = "Webapp displays the page /signup"
    WITH_TRENDINGS = "Webapp displays the page /trendings"
    WITH_VERDICT_QUOTATIONS = "Webapp displays the page /verdicts/<verdict_id>/quotations"
    WITH_VERDICT_GRAPH = "Webapp displays the page /verdicts/<verdict_id>/graph"
    WITH_VERDICT_SHARES = "Webapp displays the page /verdicts/<verdict_id>/shares"
    WITH_VERDICT_BACKLINKS = "Webapp displays the view /verdicts/<verdict_id>/backlinks"


class Feature(ApiHandler,
              db.Model):

    description = Column(String(300), nullable=False)

    isActive = Column(Boolean(),
                      default=True,
                      nullable=False,
                      server_default=expression.true())

    name = Column(Enum(FeatureName),
                  nullable=False,
                  unique=True)

    __as_dict_includes__ = [
        "nameKey"
    ]

    @property
    def nameKey(self):
        return str(self.name).replace('FeatureName.', '')
