Constclass WorksFor extends Type.makeRelation<WorksFor>(DXN.make('com.example.type.worksFor', '0.1.0'))(
{ source: Person, target: Company },
)(Schema.Struct({ role: Schema.String })) {}
// Like `makeObject`, the last call also takes struct fields and an optional annotate function.
class Employs extends Type.makeRelation<Employs>(DXN.make('com.example.type.employs', '0.1.0'))(
{ source: Company, target: Person },
)({ role: Schema.String }, Annotation.LabelAnnotation.set(['role'])) {}
Factory function to create an ECHO relation schema. Adds relation metadata annotations to an Effect schema.