mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 00:11:04 +00:00 
			
		
		
		
	- Massive replacement of changing `code.gitea.io/gitea` to `forgejo.org`. - Resolves forgejo/discussions#258 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7337 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Reviewed-by: Beowulf <beowulf@beocode.eu> Reviewed-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			546 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			546 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// Copyright 2024 The Gitea Authors. All rights reserved.
 | 
						|
// SPDX-License-Identifier: MIT
 | 
						|
 | 
						|
package v1_22 //nolint
 | 
						|
 | 
						|
import (
 | 
						|
	"forgejo.org/modules/timeutil"
 | 
						|
 | 
						|
	"xorm.io/xorm"
 | 
						|
)
 | 
						|
 | 
						|
type Blocking struct {
 | 
						|
	ID          int64 `xorm:"pk autoincr"`
 | 
						|
	BlockerID   int64 `xorm:"UNIQUE(block)"`
 | 
						|
	BlockeeID   int64 `xorm:"UNIQUE(block)"`
 | 
						|
	Note        string
 | 
						|
	CreatedUnix timeutil.TimeStamp `xorm:"INDEX created"`
 | 
						|
}
 | 
						|
 | 
						|
func (*Blocking) TableName() string {
 | 
						|
	return "user_blocking"
 | 
						|
}
 | 
						|
 | 
						|
func AddUserBlockingTable(x *xorm.Engine) error {
 | 
						|
	return x.Sync(&Blocking{})
 | 
						|
}
 |