package payment

import "time"

const integrationKindPayment = "payment"

type integrationConfigPO struct {
	ID        uint `gorm:"primaryKey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	Kind      string `gorm:"size:32;not null;uniqueIndex:idx_integration_kind_provider"`
	Provider  string `gorm:"size:64;not null;uniqueIndex:idx_integration_kind_provider"`
	Enabled   bool   `gorm:"not null;default:false;index"`
	Config    string `gorm:"type:text;not null"`
}

func (integrationConfigPO) TableName() string { return "sys_integration_configs" }
