Twilight Storage Unitspaidv1.1.0Qbox

Requirements & Database

Resources that must be running and the database table Twilight Storage Units uses.

Dependencies

Make sure the following resources are installed and started before Twilight Storage Units.

Database

The storage_units table is created automatically the first time the resource starts. If you prefer to run it yourself:

storage_units.sql
CREATE TABLE IF NOT EXISTS `storage_units` (
    `id` INT PRIMARY KEY,
    `owner_id` VARCHAR(50) NULL,
    `shared_users` JSON DEFAULT '[]',
    `rent_due_at` INT UNSIGNED NULL DEFAULT NULL,
    `rent_paid_at` INT UNSIGNED NULL DEFAULT NULL,
    `created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    `updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);