Compare commits

..

No commits in common. "ai-dev" and "master" have entirely different histories.

2 changed files with 0 additions and 21 deletions

View File

@ -1,10 +0,0 @@
CREATE TABLE IF NOT EXISTS users (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL UNIQUE,
affiliation VARCHAR(255),
expertise TEXT,
orcid VARCHAR(255),
password VARCHAR(255) NOT NULL, -- For simplicity, will store as plaintext for now
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

View File

@ -1,11 +0,0 @@
<?php
require_once 'db/config.php';
try {
$pdo = db();
$sql = file_get_contents('db/migrations/001_create_users_table.sql');
$pdo->exec($sql);
echo "Database setup successful.";
} catch (PDOException $e) {
die("Database setup failed: " . $e->getMessage());
}