25 lines
855 B
Go
25 lines
855 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type CredencialesSAP struct {
|
|
ID int `gorm:"column:id;primaryKey;autoIncrement"`
|
|
SerieSAP string `gorm:"column:serie_sap"`
|
|
CompanyName string `gorm:"column:company_name"`
|
|
BranchID int `gorm:"column:branch_id"`
|
|
CompanyDB string `gorm:"column:company_db"`
|
|
UserName string `gorm:"column:user_name"`
|
|
Password string `gorm:"column:password"` // ⚠️ Considera cifrar si es necesario
|
|
Status string `gorm:"column:status"` // Ej: 'A' activo, 'I' inactivo
|
|
|
|
UserCreated string `gorm:"column:user_created"`
|
|
DateCreated time.Time `gorm:"column:date_created"`
|
|
UserUpdated string `gorm:"column:user_updated"`
|
|
DateUpdated time.Time `gorm:"column:date_updated"`
|
|
EndPoint string `gorm:"column:end_point"`
|
|
}
|
|
|
|
func (CredencialesSAP) TableName() string {
|
|
return "business_units"
|
|
}
|