This commit is contained in:
2026-04-07 17:43:17 +02:00
parent 3956797020
commit e6ff54a15d
6 changed files with 121 additions and 14 deletions

View File

@@ -4,10 +4,12 @@
* "Test"
*/
CREATE TYPE SUSPENDTERMINATE AS ENUM ('suspend','terminate');
CREATE TABLE IF NOT EXISTS pause_cancel_tasks (
id BIGINT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
iccid TEXT NOT NULL,
operation_type SUSPENDTERMINATE,
last_checked TIMESTAMPTZ, -- Última vez que se ha comprobado que no esté en test
activation_date TIMESTAMPTZ, -- Fecha de activacion para comprobar si ha pasdo un mes
next_check TIMESTAMPTZ, -- Si se ha comprobado se asignará la siguiente fecha de revision