-- Table: primitive_instance_feature_link
CREATE TABLE [primitive_instance_feature_link] (
    [gobject_id] int NOT NULL,
    [package_id] int NOT NULL,
    [mx_primitive_id] smallint NOT NULL,
    [feature_id] int NOT NULL,
    [feature_name] nvarchar(256) NOT NULL DEFAULT (''),
    [feature_type] nvarchar(256) NOT NULL DEFAULT (''),
    CONSTRAINT [PK_primitive_instance_feature_link] PRIMARY KEY ([gobject_id], [package_id], [mx_primitive_id], [feature_id], [feature_id], [gobject_id], [mx_primitive_id], [package_id], [gobject_id], [mx_primitive_id], [package_id], [gobject_id], [mx_primitive_id], [package_id])
);
GO

ALTER TABLE [primitive_instance_feature_link] ADD FOREIGN KEY ([package_id]) REFERENCES [primitive_instance] ([package_id]);
GO

