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