model

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseModel

type BaseModel struct {
	ID        int64     `json:"id" gorm:"primary_key"`
	CreatedAt time.Time `json:"createdAt" gorm:"created_at"`
	UpdatedAt time.Time `json:"updatedAt" gorm:"updated_at"`
}

BaseModel contains base fields for all models

type ErdaProject

type ErdaProject struct {
	BaseModel

	Name        string
	DisplayName string
	Desc        string
	// Cluster configuration eg: {"DEV":"terminus-y","TEST":"terminus-y","STAGING":"terminus-y","PROD":"terminus-y"}
	ClusterConfig string
	CpuQuota      float64
	MemQuota      float64
	Creator       string
	OrgID         int64
	Version       string
	// DingTalk Hook
	DDHook     string `gorm:"column:dd_hook"`
	Email      string
	Functions  string
	ActiveTime time.Time
	// Rollback configuration: {"DEV": 1,"TEST": 2,"STAGING": 3,"PROD": 4}
	RollbackConfig string
	// Whether to open the project-level namespace
	EnableNS bool `gorm:"column:enable_ns"`
	// Is it a public project
	IsPublic bool
	// project type
	Type          string
	SoftDeletedAt uint
}

ErdaProject is the model erda_project

func (ErdaProject) TableName

func (ErdaProject) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL