Hey guys,
I want to have a storage object for platform settings, which can’t have a user_id. In the docs this seem to be possible, but however when I tried it, it throws this error:
ERROR: foreign key violation: value ['00000000-0000-0000-0000-000000000000'] not found in users@primary [id]
I tried to write it like this:
local storage = {{
collection = "platform",
key = "settings",
value = {
version = "1.0.0"
},
permission_read = 2,
permission_write = 1
}}
local success, err = pcall(nk.storage_write, storage)
Which may be the issue here?
Thank you lots!