Initial multi-user support using namespaces
This commit is contained in:
parent
562e996996
commit
b7655b1f68
6 changed files with 229 additions and 41 deletions
1
db.go
1
db.go
|
@ -23,6 +23,7 @@ func (h *Headscale) initDB() error {
|
|||
db.Exec("create extension if not exists \"uuid-ossp\";")
|
||||
db.AutoMigrate(&Machine{})
|
||||
db.AutoMigrate(&KV{})
|
||||
db.AutoMigrate(&Namespace{})
|
||||
db.Close()
|
||||
|
||||
h.setValue("db_version", dbVersion)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue