-- +goose Up
CREATE EXTENSION IF NOT EXISTS vector;

CREATE TABLE sentence_embeddings (
    id SERIAL PRIMARY KEY,
    visit_id INTEGER NOT NULL,
    sentence TEXT NOT NULL,
    translated TEXT,
    embeddings VECTOR(1536) NOT NULL,
    created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);

-- +goose Down
DROP TABLE IF EXISTS sentence_embeddings;
DROP EXTENSION IF EXISTS vector;

