chore: build
ci-api / test (push) Failing after 8m7s
ci-web / test (push) Failing after 5m5s

This commit is contained in:
Xor290
2026-09-20 12:18:33 +02:00
parent 8f4c7fa47a
commit 919c807004
174 changed files with 9669 additions and 1308 deletions
@@ -0,0 +1,29 @@
// Package contactlinks lets the admin publish an arbitrary list of
// communication channels (WhatsApp, Telegram, Signal, Discord, email, ...)
// for customers to reach the shop through. Each entry is a label, a URL,
// and its own style: either a built-in brand icon (IconKey, matched against
// the frontend's curated icon set) or a custom image picked from the media
// library (IconMediaID), plus a color -- so no per-app integration is
// needed to add a new one.
package contactlinks
import (
"time"
"github.com/google/uuid"
)
type ContactLink struct {
ID uuid.UUID `gorm:"type:uuid;primaryKey"`
Label string `gorm:"not null"`
URL string `gorm:"not null"`
IconKey string `gorm:"not null;default:''"`
IconMediaID *uuid.UUID `gorm:"type:uuid"`
Color string `gorm:"not null;default:''"`
Position int `gorm:"not null;default:0"`
IsActive bool `gorm:"not null;default:true"`
CreatedAt time.Time
UpdatedAt time.Time
}
func (ContactLink) TableName() string { return "contact_links" }