Skip to content

Instantly share code, notes, and snippets.

@abhisuri97
Created November 27, 2017 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhisuri97/62267d77c8d912c9f1f0a323b71a4778 to your computer and use it in GitHub Desktop.
Save abhisuri97/62267d77c8d912c9f1f0a323b71a4778 to your computer and use it in GitHub Desktop.
from .. import db
# we are going to put something here later
class Club(db.Model):
__tablename__ = 'clubs'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(1000))
description = db.Column(db.Text)
is_confirmed = db.Column(db.Boolean)
class ClubCategory(db.Model):
__tablename__ = 'club_categories'
id = db.Column(db.Integer, primary_key=True)
category_name = db.Column(db.String(1000))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment