<reponame>georgem20-meet/y2s19-a3-final
from sqlalchemy import Column, Integer, String, Boolean
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, sessionmaker
from sqlalchemy import create_engine
from passlib.apps import custom_app_context as pwd_security
Base= declarative_base()

class User(Base):
	__tablename__ = 'users'
	user_id = Column (Integer, primary_key= True)
	username = Column(String)
	password_hash = Column(String)

	def hash_password(self, password):
		self.password_hash= <PASSWORD>_<PASSWORD>.encrypt(password)
	def verify_password(self, password):
		return pwd_security.verify(password, self.password_hash)

#rayan was here

from sqlalchemy import Column, Integer, String, Boolean
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, sessionmaker
from sqlalchemy import create_engine
from passlib.apps import custom_app_context as pwd_security
Base= declarative_base()

class User(Base):
	__tablename__ = 'users'
	user_id = Column (Integer, primary_key= True)
	username = Column(String)
	password_hash = Column(String)

	def hash_password(self, password):
		self.password_hash= <PASSWORD>_<PASSWORD>.encrypt(password)
	def verify_password(self, password):
		return pwd_security.verify(password, self.password_hash)

#rayan was here
#rayan was here