Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Merge branch 'main' of github.com:bytebase/bytebase
spinningbotfa532c77c150
diff --cc api/backup.goindex b39f31f948,7f1cda94e7..cda95f0b7b--- a/api/backup.go+++ b/api/backup.go@@@ -77,17 -77,18 +77,19 @@@ type Backup structUpdatedTs int64 `jsonapi:"attr,updatedTs"`// Related fields- DatabaseId int- Database *Database `jsonapi:"relation,database"`+ DatabaseId int `jsonapi:"attr,databaseId"`+ // Do not return this to the client since the client always has the database context and fetching the+ // database object and all its own related objects is a bit expensive.+ Database *Database// Domain specific fields- Name string `jsonapi:"attr,name"`- Status BackupStatus `jsonapi:"attr,status"`- Type BackupType `jsonapi:"attr,type"`- StorageBackend BackupStorageBackend `jsonapi:"attr,storageBackend"`- Path string `jsonapi:"attr,path"`- Comment string `jsonapi:"attr,comment"`+ Name string `jsonapi:"attr,name"`+ Status BackupStatus `jsonapi:"attr,status"`+ Type BackupType `jsonapi:"attr,type"`+ StorageBackend BackupStorageBackend `jsonapi:"attr,storageBackend"`+ MigrationHistoryVersion string `jsonapi:"attr,migrationHistoryVersion"`+ Path string `jsonapi:"attr,path"`+ Comment string `jsonapi:"attr,comment"`}type BackupCreate struct {@@@ -161,13 -161,16 +163,15 @@@ type BackupSetting structUpdatedTs int64 `jsonapi:"attr,updatedTs"`// Related fields- DatabaseId int- Database *Database `jsonapi:"relation,database"`+ DatabaseId int `jsonapi:"attr,databaseId"`+ // Do not return this to the client since the client always has the database context and fetching the+ // database object and all its own related objects is a bit expensive.+ Database *Database// Domain specific fields- Enabled bool `jsonapi:"attr,enabled"`- Hour int `jsonapi:"attr,hour"`- DayOfWeek int `jsonapi:"attr,dayOfWeek"`- PathTemplate string `jsonapi:"attr,pathTemplate"`+ Enabled bool `jsonapi:"attr,enabled"`+ Hour int `jsonapi:"attr,hour"`+ DayOfWeek int `jsonapi:"attr,dayOfWeek"`}// BackupSettingFind is the message to get a backup settings.