TP-55555 | Project handler
This commit is contained in:
@@ -4,6 +4,6 @@ import "gorm.io/gorm"
|
||||
|
||||
type Release struct {
|
||||
gorm.Model
|
||||
ProductReferenceId string `gorm:"primaryKey"`
|
||||
ProjectReferenceId string `gorm:"primaryKey"`
|
||||
ReleaseVersion string `gorm:"column:name"`
|
||||
}
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
package db
|
||||
|
||||
import "gorm.io/gorm"
|
||||
|
||||
type Product struct {
|
||||
gorm.Model
|
||||
ProductReferenceId string `gorm:"primaryKey"`
|
||||
Name string `gorm:"column:name"`
|
||||
}
|
||||
13
models/db/project.go
Normal file
13
models/db/project.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package db
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type Project struct {
|
||||
gorm.Model
|
||||
ProjectReferenceId uuid.UUID `gorm:"primaryKey"`
|
||||
Name string `gorm:"column:name;unique"`
|
||||
Team string
|
||||
}
|
||||
@@ -4,7 +4,6 @@ import "gorm.io/gorm"
|
||||
|
||||
type Roles struct {
|
||||
gorm.Model
|
||||
ProductReferenceId string `gorm:"primaryKey"`
|
||||
ProjectReferenceId string `gorm:"primaryKey"`
|
||||
Role string `gorm:"column:name"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user