
import sqlalchemy as sa

from tacker.openstack.common import uuidutils


class HasTenant(object):
    """Tenant mixin, add to subclasses that have a tenant."""

    # NOTE(jkoelker) tenant_id is just a free form string ;(
    tenant_id = sa.Column(sa.String(255))


class HasId(object):
    """id mixin, add to subclasses that have an id."""

    id = sa.Column(sa.String(36),
                   primary_key=True,
                   default=uuidutils.generate_uuid)


class HasStatusDescription(object):
    """Status with description mixin."""

    status = sa.Column(sa.String(16), nullable=False)
    status_description = sa.Column(sa.String(255))


import sqlalchemy as sa

from tacker.openstack.common import uuidutils


class HasTenant(object):
    """Tenant mixin, add to subclasses that have a tenant."""

    # NOTE(jkoelker) tenant_id is just a free form string ;(
    tenant_id = sa.Column(sa.String(255))


class HasId(object):
    """id mixin, add to subclasses that have an id."""

    id = sa.Column(sa.String(36),
                   primary_key=True,
                   default=uuidutils.generate_uuid)

Remove unused model class from db layer
Remove unused model class from db layer

Change-Id: I42cf91dc3132d0d0f2f509b5350958b7499c68f9

  
  import sqlalchemy as sa
  
  from tacker.openstack.common import uuidutils
  
  
  class HasTenant(object):
      """Tenant mixin, add to subclasses that have a tenant."""
  
      # NOTE(jkoelker) tenant_id is just a free form string ;(
      tenant_id = sa.Column(sa.String(255))
  
  
  class HasId(object):
      """id mixin, add to subclasses that have an id."""
  
      id = sa.Column(sa.String(36),
                     primary_key=True,
                     default=uuidutils.generate_uuid)
  
- 
- class HasStatusDescription(object):
-     """Status with description mixin."""
- 
-     status = sa.Column(sa.String(16), nullable=False)
-     status_description = sa.Column(sa.String(255))
- 
Remove unused model class from db layer
## Code Before:

import sqlalchemy as sa

from tacker.openstack.common import uuidutils


class HasTenant(object):
    """Tenant mixin, add to subclasses that have a tenant."""

    # NOTE(jkoelker) tenant_id is just a free form string ;(
    tenant_id = sa.Column(sa.String(255))


class HasId(object):
    """id mixin, add to subclasses that have an id."""

    id = sa.Column(sa.String(36),
                   primary_key=True,
                   default=uuidutils.generate_uuid)


class HasStatusDescription(object):
    """Status with description mixin."""

    status = sa.Column(sa.String(16), nullable=False)
    status_description = sa.Column(sa.String(255))

## Instruction:
Remove unused model class from db layer
## Code After:

import sqlalchemy as sa

from tacker.openstack.common import uuidutils


class HasTenant(object):
    """Tenant mixin, add to subclasses that have a tenant."""

    # NOTE(jkoelker) tenant_id is just a free form string ;(
    tenant_id = sa.Column(sa.String(255))


class HasId(object):
    """id mixin, add to subclasses that have an id."""

    id = sa.Column(sa.String(36),
                   primary_key=True,
                   default=uuidutils.generate_uuid)
