feat:#16 added uuid for all modules in back-/frontend

This commit is contained in:
masterelmar
2023-10-25 16:54:48 +02:00
parent 3cd9f1fdbd
commit 5c438424a2
12 changed files with 70 additions and 205 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,12 +23,6 @@ type Entry struct {
type Entries []*Entry
type FeedCollection struct {
Name string `db:"Name" json:"name"`
Course string `db:"course" json:"course"`
UserDefinedName string `db:"userDefinedName" json:"userDefinedName"`
}
type UUIDFeedCollection struct {
UUID string `db:"uuid" json:"uuid"`
Name string `db:"Name" json:"name"`
Course string `db:"course" json:"course"`

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"`