feat: add key creation
This commit is contained in:
@@ -23,11 +23,12 @@ func Kickoff(workDir string) (*gorm.DB, error) {
|
||||
|
||||
// try to use GORM automigrate if the schema changes
|
||||
if err := db.AutoMigrate(
|
||||
&Command{}, // app state and command status
|
||||
&File{}, // files database for keeping track
|
||||
&Tenant{}, // table for tenants and its data
|
||||
&Group{}, // group table for privileges
|
||||
&Device{}, // devices table
|
||||
&AccessKey{}, // api keys for authentication
|
||||
&Command{}, // app state and command status
|
||||
&File{}, // files database for keeping track
|
||||
&Tenant{}, // table for tenants and its data
|
||||
&Group{}, // group table for privileges
|
||||
&Device{}, // devices table
|
||||
); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user