https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
s

spierce7

06/01/2021, 11:28 PM
Another pain point I’m seeing that is probably more common - I have a create statement:
Copy code
CREATE TABLE DeviceRecording (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    json TEXT NOT NULL
);
The generated model has a non-nullable
id
, which makes it difficult to insert a
DeviceRecording
because in order to create one, I have to provide an ID. What’s the work-around? Am I thinking about this wrong?