package common

import (
	"github.com/fiskerinc/cloud-services/pkg/common/dbbasemodel"
)

type SupplierSigningCert struct {
	Supplier             string    `json:"suppler" pg:",pk" validate:"required,max=1000"`
	KeyCert              string    `json:"key_cert" pg:",pk" validate:"required,oneof=sbc_key_4096 verified_rsa4096_key sbc_root_key"`
	PublicCert           BinaryHex `json:"public_cert" swaggertype:"string" format:"hex" example:"9a1a6949d7f8a511df6e2e2771e444dbd6de97e7d98bdecbb5adc4b8965ce3bef353f523dbea123d7882dc043d415cda02810bad1b6f1b8c6202234a424b7d5b" validate:"required"`
	PrivateCert          BinaryHex `json:"priv_cert" pg:"-" swaggertype:"string" format:"hex" example:"9a1a6949d7f8a511df6e2e2771e444dbd6de97e7d98bdecbb5adc4b8965ce3bef353f523dbea123d7882dc043d415cda02810bad1b6f1b8c6202234a424b7d5b" validate:"required"`
	PrivateCertEncrypted BinaryHex `json:"_" pg:"private_cert_encrypted" swaggertype:"string" format:"hex" example:"9a1a6949d7f8a511df6e2e2771e444dbd6de97e7d98bdecbb5adc4b8965ce3bef353f523dbea123d7882dc043d415cda02810bad1b6f1b8c6202234a424b7d5b" validate:"required"`
	dbbasemodel.DBModelBase
}
