database.go
go
package models
import "theskyscape.com/repo/skykit"
var (
	DB       = skykit.ConnectDB()
	Files    = skykit.Manage(DB, "files", new(File))
	Projects = skykit.Manage(DB, "projects", new(Project))
)
func init() {
	Files.Index("OwnerID")
	Files.UniqueIndex("OwnerID", "Path")
	Projects.Index("OwnerID")
	Projects.UniqueIndex("OwnerID", "Path")
}
7e2ccdf

Update skykit to fix database replica corruption

Connor McCutcheon
@connor
1 stars

Coding tools for The Skyscape

Sign in to comment Sign In
Awesome app everyone should try for building their ideas on The Skyscape
Connor McCutcheon
@connor
1 month ago