File size: 270 Bytes
a101d9b
 
e8ea372
a101d9b
 
8964ef4
a101d9b
dabf25e
 
a101d9b
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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;