From 8510c36ded85740885e67b59ee2ec2360986c0a9 Mon Sep 17 00:00:00 2001 From: Alexander Kavon Date: Tue, 23 Jan 2024 01:40:39 -0500 Subject: new tables: tags, post_tags, generated sqlboiler tags model, updated posts/get template, updated posts table to take nullable description and user_id foreign key --- src/models/boil_table_names.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/models/boil_table_names.go') diff --git a/src/models/boil_table_names.go b/src/models/boil_table_names.go index c88a449..29a98ba 100644 --- a/src/models/boil_table_names.go +++ b/src/models/boil_table_names.go @@ -4,9 +4,13 @@ package models var TableNames = struct { - Posts string - Users string + PostTags string + Posts string + Tags string + Users string }{ - Posts: "posts", - Users: "users", + PostTags: "post_tags", + Posts: "posts", + Tags: "tags", + Users: "users", } -- cgit v1.2.3