From 1001d8ec05d56a8ac7cb368f6ef4f6ac26906574 Mon Sep 17 00:00:00 2001 From: Milwad Date: Thu, 9 May 2024 14:14:52 +0330 Subject: [PATCH] add `Label` model --- internal/models/models.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/internal/models/models.go b/internal/models/models.go index 3530818..5a8f612 100644 --- a/internal/models/models.go +++ b/internal/models/models.go @@ -13,3 +13,14 @@ type User struct { CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` } + +type Label struct { + ID int `json:"id"` + Title string `json:"title"` + Color string `json:"color"` + UserId int `json:"user_id"` + CreatedAt string `json:"created_at"` + UpdatedAt string `json:"updated_at"` + + User `json:"user"` +}