TABLE config OF Config (
  ConfigID    int64  PK,
  Password    []byte
);

TABLE sessions OF Session NoUpdate (
  SessionID  string PK,
  CSRF       string,
  SignedIn   bool,
  CreatedAt  int64,
  LastSeenAt int64
);

TABLE networks OF Network (
  NetworkID int64 PK,
  Name      string NoUpdate,
  Network   []byte NoUpdate
);

TABLE peers OF Peer (
  NetworkID  int64 PK,
  PeerIP     byte PK,
  Version    int64,
  APIKey     string NoUpdate,
  Name       string,
  PublicIP   []byte,
  Port       uint16,
  Relay      bool,
  PubKey     []byte NoUpdate,
  PubSignKey []byte NoUpdate
);
