mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-25 19:26:09 +01:00
64d4de2b66
(cherry picked from commit66afddd511
) (cherry picked from commit19da0dee9d
) (cherry picked from commit0b725af693
)
22 lines
532 B
Go
22 lines
532 B
Go
// Copyright 2023 The Forgejo Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package forgejo_v1_20 //nolint:revive
|
|
|
|
import (
|
|
"code.gitea.io/gitea/modules/timeutil"
|
|
|
|
"xorm.io/xorm"
|
|
)
|
|
|
|
func AddForgejoBlockedUser(x *xorm.Engine) error {
|
|
type ForgejoBlockedUser struct {
|
|
ID int64 `xorm:"pk autoincr"`
|
|
BlockID int64 `xorm:"index"`
|
|
UserID int64 `xorm:"index"`
|
|
CreatedUnix timeutil.TimeStamp `xorm:"created"`
|
|
}
|
|
|
|
return x.Sync(new(ForgejoBlockedUser))
|
|
}
|