feat:#11 merge conflicts

This commit is contained in:
survellow
2023-10-25 21:45:11 +02:00
17 changed files with 224 additions and 187 deletions

View File

@@ -1,8 +1,13 @@
package model
import "github.com/pocketbase/pocketbase/models"
type Feed struct {
Id string `db:"id" json:"id"`
Modules string `db:"modules" json:"modules"`
Created string `db:"created" json:"created"`
Updated string `db:"updated" json:"updated"`
models.BaseModel
}
// SetModules set modules field
func (f *Feed) SetModules(modules string) {
f.Modules = modules
}

View File

@@ -23,6 +23,7 @@ type Entry struct {
type Entries []*Entry
type FeedCollection struct {
UUID string `db:"uuid" json:"uuid"`
Name string `db:"Name" json:"name"`
Course string `db:"course" json:"course"`
UserDefinedName string `db:"userDefinedName" json:"userDefinedName"`

View File

@@ -1,6 +1,7 @@
package model
type Module struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Prof string `json:"prof"`
Course string `json:"course"`