Files
template-vitrine/backend/migrations/000002_create_site_settings.up.sql
T
2026-09-14 20:50:19 +02:00

11 lines
343 B
SQL

CREATE TABLE site_settings (
id SMALLINT PRIMARY KEY DEFAULT 1 CHECK (id = 1),
name TEXT NOT NULL DEFAULT '',
description TEXT NOT NULL DEFAULT '',
slug TEXT NOT NULL DEFAULT '',
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
INSERT INTO site_settings (id) VALUES (1);