Open LabiciIvan opened 1 month ago
Description: This ticket is to clean up some code during development as well as to enhance parts where it is possible.
create-table-users.sql
/App/Database/migrations/
email VARCHAR(300) UNIQUE NOT NULL
deleted ENUM ('Y', 'N') DEFAULT 'N'
password TEXT NOT NULL
password_update TIMESTAMP NOT NULL
Create a new directory into App/ named Middlewares and move the BaseMiddleware.php file into that directory.
App/
Middlewares
BaseMiddleware.php
Move BaseController::class from App/Controllers to App/Classes;
BaseController::class
App/Controllers
App/Classes
Refactor column expire_at from CURRENT_TIMESTAMP to DATE(), following the next structure:
expire_at
expire_at DATE NOT NULL
Note:
Need to refactor the BaseMiddleware::class to allow the execution of the given middlewares directly from a class method if this method is not the __constructor of the class.
BaseMiddleware::class
__constructor
Description: This ticket is to clean up some code during development as well as to enhance parts where it is possible.
create-table-users.sql
file found in/App/Database/migrations/
needs additional columns:email VARCHAR(300) UNIQUE NOT NULL
deleted ENUM ('Y', 'N') DEFAULT 'N'
password TEXT NOT NULL
password_update TIMESTAMP NOT NULL
Create a new directory into
App/
namedMiddlewares
and move theBaseMiddleware.php
file into that directory.Move
BaseController::class
fromApp/Controllers
toApp/Classes
;Refactor column
expire_at
from CURRENT_TIMESTAMP to DATE(), following the next structure:expire_at DATE NOT NULL