Skip to content
Snippets Groups Projects
Verified Commit dd9abe34 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: basic entity properties

parent b5ba134a
No related branches found
No related tags found
No related merge requests found
Pipeline #9946 passed with warnings
......@@ -24,7 +24,32 @@ option java_multiple_files = true;
option java_package = "org.caosdb.api.entity.v1alpha1";
package caosdb.entity.v1alpha1;
// Entity message
// Entity version
message Version {
// Version id
string id = 1;
}
// Unit of a value or default unit of a Property
message Unit {
// The string representation of the unit
string str = 1;
}
// Basic datatype. To be used as the datatype of a value or as the default datatype of a Property
message BasicDatatype {
// Name of the basic datatype (e.g. integer, double, boolean)
string name = 1;
}
// Reference datatype. To be used as the datatype of a value or as the default datatype of a Property
message ReferenceDatatype {
// The referenced record type
string reference = 1;
}
// Entity
message Entity {
// Entity ID
string eid = 1;
......@@ -32,6 +57,19 @@ message Entity {
string name = 2;
// Entity Description
string description = 3;
// Entity Version
Version version = 4;
// Entity Role
string role = 5;
// Default unit (only used by Properties)
Unit unit = 6;
// Default datatype (only used by Properties)
oneof datatype {
// Basic datatype (e.g. integer, double)
BasicDatatype basic = 7;
// Reference datatype
ReferenceDatatype reference = 8;
};
}
// RetrieveRequest message
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment