﻿-- Table: ow_link_def
CREATE TABLE [ow_link_def] (
    [gobject_id] int NOT NULL,
    [package_id] int NOT NULL,
    [ow_link_id] int NOT NULL,
    [ow_link_type] int NOT NULL,
    [name] nvarchar(329) NOT NULL,
    [mx_primitive_id] smallint NULL,
    [dynamic_attribute_id] bigint NULL,
    [optional_id] int NULL,
    [property_bitmask] int NOT NULL,
    [sort] int NOT NULL,
    CONSTRAINT [PK_ow_link_def] PRIMARY KEY ([gobject_id], [package_id], [ow_link_id], [ow_link_id])
);
GO

ALTER TABLE [ow_link_def] ADD FOREIGN KEY ([ow_link_id]) REFERENCES [ow_link_id] ([ow_link_id]);
GO

