예제 #1
0
파일: __main__.py 프로젝트: Nimor111/101-v5
class User(BaseModel):
    __tablename__ = 'users'

    id_ = PKColumn()
    name = TextColumn(max_length=100)
    age = IntegerColumn(number=20)
예제 #2
0
파일: __main__.py 프로젝트: Nimor111/101-v5
class Student(User):
    __tablename__ = 'students'

    email = TextColumn()
    shirt_size = IntegerColumn(number=1)
예제 #3
0
class Movie(BaseModel):
    __tablename__ = "Movies"

    title = TextColumn()
    year = IntegerColumn()
    budget = IntegerColumn()
예제 #4
0
class Student(User):
    __tablename__ = "Students"

    email = TextColumn()
    shirt_size = IntegerColumn()
예제 #5
0
class User(BaseModel):
    __tablename__ = "Users"

    id = PKColumn()
    name = TextColumn()
    age = IntegerColumn()
예제 #6
0
class Student(User):
    email = TextColumn()
    shirt_size = IntegerColumn(number=1)