netmash/test/NDB.Test.Application/Scripts/1.0.1/04.Create table Settings.sql

13 lines
440 B
SQL

CREATE TABLE "Settings" (
"Id" INTEGER NOT NULL,
"Code" TEXT NOT NULL UNIQUE,
"Name" TEXT NOT NULL,
"Description" TEXT,
"Context" TEXT NOT NULL
CONSTRAINT "PK_Settings" PRIMARY KEY("Id" AUTOINCREMENT)
);
INSERT INTO Settings(Id, Code, Name, Context)
SELECT 1, 'THEME', 'Application theme', 'USER' UNION
SELECT 2, 'LANGUAGE', 'Application language', 'USER' UNION
SELECT 3, 'NOTIFICATIONS_POSITION', 'Notifications position', 'USER'