-- Table: alarm_message_translations CREATE TABLE [alarm_message_translations] ( [phrase_id] int NOT NULL, [locale_id] smallint NOT NULL, [translated_message] nvarchar(1024) NOT NULL, CONSTRAINT [PK_alarm_message_translations] PRIMARY KEY ([phrase_id], [locale_id], [phrase_id], [locale_id]) ); GO ALTER TABLE [alarm_message_translations] ADD FOREIGN KEY ([locale_id]) REFERENCES [supported_locales] ([locale_id]); GO