from flock import db

class Event(db.Model):
	
	id = db.Column(db.Integer, primary_key=True)

	def __init__(self):
		pass

from flock import db

class Event(db.Model):
	
	id = db.Column(db.Integer, primary_key=True)
	owner_id = db.Column(db.Integer, foreign_key('user.id'), primary_key=True)

	def __init__(self):
		pass

Add owner as a primary, foreign key
Add owner as a primary, foreign key