|
4 | 4 | package v1_23 //nolint
|
5 | 5 |
|
6 | 6 | import (
|
7 |
| - issues_model "code.gitea.io/gitea/models/issues" |
8 |
| - repo_model "code.gitea.io/gitea/models/repo" |
9 |
| - user_model "code.gitea.io/gitea/models/user" |
10 | 7 | "code.gitea.io/gitea/modules/timeutil"
|
11 | 8 |
|
12 | 9 | "xorm.io/xorm"
|
13 | 10 | "xorm.io/xorm/schemas"
|
14 | 11 | )
|
15 | 12 |
|
16 |
| -type ( |
17 |
| - // NotificationStatus is the status of the notification (read or unread) |
18 |
| - NotificationStatus uint8 |
19 |
| - // NotificationSource is the source of the notification (issue, PR, commit, etc) |
20 |
| - NotificationSource uint8 |
21 |
| -) |
22 |
| - |
23 | 13 | type improveNotificationTableIndicesAction struct {
|
24 | 14 | ID int64 `xorm:"pk autoincr"`
|
25 | 15 | UserID int64 `xorm:"INDEX NOT NULL"`
|
26 | 16 | RepoID int64 `xorm:"INDEX NOT NULL"`
|
27 | 17 |
|
28 |
| - Status NotificationStatus `xorm:"SMALLINT INDEX NOT NULL"` |
29 |
| - Source NotificationSource `xorm:"SMALLINT INDEX NOT NULL"` |
| 18 | + Status uint8 `xorm:"SMALLINT INDEX NOT NULL"` |
| 19 | + Source uint8 `xorm:"SMALLINT INDEX NOT NULL"` |
30 | 20 |
|
31 | 21 | IssueID int64 `xorm:"INDEX NOT NULL"`
|
32 | 22 | CommitID string `xorm:"INDEX"`
|
33 | 23 | CommentID int64
|
34 | 24 |
|
35 | 25 | UpdatedBy int64 `xorm:"INDEX NOT NULL"`
|
36 | 26 |
|
37 |
| - Issue *issues_model.Issue `xorm:"-"` |
38 |
| - Repository *repo_model.Repository `xorm:"-"` |
39 |
| - Comment *issues_model.Comment `xorm:"-"` |
40 |
| - User *user_model.User `xorm:"-"` |
41 |
| - |
42 | 27 | CreatedUnix timeutil.TimeStamp `xorm:"created INDEX NOT NULL"`
|
43 | 28 | UpdatedUnix timeutil.TimeStamp `xorm:"updated INDEX NOT NULL"`
|
44 | 29 | }
|
|
0 commit comments