eeg_internal/sql/schema.sql

19 lines
415 B
MySQL
Raw Normal View History

2024-02-13 15:28:30 +00:00
-- MySQL schema for the database
2024-02-10 00:59:21 +00:00
-- User table
2024-02-13 15:28:30 +00:00
CREATE TABLE user (
user_id INT PRIMARY KEY AUTO_INCREMENT,
2024-02-10 00:59:21 +00:00
user_email VARCHAR(50) NOT NULL,
user_password VARCHAR(255) NOT NULL,
user_names VARCHAR(50) NOT NULL,
user_surnames VARCHAR(50) NOT NULL,
user_creation TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
user_last_login TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);