package model

import "time"

type SystemConfig struct {
	ID          uint64    `gorm:"primaryKey" json:"id"`
	Key         string    `gorm:"column:key;size:128;not null;uniqueIndex" json:"key"`
	Value       string    `gorm:"column:value;type:text;not null" json:"value"`
	Description string    `gorm:"size:255;not null;default:''" json:"description"`
	UpdatedBy   *uint64   `json:"updated_by"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
}

func (SystemConfig) TableName() string {
	return "system_configs"
}
