initial settings table.

This commit is contained in:
Jason Kulatunga
2022-06-26 15:30:52 -07:00
parent e9c1de9664
commit 5b2746f389
3 changed files with 39 additions and 3 deletions
+14 -3
View File
@@ -1,5 +1,16 @@
package models
// Temperature Format
// Date Format
// Device History window
import (
"gorm.io/gorm"
)
type Setting struct {
//GORM attributes, see: http://gorm.io/docs/conventions.html
gorm.Model
SettingKeyName string `json:"setting_key_name"`
SettingDataType string `json:"setting_data_type"`
SettingValueNumeric int64 `json:"setting_value_numeric"`
SettingValueString string `json:"setting_value_string"`
}