Wire through a flag so that we can track when installations come from tests, and delete those from the DB more aggressively

This commit is contained in:
David Dworken
2023-10-15 13:09:48 -07:00
parent 449a4d0000
commit f3727dbeff
4 changed files with 12 additions and 4 deletions

View File

@@ -29,6 +29,9 @@ type Device struct {
// david@daviddworken.com and I can clear it from your device entries.
RegistrationIp string `json:"registration_ip"`
RegistrationDate time.Time `json:"registration_date"`
// Test devices, that should be aggressively cleaned from the DB
// TODO: Clean these from the DB
IsIntegrationTestDevice bool `json:"is_integration_test_device"`
}
// Represents a request to get all history entries from a given device. Used as part of bootstrapping