forked from edgexfoundry/edgex-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsts.go
34 lines (30 loc) · 825 Bytes
/
consts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// Copyright (C) 2024 IOTech Ltd
//
// SPDX-License-Identifier: Apache-2.0
package postgres
// constants relate to the postgres db schema names
const (
coreDataSchema = "core_data"
)
// constants relate to the postgres db table names
const (
eventTableName = coreDataSchema + ".event"
readingTableName = coreDataSchema + ".reading"
)
// constants relate to the event/reading postgres db table column names
const (
deviceNameCol = "devicename"
resourceNameCol = "resourcename"
profileNameCol = "profilename"
sourceNameCol = "sourcename"
originCol = "origin"
valueTypeCol = "valuetype"
unitsCol = "units"
tagsCol = "tags"
eventIdFKCol = "event_id"
valueCol = "value"
binaryValueCol = "binaryvalue"
mediaTypeCol = "mediatype"
objectValueCol = "objectvalue"
)