dont use uuid

This commit is contained in:
sentriz
2019-03-30 22:28:17 +00:00
parent e9c0f09d0c
commit 5607db787f
5 changed files with 25 additions and 18 deletions

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ package model
// Artist represents the artists table
type Artist struct {
BaseWithUUID
Base
Albums []Album
Name string `gorm:"unique;n"`
Name string `gorm:"not null;unique_index"`
}