package Ġdev . k drag 0 n . pat re on dl . telemetry . db Ċ Ċ import Ġkotlinx . serialization . json . JsonObject Ċ import Ġorg . jetbrains . ex posed . dao . Int Entity Ċ import Ġorg . jetbrains . ex posed . dao . Int Entity Class Ċ import Ġorg . jetbrains . ex posed . dao . id . Entity ID Ċ import Ġorg . jetbrains . ex posed . dao . id . Int Id Table Ċ import Ġorg . jetbrains . ex posed . sql .` java - time `. Current Timestamp Ċ import Ġorg . jetbrains . ex posed . sql .` java - time `. timestamp Ċ Ċ object ĠSettings Reports Ġ: ĠInt Id Table (" tm _ settings _ reports ") Ġ{ ĊĠĠĠ Ġval Ġandroid Id Ġ= Ġtext (" android _ id "). index () ĊĠĠĠ Ġval Ġversion Code Ġ= Ġinteger (" version _ code ") ĊĠĠĠ Ġval Ġreported At Ġ= Ġtimestamp (" reported _ at "). default Expression ( Current Timestamp ()) ĊĠĠĠ Ġval Ġsettings Ġ= Ġjsonb (" settings ", ĠJsonObject . serializer ()) Ċ } Ċ Ċ class ĠSettings Report ( id : ĠEntity ID < Int >) Ġ: ĠInt Entity ( id ) Ġ{ ĊĠĠĠ Ġcompanion Ġobject Ġ: ĠInt Entity Class < Settings Report >( Settings Reports ) ĊĊĠĠĠ Ġvar Ġandroid Id Ġby ĠSettings Reports . android Id ĊĠĠĠ Ġvar Ġversion Code Ġby ĠSettings Reports . version Code ĊĠĠĠ Ġvar Ġreported At Ġby ĠSettings Reports . reported At ĊĠĠĠ Ġvar Ġsettings Ġby ĠSettings Reports . settings Ċ } Ċ