#!/usr/bin/env python
# -*- coding: utf-8 -*-

# @File  : nova_flavor_extra_spec_table.py
# @Author: gaofzhan
# @Email: gaofeng.a.zhang@ericssoin.com
# @Date  : 2020/12/3 11:22
# @Desc  :  nova flavor-list --extra-specs

from sqlalchemy import Column, String, Integer
from backend.Model.connection import MyBase


class NovaFlavorExtraSpecModel(MyBase):
    __tablename__ = 'nova_flavor_extra_spec_table'

    id = Column(String(50), primary_key=True)
    item_id = Column(String(50), )
    extra_specs = Column(String(50), )
    dc_id = Column(String(50), )
    timestamp = Column(Integer(), nullable=False)

    def __init__(self, _id, item_id, extra_specs, dc_id, timestamp):
        self.id = _id
        self.item_id = item_id
        self.extra_specs = extra_specs
        self.dc_id = dc_id
        self.timestamp = timestamp
