7dde184cb5
Change-Id: I6070089128a150a4dd501bbc62a1f8b394aa643e
46 lines
876 B
Plaintext
46 lines
876 B
Plaintext
// dbx.v1 golang multinodedb.dbx .
|
|
|
|
model node (
|
|
key id
|
|
|
|
field id blob
|
|
field name text ( updatable )
|
|
field tag text ( updatable )
|
|
field public_address text
|
|
field api_secret blob
|
|
field logo blob ( updatable )
|
|
)
|
|
|
|
create node ( )
|
|
delete node ( where node.id = ? )
|
|
|
|
read one (
|
|
select node
|
|
where node.id = ?
|
|
)
|
|
|
|
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 = ?
|
|
)
|