﻿-- Table: template_idebehavior_link
CREATE TABLE [template_idebehavior_link] (
    [template_definition_id] int NOT NULL,
    [shown_in_template_toolbox] bit NOT NULL DEFAULT ((1)),
    [shown_in_model_view] bit NOT NULL DEFAULT ((1)),
    [shown_in_deployment_view] bit NOT NULL DEFAULT ((1)),
    [shown_in_security_editor] bit NOT NULL DEFAULT ((1)),
    [shown_tagname] bit NOT NULL DEFAULT ((1)),
    [shown_containedname] bit NOT NULL DEFAULT ((1)),
    [shown_in_archestra_browser] bit NOT NULL DEFAULT ((1)),
    [shown_standard_archestra_editor_tab] bit NOT NULL DEFAULT ((1)),
    [enable_objectviewermenu] bit NOT NULL DEFAULT ((1)),
    [enable_createinstance] bit NOT NULL DEFAULT ((1)),
    [enable_createtemplate] bit NOT NULL DEFAULT ((1)),
    [idebehavior_flags] int NOT NULL DEFAULT ((511)),
    CONSTRAINT [PK_template_idebehavior_link] PRIMARY KEY ([template_definition_id], [template_definition_id])
);
GO

ALTER TABLE [template_idebehavior_link] ADD FOREIGN KEY ([template_definition_id]) REFERENCES [template_definition] ([template_definition_id]);
GO

