philomena/lib/philomena/notifications/gallery_image_notification.ex
2024-07-30 12:35:47 -04:00

17 lines
425 B
Elixir

defmodule Philomena.Notifications.GalleryImageNotification do
use Ecto.Schema
alias Philomena.Users.User
alias Philomena.Galleries.Gallery
@primary_key false
schema "gallery_image_notifications" do
belongs_to :user, User, primary_key: true
belongs_to :gallery, Gallery, primary_key: true
field :read, :boolean, default: false
timestamps(inserted_at: :created_at, type: :utc_datetime)
end
end