﻿-- Table: autobind_device_template
CREATE TABLE [autobind_device_template] (
    [template_definition_id] int NOT NULL,
    [rule_id] int NULL,
    CONSTRAINT [PK_autobind_device_template] PRIMARY KEY ([template_definition_id], [rule_id], [template_definition_id])
);
GO

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

