package vulnmodel

import "time"

type Source struct {
	ID          uint64    `gorm:"primaryKey" json:"id"`
	Name        string    `gorm:"size:120;uniqueIndex" json:"name"`
	Label       string    `gorm:"size:120" json:"label"`
	Description string    `gorm:"size:255" json:"description"`
	IsSystem    bool      `gorm:"default:false" json:"is_system"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

func (Source) TableName() string {
	return "vulnerability_sources"
}
