One of the strengths of the BAQ ecosystem is the ability to re-use existing record types. In doing so, apps gain compatibility with data that users might have previously created in other apps, as well as the ability to interact with these other apps.
A Record Type Registry will be introduced in the future to make it easy to find new types and publish your own. In the meantime, this page will be regularly updated with popular record types.
Track something that needs to be done. Used in the BAQ Todo app tutorial.
baq add types.baq.dev+fe727f22b5c34fb185a370449e4f0128
Properties:
title
string
completed
boolean
Describe a hierarchy of folders and files that matches what people expect from desktop operating systems and similar cloud storage services.
baq add types.baq.dev+3050fc130d4142a9994af0ef7c89099e
Properties:
parent
RecordLink optional
Folder above this one in the hierarchy.
undefined
when at the root level.
name
string
Folders are unique by parent+name
and share that unicity with files.
baq add types.baq.dev+2b6f7bc8ffd54c8db8062700c040e04f
Properties:
parent
RecordLink optional
Folder above this file in the hierarchy.
undefined
when at the root level.
size
int
blob
BlobLink
Files are unique by parent+blob.name
and share that unicity with folders.
Implement instant messaging with one-to-one text or picture messages grouped under conversations.
baq add types.baq.dev+7583995c51cf44ad972fdc123105e1dc
Notes:
Conversations do not have any content.
Participants are defined by the read permissions.
They must have two participants.
They are unique by participants.
They cannot be modified after creation.
baq add types.baq.dev+153b3cb3a2f0494e950599de1cc13ef3
Properties:
conversation
RecordLink
replying_to
RecordLink optional
text
string optional
Text content of the message.
Maximum length of 4096
unicode code points.
images
array optional
Images attached to this message.
Item properties:
Messages require at least one of text
or images
to be specified.
Publish microblog posts for followers to read. Supports different media types and the ability to mention other users.
baq add types.baq.dev+6ee7f69a90154b849bac528daa942bcd
Properties:
reply_to_post
RecordLink optional
quote_post
RecordLink optional
text
string optional
Content of the post.
Maximum length of 512
unicode code points.
text_mentions
array optional
Metadata for the mentions in the text
property.
Item properties:
mention
EntityLink : Entity to mention.index
int : Start index of the mention in text
.length
int : Length of the mention in text
.images
array optional
Images attached to this post.
Item properties:
Mention properties:
mention
EntityLink : Entity to mention.x
int : X coordinate in the Large image.y
int : Y coordinate in the Large image.Notes:
Posts require at least one of text
or images
to be specified.
reply_to_post
and quote_post
are mutually exclusive.
The index
and length
of text mentions are in Unicode code points.