-- Table: autobound_attribute
CREATE TABLE [autobound_attribute] (
    [dio_id] int NOT NULL,
    [sg_mx_primitive_id] smallint NOT NULL DEFAULT ((0)),
    [gobject_id] int NOT NULL,
    [mx_primitive_id] smallint NOT NULL,
    [mx_attribute_id] smallint NOT NULL,
    [element_index] smallint NOT NULL DEFAULT ((0)),
    [attr_alias] nvarchar(329) NULL,
    [xlate_rule_id] int NOT NULL DEFAULT ((0)),
    CONSTRAINT [PK_autobound_attribute] PRIMARY KEY ([gobject_id], [mx_primitive_id], [mx_attribute_id], [element_index], [dio_id], [sg_mx_primitive_id], [dio_id], [sg_mx_primitive_id], [xlate_rule_id])
);
GO

ALTER TABLE [autobound_attribute] ADD FOREIGN KEY ([xlate_rule_id]) REFERENCES [autobind_translation_rule] ([xlate_rule_id]);
GO

