working commit

This commit is contained in:
2026-01-26 17:44:54 +02:00
parent f2e33d9ff1
commit 15e4e893b1
18 changed files with 300 additions and 21 deletions
+17
View File
@@ -0,0 +1,17 @@
package maindb
const schema = `
CREATE TABLE IF NOT EXISTS file (
id VARCHAR(255) NOT NULL,
collection VARCHAR(255) NOT NULL,
name VARCHAR(255) NOT NULL,
checksum VARCHAR(255) NOT NULL,
size INTEGER,
created_at VARCHAR(255) NOT NULL,
updated_at VARCHAR(255) NOT NULL,
created_by VARCHAR(255) NOT NULL,
updated_by VARCHAR(255) NOT NULL
);
CREATE UNIQUE INDEX IF NOT EXISTS file_index
ON file(collection, name);
`