Add Type to database schema
This commit is contained in:
parent
9cf82d5301
commit
0e081297d0
1
db/db.go
1
db/db.go
|
@ -52,5 +52,6 @@ func Connect() *gorm.DB {
|
|||
gormDB.AutoMigrate(&Debt{})
|
||||
gormDB.AutoMigrate(&Transfer{})
|
||||
gormDB.AutoMigrate(&User{})
|
||||
gormDB.AutoMigrate(&Type{})
|
||||
return newUDB
|
||||
}
|
||||
|
|
10
db/type.go
Normal file
10
db/type.go
Normal file
|
@ -0,0 +1,10 @@
|
|||
package db
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Type struct {
|
||||
gorm.Model
|
||||
Name string
|
||||
Comment string
|
||||
Color string
|
||||
}
|
Loading…
Reference in New Issue
Block a user