-
Notifications
You must be signed in to change notification settings - Fork 0
/
resources.go
23 lines (22 loc) · 987 Bytes
/
resources.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package tisp
// type ResourceType string
//
// const Developer ResourceType = "developer"
// const Scholarship ResourceType = "scholarship"
// const ScrumMaster ResourceType = "scrum-master"
//
// type Resource struct {
// ID ID `gorm:"primary_key"`
// Selector *string `gorm:"primary_key"` // Selector acts like a unique index, is very useful
// CreatedAt time.Time
// UpdatedAt time.Time
// Name string
// MainType ResourceType
// Types []ResourceType `gorm:"type:string[]"`
// Alias string // Alias is only extra information
// Experience ExperienceType //
// Cost Cost
// WorkingOnAsProjectLeader []Project `gorm:"foreignkey:LeaderID"`
// WorkingOnAsTaskLeader []Task `gorm:"many2many:task_resources;"`
// WorkingOn []Task `gorm:"foreignkey:LeaderID"`
// }