syntax = "proto2";
package org.acme.travels.travels;

option kogito_model = "Travels";
option kogito_id = "travels";

/* @Indexed */
message Flight {
    option java_package = "org.acme.travels.travels";
    /* @Field(index = Index.NO, store = Store.YES) */
    optional string flightNumber = 1;
}
/* @Indexed */
message Hotel {
    option java_package = "org.acme.travels.travels";
    /* @Field(index = Index.NO, store = Store.YES) */
    optional string name = 1;

    optional string room = 2;
}

/* @Indexed */
message Travels {
    option java_package = "org.acme.travels.travels";
    /* @Field(index = Index.NO, store = Store.YES) */
    optional Flight flight = 1;
    /* @Field(index = Index.NO, store = Store.YES) */
    optional Hotel hotel = 2;
    /* @Field(store = Store.YES) */
    optional string id = 3;
    /* @Field(index = Index.NO, store = Store.YES) */
    optional string metadata = 4;
    /* @Field(index = Index.NO, store = Store.YES) @SortableField */
    optional int32 testInt = 5;
    /* @Field(index = Index.NO, store = Store.YES) @SortableField */
    optional double testDouble = 6;
    /* @Field(index = Index.NO, store = Store.YES) @SortableField */
    optional float testFloat = 7;
    /* @Field(index = Index.NO, store = Store.YES) @SortableField */
    optional int64 testLong = 8;
}
