<p><b>@mmd-osm</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2390#discussion_r334287569">db/structure.sql</a>:</p>
<pre style='color:#555'>> @@ -684,6 +643,107 @@ CREATE TABLE public.diary_entry_subscriptions (
 );
 
 
+--
+-- Name: event_attendances; Type: TABLE; Schema: public; Owner: -
+--
+
+CREATE TABLE public.event_attendances (
+    id bigint NOT NULL,
+    user_id integer,
</pre>
<p>I'm somehow missing a FOREIGN KEY relationship in the code, e.g. <code>FOREIGN KEY (user_id) REFERENCES users(id)</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2390?email_source=notifications&email_token=AAK2OLM7UZQ2ACOH3TKS77TQONLTBA5CNFSM4JAHYW42YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHY4PJY#pullrequestreview-301057959">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOSOZFL6LCHXH6LNMDQONLTBANCNFSM4JAHYW4Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLO7NWVXUIGXAU7L4GDQONLTBA5CNFSM4JAHYW42YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHY4PJY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2390?email_source=notifications\u0026email_token=AAK2OLM7UZQ2ACOH3TKS77TQONLTBA5CNFSM4JAHYW42YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHY4PJY#pullrequestreview-301057959",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2390?email_source=notifications\u0026email_token=AAK2OLM7UZQ2ACOH3TKS77TQONLTBA5CNFSM4JAHYW42YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCHY4PJY#pullrequestreview-301057959",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>