mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 18:15:37 +01:00
Added password_hash to user table
This commit is contained in:
parent
57a6ec2676
commit
d689fbc453
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
from sqlalchemy import Column, ForeignKey, String, Integer, Table
|
from sqlalchemy import Column, ForeignKey, String, Integer, Table
|
||||||
from sqlalchemy.orm import relationship
|
from sqlalchemy.orm import relationship
|
||||||
|
from sqlalchemy.dialects.sqlite import BLOB
|
||||||
from database import Base
|
from database import Base
|
||||||
from typing import Optional, List
|
from typing import Optional, List
|
||||||
|
|
||||||
|
|
@ -16,6 +17,7 @@ class User(Base):
|
||||||
id = Column(Integer, primary_key=True, index=True)
|
id = Column(Integer, primary_key=True, index=True)
|
||||||
name = Column(String, index=True)
|
name = Column(String, index=True)
|
||||||
email = Column(String, unique=True, index=True)
|
email = Column(String, unique=True, index=True)
|
||||||
|
password_hash = Column(BLOB)
|
||||||
projects = relationship("Project", secondary=project_user, back_populates="users")
|
projects = relationship("Project", secondary=project_user, back_populates="users")
|
||||||
|
|
||||||
class Project(Base):
|
class Project(Base):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue