From fd49b697997a6a55a9adf60d2b9be71dea6c3dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Bouzour=C3=A8ne?= Date: Mon, 30 Dec 2024 14:46:22 +0100 Subject: [PATCH] Add shortname in sections model --- models/sections.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/sections.go b/models/sections.go index 9ff7be3..9d7453e 100644 --- a/models/sections.go +++ b/models/sections.go @@ -4,12 +4,14 @@ import "gorm.io/gorm" type ParentSection struct { gorm.Model - Name string + Name string + ShortName string } type Section struct { gorm.Model Name string + ShortName string ParentSectionID uint ParentSection ParentSection }