mirror of
https://github.com/Unkn0wnCat/calapi.git
synced 2025-05-25 13:46:10 +02:00
Initial commit
This commit is contained in:
commit
15407746e3
37 changed files with 8525 additions and 0 deletions
21
internal/db_model/event.go
Normal file
21
internal/db_model/event.go
Normal file
|
@ -0,0 +1,21 @@
|
|||
package db_model
|
||||
|
||||
import "time"
|
||||
|
||||
//go:generate go run github.com/objectbox/objectbox-go/cmd/objectbox-gogen
|
||||
|
||||
type Event struct {
|
||||
Id uint64
|
||||
Title string
|
||||
Description string
|
||||
Calendar *Calendar `objectbox:"link"`
|
||||
|
||||
LocationLat float64
|
||||
LocationLon float64
|
||||
LocationName string
|
||||
LocationAddr string
|
||||
|
||||
Start time.Time `objectbox:"date,index"`
|
||||
End time.Time `objectbox:"date,index"`
|
||||
DateCreated time.Time `objectbox:"date"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue