from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import ForeignKey, DateTime, Boolean
from sqlalchemy.orm import relationship, backref
-from sqlalchemy.orm.collections import attribute_mapped_collection
from oslo.config import cfg
availability_zone = Column(String(255), default='cinder')
-class CinderNode(BASE, CinderBase):
- """Represents a running cinder service on a host."""
-
- __tablename__ = 'cinder_nodes'
- id = Column(Integer, primary_key=True)
- service_id = Column(Integer, ForeignKey('services.id'), nullable=True)
-
-
class Volume(BASE, CinderBase):
"""Represents a block storage device that can be attached to a vm."""
__tablename__ = 'volumes'