2020-10-14 15:26:50 +01:00
|
|
|
// dbx.v1 golang multinodedb.dbx .
|
|
|
|
|
|
|
|
model node (
|
|
|
|
key id
|
|
|
|
|
|
|
|
field id blob
|
|
|
|
field name text ( updatable )
|
|
|
|
field public_address text
|
|
|
|
field api_secret blob
|
|
|
|
)
|
|
|
|
|
|
|
|
create node ( )
|
|
|
|
delete node ( where node.id = ? )
|
2020-11-16 12:46:49 +00:00
|
|
|
update node ( where node.id = ? )
|
2020-10-14 15:26:50 +01:00
|
|
|
|
|
|
|
read one (
|
|
|
|
select node
|
|
|
|
where node.id = ?
|
|
|
|
)
|
2020-11-16 12:46:49 +00:00
|
|
|
read all(
|
|
|
|
select node
|
|
|
|
)
|
2020-10-14 15:26:50 +01:00
|
|
|
|
|
|
|
model member (
|
|
|
|
key id
|
|
|
|
|
|
|
|
field id blob
|
|
|
|
field email text ( updatable )
|
|
|
|
field name text ( updatable )
|
|
|
|
field password_hash blob ( updatable )
|
|
|
|
|
|
|
|
field created_at timestamp ( autoinsert )
|
|
|
|
)
|
|
|
|
|
|
|
|
create member ( )
|
|
|
|
delete member ( where member.id = ? )
|
|
|
|
|
|
|
|
update member ( where member.id = ? )
|
|
|
|
|
|
|
|
read one (
|
|
|
|
select member
|
|
|
|
where member.email = ?
|
|
|
|
)
|
|
|
|
read one (
|
|
|
|
select member
|
|
|
|
where member.id = ?
|
|
|
|
)
|