From 85f3da9d287a138405493d23251f155684ccedcd Mon Sep 17 00:00:00 2001 From: hiifong Date: Wed, 15 Jan 2025 11:38:33 +0800 Subject: [PATCH] Feat: Star List --- models/repo/star_list.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 models/repo/star_list.go diff --git a/models/repo/star_list.go b/models/repo/star_list.go new file mode 100644 index 0000000000000..89cb7118869f0 --- /dev/null +++ b/models/repo/star_list.go @@ -0,0 +1,25 @@ +// Copyright 2025 The Gitea Authors. All rights reserved. +// SPDX-License-Identifier: MIT + +package repo + +import ( + "code.gitea.io/gitea/models/db" + "code.gitea.io/gitea/modules/timeutil" +) + +// StarList ... +type StarList struct { + ID int64 `xorm:"pk autoincr"` + UID int64 `xorm:INDEX uid` + SID int64 `xorm:INDEX sid` + Name string + Desc string + + CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"` + UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"` +} + +func init() { + db.RegisterModel(new(StarList)) +}