From b2c298ec686f5f868a8e2bb2cbef40c2f1885232 Mon Sep 17 00:00:00 2001 From: Adrian Gruntkowski Date: Fri, 27 Oct 2023 11:16:29 +0200 Subject: [PATCH] Add `SitePin` schema --- lib/plausible/site/site_pin.ex | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lib/plausible/site/site_pin.ex diff --git a/lib/plausible/site/site_pin.ex b/lib/plausible/site/site_pin.ex new file mode 100644 index 000000000..6fc186440 --- /dev/null +++ b/lib/plausible/site/site_pin.ex @@ -0,0 +1,16 @@ +defmodule Plausible.Site.SitePin do + @moduledoc """ + Site pin schema + """ + + use Ecto.Schema + + @type t() :: %__MODULE__{} + + schema "site_pins" do + belongs_to :user, Plausible.Auth.User + belongs_to :site, Plausible.Site + + timestamps() + end +end