sqldb: define schemas for all graph node tables

In this commit, the various SQL schemas required to store graph node
related data is defined. Specifically, the following tables are defined:

- nodes
- node_extra_types
- node_features
- node_addresses
This commit is contained in:
Elle Mouton committed 2025-05-27 16:28:37 +02:00
1 parent 93a6ab8759
commit ffbe4f6ffc
5 files changed
+136 -1

No files matched your search

+28
View File
@@ -102,3 +102,31 @@ type MigrationTracker struct {
Version int32
MigrationTime time.Time
}
type Node struct {
ID int64
Version int16
PubKey []byte
Alias sql.NullString
LastUpdate sql.NullInt64
Color sql.NullString
Signature []byte
}
type NodeAddress struct {
NodeID int64
Type int16
Position int32
Address string
}
type NodeExtraType struct {
NodeID int64
Type int64
Value []byte
}
type NodeFeature struct {
NodeID int64
FeatureBit int32
}