- Created a new SQL migration for the sag_salgsvarer table to manage sales and purchase items. - Implemented a new HTML template for the Varekøb & Salg module, including summary cards and tables for sales and purchases. - Added JavaScript functions for loading and rendering order data dynamically. - Introduced a new backend search module for customers, contacts, hardware, and locations with autocomplete functionality. - Developed an email templates API for managing system and customer-specific email templates. - Created multiple migrations for Nextcloud instances, cache, audit logs, email templates, sag comments, hardware locations, and billing methods. - Enhanced the sag module with solutions, order lines, work types, and 2FA support for user authentication.
13 lines
331 B
SQL
13 lines
331 B
SQL
-- Migration: 077_nextcloud_cache
|
|
-- Created: 2026-02-01
|
|
|
|
CREATE TABLE IF NOT EXISTS nextcloud_cache (
|
|
cache_key TEXT PRIMARY KEY,
|
|
payload JSONB NOT NULL,
|
|
expires_at TIMESTAMP NOT NULL,
|
|
created_at TIMESTAMP NOT NULL DEFAULT NOW()
|
|
);
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_nextcloud_cache_expires
|
|
ON nextcloud_cache(expires_at);
|