nostr_index.fbs (462B)
1 namespace NostrIndex; 2 3 struct Fixed32Bytes { 4 val: [ubyte:32]; 5 } 6 7 struct Fixed64Bytes { 8 val: [ubyte:64]; 9 } 10 11 table TagGeneral { 12 key: uint8; 13 val: [ubyte]; 14 } 15 16 table TagFixed32 { 17 key: uint8; 18 val: Fixed32Bytes; 19 } 20 21 table Event { 22 id: Fixed32Bytes; 23 pubkey: Fixed32Bytes; 24 created_at: uint64; 25 kind: uint64; 26 tagsGeneral: [TagGeneral]; 27 tagsFixed32: [TagFixed32]; 28 signature: Fixed64Bytes; 29 } 30 31 table Empty {} 32 root_type Empty;