user model upgrade, rating, notificaiton
This commit is contained in:
10
orm/rating.py
Normal file
10
orm/rating.py
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
from sqlalchemy import Column, Integer, String, ForeignKey
|
||||
from orm.base import Base
|
||||
|
||||
class Rating(Base):
|
||||
__tablename__ = 'rating'
|
||||
|
||||
id: int = Column(Integer, primary_key = True)
|
||||
createdBy: int = Column(ForeignKey("user.id"), primary_key = True)
|
||||
value: int = Column(Integer, nullable=False)
|
Reference in New Issue
Block a user