mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			421 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			421 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package entity
 | 
						|
 | 
						|
import (
 | 
						|
	"mayfly-go/pkg/model"
 | 
						|
)
 | 
						|
 | 
						|
// DbSql 用户保存的数据库sql
 | 
						|
type DbSql struct {
 | 
						|
	model.Model `orm:"-"`
 | 
						|
 | 
						|
	DbId uint64 `json:"dbId" gorm:"not null;"`
 | 
						|
	Db   string `json:"db" gorm:"size:100;not null;"`
 | 
						|
	Type int    `json:"type" gorm:"not null;"` // 类型
 | 
						|
	Sql  string `json:"sql" gorm:"type:longtext;comment:sql语句"`
 | 
						|
	Name string `json:"name" gorm:"size:255;not null;comment:sql模板名"`
 | 
						|
}
 |