Add Database Functions

This commit is contained in:
hoernschen 2020-10-01 17:45:57 +02:00
parent 126070829c
commit 253b020733
22 changed files with 1076 additions and 119 deletions

View file

@ -1,5 +1,7 @@
package event
// TODO: Check if it can be deleted
type EDU struct {
Type string `json:"type,omitempty"`
Content string `json:"content,omitempty"`

View file

@ -5,6 +5,6 @@ type Event struct {
RoomId string `json:"roomId,omitempty"`
EventType string `json:"eventType,omitempty"`
Content string `json:"content,omitempty"`
Parent string `json:"parent,omitempty"`
ParentId string `json:"parent,omitempty"`
Depth int `json:"depth,omitempty"`
}

View file

@ -1,5 +1,5 @@
package event
func New() event *Event {
}
func New() (event *Event) {
return
}