CREATE TABLE [dbo].[process_status]
(
	[proc_status_id] INT NOT NULL  IDENTITY, 
    [modified_dt] DATETIME2 NOT NULL DEFAULT GETDATE(), 
    [proc_status_completed] BIT NOT NULL DEFAULT 0, 
    [proc_user_id] INT NOT NULL, 
    [proc_step_id] INT NOT NULL, 
    [modified_by] UNIQUEIDENTIFIER NULL, 
    [proc_status_edit_enabled] BIT NOT NULL DEFAULT 0, 
    CONSTRAINT [PK_process_status] PRIMARY KEY ([proc_status_id]), 
    CONSTRAINT [FK_process_status_to_process_user] FOREIGN KEY ([proc_user_id]) REFERENCES [process_user]([proc_user_id]), 
    CONSTRAINT [FK_process_status_to_process_step] FOREIGN KEY ([proc_step_id]) REFERENCES process_step([proc_step_id])
)
