mirror of
				https://github.com/cloudreve/cloudreve.git
				synced 2025-11-04 04:47:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			503 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			503 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package model
 | 
						|
 | 
						|
import (
 | 
						|
	"github.com/jinzhu/gorm"
 | 
						|
)
 | 
						|
 | 
						|
// Webdav 应用账户
 | 
						|
type Webdav struct {
 | 
						|
	gorm.Model
 | 
						|
	Name     string // 应用名称
 | 
						|
	Password string `gorm:"unique_index:password_only_on"` // 应用密码
 | 
						|
	UserID   uint   `gorm:"unique_index:password_only_on"` // 用户ID
 | 
						|
	Root     string `gorm:"type:text"`                     // 根目录
 | 
						|
	Readonly bool   `gorm:"type:bool"`                     // 是否只读
 | 
						|
	UseProxy bool   `gorm:"type:bool"`                     // 是否进行反代
 | 
						|
}
 |