PRAGMA foreign_keys = OFF;

BEGIN TRANSACTION;

CREATE TABLE models (
    id TEXT PRIMARY KEY NOT NULL,
    data json,
    likes INTEGER DEFAULT 0 NOT NULL,
    downloads INTEGER DEFAULT 0 NOT NULL,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
);

COMMIT;