Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
CREATE TABLE IF NOT EXISTS versioned_resources (
id INTEGER PRIMARY KEY
, resource_id INTEGER
, storage_id INTEGER
, version INTEGER
, filename TEXT NOT NULL
, md5sum TEXT NOT NULL
, timestamp INTEGER
, FOREIGN KEY(resource_id) REFERENCES resources(id)
, FOREIGN KEY(storage_id) REFERENCES storages(id)
);