Under this issue a database table to store user information should be set up.
New table should be created with columns listed below:
id SERIAL PRIMARY KEY,
uuid UUID UNIQUE,
username VARCHAR(50) UNIQUE NOT NULL
email VARCHAR(100) UNIQUE NOT NULL (For password recovery)
password_hash VARCHAR(255) NOT NULL (stored as hash for security)
created TIMESTAMP DEFAULT CURRENT_TIMESTAMP
updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
Updated the database structure: UUID to be used in email verification. For security reasons we don't want to use serialized id field for this even though we technically could.
Under this issue a database table to store user information should be set up.
New table should be created with columns listed below: id SERIAL PRIMARY KEY, uuid UUID UNIQUE,
username VARCHAR(50) UNIQUE NOT NULL email VARCHAR(100) UNIQUE NOT NULL (For password recovery) password_hash VARCHAR(255) NOT NULL (stored as hash for security) created TIMESTAMP DEFAULT CURRENT_TIMESTAMP updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
Story: APUOPE-RE/Wiki#13 Specifications: https://github.com/APUOPE-RE/Wiki/wiki/FR-%E2%80%90-Log-In-&-Sign-Up