﻿-- Table: ow_setting_def
CREATE TABLE [ow_setting_def] (
    [gobject_id] int NOT NULL,
    [package_id] int NOT NULL,
    [ow_setting_id] int NOT NULL,
    [ow_setting_type] int NOT NULL,
    [reference] nvarchar(260) NULL,
    [property_id] varchar(36) NULL,
    [initial_value] nvarchar(-1) NULL,
    [property_bitmask] int NULL,
    [sort] int NOT NULL,
    CONSTRAINT [PK_ow_setting_def] PRIMARY KEY ([gobject_id], [package_id], [ow_setting_id], [ow_setting_type], [ow_setting_id])
);
GO

ALTER TABLE [ow_setting_def] ADD FOREIGN KEY ([ow_setting_id]) REFERENCES [ow_setting_id] ([ow_setting_id]);
GO

