first commit

This commit is contained in:
Adrian Zürcher
2025-10-08 15:02:07 +02:00
commit 75ea1362a8
16 changed files with 1361 additions and 0 deletions

15
models/database.go Normal file
View File

@@ -0,0 +1,15 @@
package models
type Database struct {
Path string `json:"dbPath,omitempty"`
Token string `json:"token,omitempty"`
Create bool `json:"create,omitempty"`
}
func (d *Database) SetDefaultPath() {
d.Path = "data/mydatabase.db"
}
func (d *Database) SetDefaultToken() {
d.Token = "6576889abd578frdj,ouzt6909-gtrfb"
}