mirror of
				https://github.com/juanfont/headscale.git
				synced 2025-10-31 16:11:03 +01:00 
			
		
		
		
	Require GivenName to be unique
This commit is contained in:
		
							parent
							
								
									9b393eb861
								
							
						
					
					
						commit
						4aae917f74
					
				| @ -51,7 +51,7 @@ type Machine struct { | ||||
| 	// | ||||
| 	// GivenName is the name used in all DNS related | ||||
| 	// parts of headscale. | ||||
| 	GivenName   string | ||||
| 	GivenName   string `gorm:"type:varchar(63);unique_index"` | ||||
| 	NamespaceID uint | ||||
| 	Namespace   Namespace `gorm:"foreignKey:NamespaceID"` | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user