mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-31 16:55:29 +02:00
17 lines
425 B
Elixir
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
|