Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -27,6 +27,7 @@ class Mentor(Base):
|
|
27 |
|
28 |
id = Column(Integer, primary_key=True)
|
29 |
mentor_name = Column(String)
|
|
|
30 |
profile_photo = Column(LargeBinary)
|
31 |
description = Column(String)
|
32 |
highest_degree = Column(String)
|
@@ -40,6 +41,9 @@ class Mentor(Base):
|
|
40 |
|
41 |
stream = relationship("Stream", backref="mentors")
|
42 |
|
|
|
|
|
|
|
43 |
engine = create_engine(connection_string)
|
44 |
Session = sessionmaker(bind=engine)
|
45 |
|
|
|
27 |
|
28 |
id = Column(Integer, primary_key=True)
|
29 |
mentor_name = Column(String)
|
30 |
+
username = Column(String, unique=True)
|
31 |
profile_photo = Column(LargeBinary)
|
32 |
description = Column(String)
|
33 |
highest_degree = Column(String)
|
|
|
41 |
|
42 |
stream = relationship("Stream", backref="mentors")
|
43 |
|
44 |
+
|
45 |
+
stream = relationship("Stream", backref="mentors")
|
46 |
+
|
47 |
engine = create_engine(connection_string)
|
48 |
Session = sessionmaker(bind=engine)
|
49 |
|