- 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.
15 lines
496 B
SQL
15 lines
496 B
SQL
-- Migration: 082_sag_comments
|
|
-- Created: 2026-02-01
|
|
|
|
CREATE TABLE IF NOT EXISTS sag_kommentarer (
|
|
id SERIAL PRIMARY KEY,
|
|
sag_id INTEGER NOT NULL REFERENCES sag_sager(id) ON DELETE CASCADE,
|
|
forfatter VARCHAR(255) NOT NULL,
|
|
indhold TEXT NOT NULL,
|
|
er_system_besked BOOLEAN DEFAULT FALSE,
|
|
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
|
|
deleted_at TIMESTAMP WITH TIME ZONE DEFAULT NULL
|
|
);
|
|
|
|
CREATE INDEX idx_sag_kommentarer_sag_id ON sag_comments(sag_id);
|