TP-55555 | crud ingestor

This commit is contained in:
varnit-goyal_navi
2024-07-23 17:55:23 +05:30
parent 9899cccd8e
commit 80fe136a42
11 changed files with 133 additions and 7 deletions

9
models/db/Release.go Normal file
View File

@@ -0,0 +1,9 @@
package db
import "gorm.io/gorm"
type Release struct {
gorm.Model
ProductReferenceId string `gorm:"primaryKey"`
ReleaseVersion string `gorm:"column:name"`
}

9
models/db/SourceMap.go Normal file
View File

@@ -0,0 +1,9 @@
package db
import "gorm.io/gorm"
type SourceMap struct {
gorm.Model
ReleaseReferenceId string `gorm:"primaryKey"`
SourceMapZipUrl string `gorm:"column:name"`
}

9
models/db/product.go Normal file
View File

@@ -0,0 +1,9 @@
package db
import "gorm.io/gorm"
type Product struct {
gorm.Model
ProductReferenceId string `gorm:"primaryKey"`
Name string `gorm:"column:name"`
}

10
models/db/roles.go Normal file
View File

@@ -0,0 +1,10 @@
package db
import "gorm.io/gorm"
type Roles struct {
gorm.Model
ProductReferenceId string `gorm:"primaryKey"`
Role string `gorm:"column:name"`
}