예제 #1
0
class Klas(db.Entity):
    id = PrimaryKey(int, auto=True)
    studying = Optional('Studying')
    number = Optional(int)
    date_set = Required(datetime)
    letter = Required(str)
    direction = Required('Direction')
    syllabus = Required('Syllabus')
    students = []
예제 #2
0
class Studying(db.Entity):
    id = PrimaryKey(int, auto=True)
    hour = Optional(int)
    klas = Optional('Klas')
    syllabus = Optional('Syllabus')
    subject = Optional('Subject')
    teacher = Optional('Teacher')
    subtheme = Optional('Subtheme')
    sub_theme = []
예제 #3
0
class Subtheme(db.Entity):
    id = PrimaryKey(int, auto=True)
    studying = Optional('Studying')
    topic = Optional('Topic')
예제 #4
0
class Result(db.Entity):
    id = PrimaryKey(int, auto=True)
    student = Optional('Student')
    mark = Required(int)
    datemark = Optional(datetime.datetime)
    topic = Optional('Topic')
예제 #5
0
class Student(Human):
    id = PrimaryKey(int, auto=True)
    result = Optional('Result')
    date = Required(datetime)
예제 #6
0
class Topic(db.Entity):
    id = PrimaryKey(int, auto=True)
    result = Optional('Result')
    subtheme = Optional('Subtheme')
    name_topic = Required(str)
예제 #7
0
class Syllabus(db.Entity):
    id = PrimaryKey(int, auto=True)
    studying = Optional('Studying')
    klas = Optional('Klas')
    start = Required(str)
    finish = Required(str)
예제 #8
0
class Teacher(Human):
    id = PrimaryKey(int, auto=True)
    subject = Optional('Subject')
    studying = Optional('Studying')
예제 #9
0
class Subject(db.Entity):
    id = PrimaryKey(int, auto=True)
    item_name = Required(str)
    studying = Optional('Studying')
    teacher = Optional('Teacher')