|
|
@@ -1,5 +1,5 @@ |
|
|
|
# PostgreSQL table model for users |
|
|
|
from sqlalchemy import Column, Integer, String, DateTime, ForeignKey |
|
|
|
from sqlalchemy import Column, Integer, String, ForeignKey |
|
|
|
from sqlalchemy.orm import relationship |
|
|
|
from db.base import Base |
|
|
|
|
|
|
@@ -9,7 +9,8 @@ class User(Base): |
|
|
|
Name = Column(String, nullable=False) |
|
|
|
MiddleName = Column(String, nullable=True) |
|
|
|
LastName = Column(String, nullable=False) |
|
|
|
BirthDate = Column(DateTime, nullable=False) |
|
|
|
GovernmentId = Column(String, nullable=False) |
|
|
|
Address = Column(String, nullable=False) |
|
|
|
ContactNumber = Column(String, nullable=False) |
|
|
|
Email = Column(String, nullable=False) |
|
|
|
Role = Column(String, nullable=False) |
|
|
|