class Assessment(Model):
    atitle = TextField()
    adescription = TextField()
    questions = ArrayField()
    scores = ArrayField()

    class Meta:
        table = 'assessments'
Exemple #2
0
class User(Model):
    email = TextField()
    fullname = TextField()
    hash = TextField()
    is_root = BooleanField()

    class Meta:
        table = 'users'
class Grade(Model):
    student = TextField()
    reportid = IntegerField()
    points = ArrayField()
    feedback = ArrayField()
    needsgrading = TextField()

    class Meta:
        table = 'grades'
Exemple #4
0
class Scenario(Model):
    name = TextField()
    description = TextField()
    owner_id = IntegerField()
    is_public = BooleanField()
    sg_rules = ArrayField() # ALTER TABLE public.scenarios ADD sg_rules TEXT[] DEFAULT array[]::TEXT[];
    topo = JsonBField()

    class Meta:
        table = 'scenarios'
Exemple #5
0
class Lab(Model):
    name = TextField()
    description = TextField()
    owner_id = IntegerField()
    scenario_id = IntegerField()
    status = EnumField()
    error_msgs = ArrayField()

    class Meta:
        table = 'labs'
class Question(Model):
    qkind = TextField()
    qtitle = TextField()
    qtext = TextField()
    answers = ArrayField()
    correct = ArrayField()
    feedback = TextField()

    class Meta:
        table = 'questions'
Exemple #7
0
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 Report(Model):
    student = TextField()
    labname = TextField()
    assessmentid = TextField()
    answers = ArrayField()
    starttime = IntegerField()
    endtime = IntegerField()
    pre_post = IntegerField()
    attempt_num = IntegerField()

    class Meta:
        table = 'reports'
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'
Exemple #10
0
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'
Exemple #11
0
class Slice(Model):
    lab_id = IntegerField()
    user_id = IntegerField()
    status = EnumField()
    name = TextField()
    cloud_attrs = JsonBField()

    class Meta:
        table = 'slices'