19 lines
409 B
MySQL
19 lines
409 B
MySQL
|
-- PostgreSQL schema for the database
|
||
|
|
||
|
-- User table
|
||
|
|
||
|
CREATE TABLE user (
|
||
|
user_id SERIAL PRIMARY KEY,
|
||
|
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
|
||
|
);
|
||
|
|
||
|
|
||
|
|
||
|
|