Skip to content

Commit 85f3da9

Browse files
committed
Feat: Star List
1 parent cbf933e commit 85f3da9

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

models/repo/star_list.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright 2025 The Gitea Authors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
4+
package repo
5+
6+
import (
7+
"code.gitea.io/gitea/models/db"
8+
"code.gitea.io/gitea/modules/timeutil"
9+
)
10+
11+
// StarList ...
12+
type StarList struct {
13+
ID int64 `xorm:"pk autoincr"`
14+
UID int64 `xorm:INDEX uid`
15+
SID int64 `xorm:INDEX sid`
16+
Name string
17+
Desc string
18+
19+
CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
20+
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
21+
}
22+
23+
func init() {
24+
db.RegisterModel(new(StarList))
25+
}

0 commit comments

Comments
 (0)