storj/satellite/satellitedb/dbx/satellitedb.dbx

28 lines
451 B
Plaintext
Raw Normal View History

// dbx.v1 golang satellitedb.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
)
read all (
select bwagreement
where bwagreement.created_at > ?
)