mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-01 20:41:28 +02:00
added comments re: ordering of fields in intermediate DTOs
Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
@@ -14,6 +14,11 @@ import (
|
||||
|
||||
var ErrDnsUnsupportedRecordType = errors.New("unsupported record type")
|
||||
|
||||
// The order of fields in these structs is important.
|
||||
// Mapping of results of sqlite queries relies on the order
|
||||
// of the fields in these structs, when a query or a struct changes,
|
||||
// corresponding changes must be made to its counterpart.
|
||||
|
||||
type Account struct {
|
||||
PeerLoginExpirationEnabled sql.NullBool
|
||||
PeerLoginExpiration sql.NullInt64
|
||||
|
||||
Reference in New Issue
Block a user