Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/31#discussion_r90504471
  
    --- Diff: aria/storage/models.py ---
    @@ -60,353 +73,612 @@
     )
     
     # todo: sort this, maybe move from mgr or move from aria???
    -ACTION_TYPES = ()
    -ENTITY_TYPES = ()
    +# TODO: this must change
    +ACTION_TYPES = ('a')
    +ENTITY_TYPES = ('b')
    +
    +
    +def uuid_generator():
    +    """
    +    wrapper function which generates ids
    +    """
    +    return str(uuid4())
     
     
    -class Blueprint(Model):
    +class Blueprint(SQLModelBase):
         """
    -    A Model which represents a blueprint
    +    Blueprint model representation.
         """
    -    plan = Field(type=dict)
    -    id = Field(type=basestring, default=uuid_generator)
    -    description = Field(type=(basestring, NoneType))
    -    created_at = Field(type=datetime)
    -    updated_at = Field(type=datetime)
    -    main_file_name = Field(type=basestring)
    +    __tablename__ = 'blueprints'
    +
    +    storage_id = Column(Integer, primary_key=True, autoincrement=True)
    +    id = Column(Text, index=True)
     
    +    created_at = Column(DateTime, nullable=False, index=True)
    --- End diff --
    
    remove index


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to