
Story: 2008529 Task: 41688 Signed-off-by: Bin Yang <bin.yang@windriver.com> Change-Id: Ib276520605cc624a9976f804a1721ba2c5909403
18 lines
581 B
Python
18 lines
581 B
Python
from sqlalchemy import Float, Integer, ForeignKey, String, Column
|
|
|
|
from notificationclientsdk.model.orm.base import OrmBase
|
|
|
|
class Subscription(OrmBase):
|
|
__tablename__ = 'subscription'
|
|
SubscriptionId = Column(String(128), primary_key=True)
|
|
UriLocation = Column(String(512))
|
|
ResourceType = Column(String(64))
|
|
EndpointUri = Column(String(512))
|
|
Status = Column(Integer)
|
|
CreateTime = Column(Float)
|
|
LastUpdateTime = Column(Float)
|
|
ResourceQualifierJson = Column(String)
|
|
|
|
def create_tables(orm_engine):
|
|
Subscription.metadata.create_all(orm_engine)
|