@ -19,7 +19,6 @@
import uuid
from oslo_db.sqlalchemy import models
import six
import sqlalchemy as sa
from sqlalchemy import orm
from sqlalchemy.ext.declarative import declarative_base
@ -151,7 +150,7 @@ class PubKey(BASE, RefStackBase): # pragma: no cover
__tablename__ = ' pubkeys '
id = sa . Column ( sa . String ( 36 ) , primary_key = True ,
default = lambda : six . text_type ( uuid . uuid4 ( ) ) )
default = lambda : str ( uuid . uuid4 ( ) ) )
openid = sa . Column ( sa . String ( 128 ) , sa . ForeignKey ( ' user.openid ' ) ,
nullable = False , unique = True , index = True )
format = sa . Column ( sa . String ( 24 ) , nullable = False )
@ -171,7 +170,7 @@ class Group(BASE, RefStackBase): # pragma: no cover
__tablename__ = ' group '
id = sa . Column ( sa . String ( 36 ) , primary_key = True ,
default = lambda : six . text_type ( uuid . uuid4 ( ) ) )
default = lambda : str ( uuid . uuid4 ( ) ) )
name = sa . Column ( sa . String ( 80 ) , nullable = False )
description = sa . Column ( sa . Text ( ) )
@ -205,7 +204,7 @@ class Organization(BASE, RefStackBase): # pragma: no cover
__tablename__ = ' organization '
id = sa . Column ( sa . String ( 36 ) , primary_key = True ,
default = lambda : six . text_type ( uuid . uuid4 ( ) ) )
default = lambda : str ( uuid . uuid4 ( ) ) )
type = sa . Column ( sa . Integer , nullable = False )
name = sa . Column ( sa . String ( 80 ) , nullable = False )
description = sa . Column ( sa . Text ( ) )
@ -228,7 +227,7 @@ class Product(BASE, RefStackBase): # pragma: no cover
__tablename__ = ' product '
id = sa . Column ( sa . String ( 36 ) , primary_key = True ,
default = lambda : six . text_type ( uuid . uuid4 ( ) ) )
default = lambda : str ( uuid . uuid4 ( ) ) )
name = sa . Column ( sa . String ( 80 ) , nullable = False )
description = sa . Column ( sa . Text ( ) )
organization_id = sa . Column ( sa . String ( 36 ) ,
@ -256,7 +255,7 @@ class ProductVersion(BASE, RefStackBase):
)
id = sa . Column ( sa . String ( 36 ) , primary_key = True ,
default = lambda : six . text_type ( uuid . uuid4 ( ) ) )
default = lambda : str ( uuid . uuid4 ( ) ) )
product_id = sa . Column ( sa . String ( 36 ) , sa . ForeignKey ( ' product.id ' ) ,
index = True , nullable = False , unique = False )
version = sa . Column ( sa . String ( length = 36 ) , nullable = True )