import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
export async function createStudentsTable() {
await sqlite.execute(
`
CREATE TABLE IF NOT EXISTS students (
id INTEGER PRIMARY KEY,
name TEXT NOT NULL,
email TEXT NOT NULL UNIQUE,
verified BOOLEAN DEFAULT 0,
verification_token TEXT UNIQUE,
subscribed_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
current_lesson INTEGER DEFAULT 0,
has_completed_current_lesson BOOLEAN DEFAULT 0
);
`,
);
}