wip
This commit is contained in:
+12
-1
@@ -1,4 +1,4 @@
|
||||
from sqlalchemy import JSON, Column, Integer, String
|
||||
from sqlalchemy import JSON, Boolean, Column, Integer, String
|
||||
from .database import Base
|
||||
|
||||
|
||||
@@ -9,3 +9,14 @@ class Item(Base):
|
||||
name = Column(String, index=True)
|
||||
description = Column(String, nullable=True)
|
||||
body = Column(JSON, nullable=False)
|
||||
|
||||
|
||||
class User(Base):
|
||||
__tablename__ = "users"
|
||||
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
username = Column(String, unique=True, nullable=False, index=True)
|
||||
email = Column(String, unique=True, nullable=False, index=True)
|
||||
hashed_password = Column(String, nullable=False)
|
||||
permissions = Column(JSON, nullable=False)
|
||||
subscriber = Column(Boolean, nullable=False)
|
||||
|
||||
Reference in New Issue
Block a user