package it.ewlab.researcher;

message Researcher {
    required string name = 1;
    required string surname = 2;

    enum ResearcherType {
        PHDSTUDENT = 0;
        POSTDOC = 1;
        ASSISTANTPROFESSOR = 2;
    }

    message Paper {
        required string title = 1;
        required int32 year = 2;

    }

    repeated Paper paper = 3;
    optional ResearcherType type = 4;
}