Skip to content

Commit

Permalink
Add 피드 선호도 테이블 추가 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ops-jaeha committed Oct 20, 2022
1 parent fdf122e commit 477a63e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions recommender_system/core/models/feed_score.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Import Library
from pydantic import BaseModel
from sqlalchemy import Column, INT
from core.models.user import User
from core.models.feed import Feed
from core.models import Score


class FeedScore(BaseModel):
__tablename__ = "feed_score"

"""
@:param
user_id : 유저 아이디
feed_id : 피드 아이디
stay_time : 머문 시간
score : 점수
"""
user_id: Column(User.nick_name)
feed_id: Column(Feed.id)
stay_time: Column(INT, default=0)
score: Score

0 comments on commit 477a63e

Please sign in to comment.