16 lines
335 B
Python
16 lines
335 B
Python
from pydantic import UUID4
|
|
from sqlalchemy import Column, String
|
|
|
|
from pillar_tool.db.database import Base
|
|
|
|
|
|
|
|
class User(Base):
|
|
__tablename__ = 'users'
|
|
id = Column(UUID4, primary_key=True)
|
|
username = Column(String, nullable=False)
|
|
pw_hash = Column(String, nullable=False)
|
|
pw_salt = Column(String, nullable=False)
|
|
|
|
|