5e9377524f
* Signature verification * Clean up agreement sender to have less errors * overlay address in captnplanet * Refactor bandwidth.proto to not use streams * Make sure the send worked * Handle connection to satellite * Save renter public key inside of renter bandwidth allocations * Default diag to sqlite. Make configurable * Separate bw server and dbm; regenerate dbx files * Make sure test uses protobufs * Demonstrate creating bandwidth allocations
24 lines
383 B
Plaintext
24 lines
383 B
Plaintext
// dbx.v1 golang bwagreement.dbx .
|
|
model bwagreement (
|
|
key signature
|
|
|
|
field signature blob
|
|
|
|
field data blob
|
|
|
|
field created_at timestamp ( autoinsert )
|
|
)
|
|
|
|
create bwagreement ( )
|
|
delete bwagreement ( where bwagreement.signature = ? )
|
|
read one (
|
|
select bwagreement
|
|
where bwagreement.signature = ?
|
|
)
|
|
read limitoffset (
|
|
select bwagreement
|
|
)
|
|
read all (
|
|
select bwagreement
|
|
)
|