Spaces:
Sleeping
Sleeping
Johnny commited on
Commit ·
8dad2e8
1
Parent(s): e11a248
added email to db schema
Browse files- database.py +2 -1
database.py
CHANGED
|
@@ -11,9 +11,10 @@ SessionLocal = sessionmaker(bind=engine)
|
|
| 11 |
class Candidate(Base):
|
| 12 |
__tablename__ = "candidates"
|
| 13 |
id = Column(Integer, primary_key=True, index=True)
|
| 14 |
-
name = Column(String, index=True)
|
| 15 |
score = Column(Integer)
|
| 16 |
summary = Column(Text)
|
|
|
|
| 17 |
resume_text = Column(Text)
|
| 18 |
pdf_link = Column(String)
|
| 19 |
|
|
|
|
| 11 |
class Candidate(Base):
|
| 12 |
__tablename__ = "candidates"
|
| 13 |
id = Column(Integer, primary_key=True, index=True)
|
| 14 |
+
name = Column(String(255), index=True)
|
| 15 |
score = Column(Integer)
|
| 16 |
summary = Column(Text)
|
| 17 |
+
email = Column(String(255), unique=True, index=True) # Add email to the schema
|
| 18 |
resume_text = Column(Text)
|
| 19 |
pdf_link = Column(String)
|
| 20 |
|