-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
deaf5b3
commit 96240bd
Showing
5 changed files
with
75 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package exam | ||
|
||
import ( | ||
"go.mongodb.org/mongo-driver/bson/primitive" | ||
) | ||
|
||
type Coordinates struct { | ||
Row int32 `json:"row" bson:"row"` | ||
Column int32 `json:"column" bson:"column"` | ||
} | ||
|
||
type MarkData struct { | ||
User primitive.ObjectID `json:"user" bson:"user"` | ||
Time string `json:"time" bson:"time"` | ||
} | ||
|
||
type Attendance struct { | ||
Id primitive.ObjectID `json:"_id" bson:"_id"` | ||
ExaminationId primitive.ObjectID `json:"examinationId" bson:"examinationId"` | ||
User primitive.ObjectID `json:"user" bson:"user"` | ||
Venue primitive.ObjectID `json:"venue" bson:"venue"` | ||
RawPosition Coordinates `json:"rawPosition" bson:"rawPosition"` | ||
IsPresent bool `json:"isPresent" bson:"isPresent"` | ||
MarkedData []MarkData `json:"markedData" bson:"markedData"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package exam | ||
|
||
import ( | ||
"github.com/FrosTiK-SD/models/misc" | ||
) | ||
|
||
type StudentApplication struct { | ||
StudentID misc.DBRef | ||
ResumeID misc.DBRef | ||
AppliedFor misc.DBRef | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package exam | ||
|
||
import ( | ||
"time" | ||
|
||
"go.mongodb.org/mongo-driver/bson/primitive" | ||
) | ||
|
||
type Examination struct { | ||
Id primitive.ObjectID `json:"_id" bson:"_id"` | ||
Title string `json:"title" bson:"title"` | ||
Description string `json:"description" bson:"description"` | ||
LinkedIaf []primitive.ObjectID `json:"linkedIaf" bson:"linkedIaf"` | ||
LinkedJaf []primitive.ObjectID `json:"linkedJaf" bson:"linkedJaf"` | ||
Venues []primitive.ObjectID `json:"venues" bson:"venues"` | ||
Attendance []primitive.ObjectID `json:"attendance" bson:"attendance"` | ||
StartDate string `json:"startDate" bson:"startDate"` | ||
EndDate string `json:"endDate" bson:"endDate"` | ||
StartBuffer time.Duration `json:"startBuffer" bson:"startBuffer"` | ||
EndBuffer time.Duration `json:"endBuffer" bson:"endBuffer"` | ||
CreatedBy primitive.ObjectID `json:"createdBy" bson:"createdBy"` | ||
WillingList []primitive.ObjectID `json:"willingList" bson:"willingList"` | ||
IsActive bool `json:"isActive" bson:"isActive"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package exam | ||
|
||
import "go.mongodb.org/mongo-driver/bson/primitive" | ||
|
||
type Venue struct { | ||
Id primitive.ObjectID `json:"_id" bson:"_id"` | ||
Title string `json:"title" bson:"title"` | ||
Arrangement string `json:"arrangement" bson:"arrangement"` | ||
Map [][]int32 `json:"map" bson:"map"` | ||
Capacity int32 `json:"capacity" bson:"capacity"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters