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

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

src/f/l/Flask-User-HEAD/example_apps/roles_required_app.py   Flask-User(Download)
 
    # Define the User-Roles pivot table
    user_roles = db.Table('user_roles',
        db.Column('id', db.Integer(), primary_key=True),
        db.Column('user_id', db.Integer(), db.ForeignKey('user.id', ondelete='CASCADE')),

src/f/l/flask-admin-HEAD/examples/sqla/simple.py   flask-admin(Download)
 
# Create M2M table
post_tags_table = db.Table('post_tags', db.Model.metadata,
                           db.Column('post_id', db.Integer, db.ForeignKey('post.id')),
                           db.Column('tag_id', db.Integer, db.ForeignKey('tag.id'))

src/f/l/Flask-Admin-1.0.8/examples/sqla/simple.py   Flask-Admin(Download)
 
# Create M2M table
post_tags_table = db.Table('post_tags', db.Model.metadata,
                           db.Column('post_id', db.Integer, db.ForeignKey('post.id')),
                           db.Column('tag_id', db.Integer, db.ForeignKey('tag.id'))

src/f/l/Flask-SuperAdmin-HEAD/examples/sqlalchemy/simple.py   Flask-SuperAdmin(Download)
 
# Create M2M table
post_tags_table = db.Table('post_tags', db.Model.metadata,
                           db.Column('post_id', db.Integer, db.ForeignKey('post.id')),
                           db.Column('tag_id', db.Integer, db.ForeignKey('tag.id'))

src/f/l/flask-security-example-HEAD/app.py   flask-security-example(Download)
 
# Define models
roles_users = db.Table('roles_users',
        db.Column('user_id', db.Integer(), db.ForeignKey('user.id')),
        db.Column('role_id', db.Integer(), db.ForeignKey('role.id')))

src/f/l/flask-dashed-demo-HEAD/app.py   flask-dashed-demo(Download)
 
user_group = db.Table(
    'user_group', db.Model.metadata,
    db.Column('user_id', db.Integer, db.ForeignKey('user.id')),
    db.Column('group_id', db.Integer, db.ForeignKey('group.id'))

src/x/p/XPBoard-HEAD/xp_board/models.py   XPBoard(Download)
 
ReviewRequestToReviewer = db.Table(
    'review_request_to_reviewer',
    db.Model.metadata,
    db.Column('review_request_id', db.Integer, db.ForeignKey("review_request.id")),
 
ReviewRequestToTicket = db.Table(
    'review_request_to_ticket',
    db.Model.metadata,
    db.Column('review_request_id', db.Integer, db.ForeignKey("review_request.id")),

src/w/h/wharf-HEAD/wharf/__init__.py   wharf(Download)
 
# Define models
roles_users = db.Table('roles_users',
        db.Column('user_id', db.Integer(), db.ForeignKey('user.id')),
        db.Column('role_id', db.Integer(), db.ForeignKey('role.id')))

src/s/h/shiva-0.8.0/shiva/models.py   shiva(Download)
 
 
artists = db.Table('albumartists',
    db.Column('artist_pk', db.Integer, db.ForeignKey('artists.pk')),
    db.Column('album_pk', db.Integer, db.ForeignKey('albums.pk'))

src/s/h/shiva-server-HEAD/shiva/models.py   shiva-server(Download)
 
 
artists = db.Table('albumartists',
    db.Column('artist_pk', db.Integer, db.ForeignKey('artists.pk')),
    db.Column('album_pk', db.Integer, db.ForeignKey('albums.pk'))

  1 | 2  Next