package models // //ModelCoreProcess - Generated Table for Schema core // type ModelCoreProcess struct { // Completedate types.CustomDate `json:"completedate" gorm:"Column:completedate;type:date;"` // Completetime types.CustomIntTime `json:"completetime" gorm:"Column:completetime;type:integer;"` // Description string `json:"description" gorm:"Column:description;type:citext;"` // GUID types.NullableUUID `json:"guid" gorm:"Column:guid;type:uuid;default:newid();"` // Ridcompleteuser types.ZNullInt32 `json:"rid_completeuser" gorm:"Column:rid_completeuser;type:integer;"` // Ridhub types.ZNullInt32 `json:"rid_hub" gorm:"Column:rid_hub;type:integer;"` // Ridmasterprocess types.ZNullInt32 `json:"rid_masterprocess" gorm:"Column:rid_masterprocess;type:integer;"` // Ridprocess int32 `json:"rid_process" gorm:"Column:rid_process;type:integer;primaryKey;default:nextval('core.identity_process_rid_process'::regclass);"` // Status string `json:"status" gorm:"Column:status;type:citext;"` // Updatecnt int64 `json:"updatecnt" gorm:"Column:updatecnt;type:integer;default:0;"` // HUB *ModelCoreHub `json:"HUB,omitempty" gorm:"references:rid_hub;foreignKey:rid_hub;"` // MPR *ModelCoreMasterprocess `json:"MPR,omitempty" gorm:"references:rid_masterprocess;foreignKey:rid_masterprocess;"` // TAS []*ModelCoreTasklist `json:"TAS,omitempty" gorm:"references:rid_process;foreignKey:rid_process;opt_c"` // db.DBAdhocBuffer `json:",omitempty"` // db.DBGetIDInterface `json:",omitempty" gorm:"-"` // types.SQLTypable `json:",omitempty" gorm:"-"` // } // // TableName - Returns the table name for the object. // func (m ModelCoreProcess) TableName() string { // return "core.process" // } // // TableName - Returns the table name for the object. // func (m ModelCoreProcess) TableNameOnly() string { // return "process" // } // // SchemaName - Returns the schema name for the object. // func (m ModelCoreProcess) SchemaName() string { // return "core" // } // // GetID - ID interface // func (m ModelCoreProcess) GetID() int64 { // return int64(m.Ridprocess) // } // // GetIDStr - ID interface // func (m ModelCoreProcess) GetIDStr() string { // return fmt.Sprintf("%d", m.Ridprocess) // } // // SetID - ID interface // func (m ModelCoreProcess) SetID(newid int64) { // m.UpdateID(newid) // } // func (m *ModelCoreProcess) UpdateID(newid int64) { // m.Ridprocess = int32(newid) // } // // GetIDName - ID interface // func (m ModelCoreProcess) GetIDName() string { // return "rid_process" // } // // GetPrefix - Returns a table prefix // func (m ModelCoreProcess) GetPrefix() string { // return "PRO" // } // // GetRowNumber - Returns the row number of the record // func (m ModelCoreProcess) GetRowNumber() int64 { // return m.RowNumber // } // // SetRowNumber - Set the row number of a record // func (m *ModelCoreProcess) SetRowNumber(num int64) { // m.RowNumber = num // }