hosted_code.go 297 B

12345678910111213141516
  1. package models
  2. import (
  3. "gorm.io/gorm"
  4. )
  5. // HostedCode represents a code that can be used to create a hosted project
  6. type HostedCode struct {
  7. gorm.Model
  8. Code string `gorm:"primaryKey" json:"code"`
  9. HostClusterID uint `json:"host_cluster_id"`
  10. HostProjectID uint `json:"host_project_id"`
  11. }