13 lines
		
	
	
		
			208 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			208 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package models
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "time"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								type Migration struct {
							 | 
						||
| 
								 | 
							
									Version   string    `gorm:"primaryKey"`
							 | 
						||
| 
								 | 
							
									ApplyTime time.Time `gorm:"autoCreateTime"`
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (Migration) TableName() string {
							 | 
						||
| 
								 | 
							
									return "sys_migration"
							 | 
						||
| 
								 | 
							
								}
							 |