class LabRequest(Model): lab_id = IntegerField() user_id = IntegerField() request_type = EnumField() status = EnumField() class Meta: table = 'labrequests'
class CloudConfig(Model): lab_id = IntegerField() provider = EnumField() detail = JsonBField() class Meta: table = 'cloudconfigs'
class Slice(Model): lab_id = IntegerField() user_id = IntegerField() status = EnumField() name = TextField() cloud_attrs = JsonBField() class Meta: table = 'slices'
class Lab(Model): name = TextField() description = TextField() owner_id = IntegerField() scenario_id = IntegerField() status = EnumField() error_msgs = ArrayField() class Meta: table = 'labs'
class NetworkNode(Model): name = TextField() cidr = TextField() status = EnumField() x = IntegerField() y = IntegerField() cloud_attrs = JsonBField() gid = TextField() slice_id = IntegerField() class Meta: table = 'networks'
class Lab(Model): name = TextField() description = TextField() owner_id = IntegerField() scenario_id = IntegerField() status = EnumField() preassessment_id = IntegerField() postassessment_id = IntegerField() allowed_attempts = ArrayField() error_msgs = ArrayField() class Meta: table = 'labs'
class Router(Model): name = TextField() public_ip = TextField() status = EnumField() password = TextField() x = IntegerField() y = IntegerField() gid = TextField() links = ArrayField() cloud_attrs = JsonBField() slice_id = IntegerField() configurations = ArrayField() image = TextField() flavor = JsonBField() class Meta: table = 'routers'