﻿-- Table: autobind_device_category
CREATE TABLE [autobind_device_category] (
    [category_id] smallint NOT NULL,
    [rule_id] int NULL DEFAULT ((0)),
    CONSTRAINT [PK_autobind_device_category] PRIMARY KEY ([category_id], [rule_id], [category_id])
);
GO

ALTER TABLE [autobind_device_category] ADD FOREIGN KEY ([category_id]) REFERENCES [lookup_category] ([category_id]);
GO

