Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Merge pull request #55 from HPI-de/issue/50-course-schema-fixes
Browse files Browse the repository at this point in the history
feat(course): add Course.attendance, enrollment_deadline; make CourseSeries.mandatory an enum
  • Loading branch information
JonasWanke authored Oct 6, 2019
2 parents e565fae + f352a22 commit 10bd1e5
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions hpi/cloud/course/v1test/course.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ syntax = "proto3";

package hpi.cloud.course.v1test;

import "google/protobuf/wrappers.proto";
import "google/type/date.proto";

option java_multiple_files = true;
option java_outer_classname = "CourseProto";
option java_package = "de.hpi.cloud.course.v1test";
Expand All @@ -28,8 +31,14 @@ message CourseSeries {
// Required. The hours per week that courses of this series typically require.
sint32 hours_per_week = 6;

// Required. Whether it's mandatory to particiapte in a course of this series.
bool mandatory = 7;
enum Compulsory {
NON_COMPULSORY = 0;
COMPULSORY = 1;
BRIDGE = 2;
}

// Required. Whether it's mandatory to participate in a course of this series.
Compulsory compulsory = 7;

// Required. The language courses of this series are taught in. Must be a valid [BCP 47](https://en.wikipedia.org/wiki/IETF_language_tag) language tag.
string language = 8;
Expand All @@ -39,6 +48,7 @@ message CourseSeries {
SEMINAR = 1;
BLOCK_SEMINAR = 2;
EXERCISE = 3;
PROJECT = 4;
}

// Types of this course series. Must contain at least one value.
Expand Down Expand Up @@ -81,6 +91,12 @@ message Course {

// A website that contains more information about the course.
string website = 6;

// An optional upper bound for the number of participants.
google.protobuf.UInt32Value attendance = 7;

// The enrollment deadline.
google.type.Date enrollment_deadline = 8;
}

// Details of a course.
Expand Down

0 comments on commit 10bd1e5

Please sign in to comment.