mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-12 17:14:22 +01:00
17 lines
412 B
Elixir
17 lines
412 B
Elixir
defmodule Philomena.Notifications.ForumTopicNotification do
|
|
use Ecto.Schema
|
|
|
|
alias Philomena.Users.User
|
|
alias Philomena.Topics.Topic
|
|
|
|
@primary_key false
|
|
|
|
schema "forum_topic_notifications" do
|
|
belongs_to :user, User, primary_key: true
|
|
belongs_to :topic, Topic, primary_key: true
|
|
|
|
field :read, :boolean, default: false
|
|
|
|
timestamps(inserted_at: :created_at, type: :utc_datetime)
|
|
end
|
|
end
|