-- Table: primitive_instance_file_table_link
CREATE TABLE [primitive_instance_file_table_link] (
    [gobject_id] int NOT NULL,
    [package_id] int NOT NULL,
    [mx_primitive_id] smallint NOT NULL,
    [file_id] int NOT NULL,
    [is_needed_for_package] bit NOT NULL DEFAULT ((0)),
    [is_needed_for_runtime] bit NOT NULL DEFAULT ((0)),
    [is_needed_for_editor] bit NOT NULL DEFAULT ((0)),
    CONSTRAINT [PK_primitive_instance_file_table_link] PRIMARY KEY ([gobject_id], [package_id], [mx_primitive_id], [file_id], [file_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_file_table_link] ADD FOREIGN KEY ([package_id]) REFERENCES [primitive_instance] ([package_id]);
GO

