Skip to content

Commit

Permalink
Feat: Star List
Browse files Browse the repository at this point in the history
  • Loading branch information
hiifong committed Jan 15, 2025
1 parent cbf933e commit 85f3da9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions models/repo/star_list.go
Original file line number Diff line number Diff line change
@@ -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))
}

0 comments on commit 85f3da9

Please sign in to comment.