34911-vm/db/migrations/001_create_users_table.sql
Flatlogic Bot 9b7d97bcbe Q1
2025-10-13 04:01:51 +00:00

11 lines
361 B
SQL

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
);