Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/f/l/flamejam-HEAD/flamejam/models/user.py   flamejam(Download)
    is_deleted = db.Column(db.Boolean, default = False)
    registered = db.Column(db.DateTime)
    ratings = db.relationship('Rating', backref='user', lazy = "dynamic")
    comments = db.relationship('Comment', backref='user', lazy = "dynamic")
    invitations = db.relationship("Invitation", backref = "user", lazy = "dynamic")
    participations = db.relationship("Participation", backref = db.backref("user", lazy="joined"), lazy = "subquery")

src/f/l/flamejam-HEAD/flamejam/models/game.py   flamejam(Download)
    jam_id = db.Column(db.Integer, db.ForeignKey('jam.id'))
    team_id = db.Column(db.Integer, db.ForeignKey('team.id'))
    ratings = db.relationship('Rating', backref = 'game', lazy = "subquery")
    comments = db.relationship('Comment', backref='game', lazy = "subquery")
    packages = db.relationship('GamePackage', backref='game', lazy = "subquery")
    screenshots = db.relationship('GameScreenshot', backref='game', lazy = "subquery")

src/f/l/flamejam-HEAD/flamejam/models/team.py   flamejam(Download)
    irc = db.Column(db.String(128))
 
    participations = db.relationship("Participation", backref = "team", lazy = "subquery")
    invitations = db.relationship("Invitation", backref = "team", lazy = "subquery")
    games = db.relationship("Game", backref = "team", lazy = "subquery")

src/f/l/flamejam-HEAD/flamejam/models/jam.py   flamejam(Download)
    start_time = db.Column(db.DateTime) # The jam starts at this moment
    team_limit = db.Column(db.Integer) # 0 = no limit
    games = db.relationship('Game', backref="jam", lazy = "subquery")
    participations = db.relationship("Participation", backref = "jam", lazy = "subquery")
    teams = db.relationship("Team", backref = "jam", lazy = "subquery")