-- Table: gobject_change_log
CREATE TABLE [gobject_change_log] (
    [gobject_change_log_id] int NOT NULL,
    [gobject_id] int NOT NULL,
    [change_date] datetime NULL,
    [operation_id] smallint NOT NULL,
    [user_comment] nvarchar(1024) NOT NULL DEFAULT (''),
    [configuration_version] int NOT NULL DEFAULT ((0)),
    [user_profile_name] nvarchar(256) NOT NULL,
    CONSTRAINT [PK_gobject_change_log] PRIMARY KEY ([gobject_id], [operation_id])
);
GO

ALTER TABLE [gobject_change_log] ADD FOREIGN KEY ([operation_id]) REFERENCES [lookup_operation] ([operation_id]);
GO

