CREATE TABLE [dbo].[CashWithdrawal] (
    [Id]        INT            IDENTITY (1, 1) NOT NULL,
    [ProfileId] INT            NOT NULL,
    [Amount]    FLOAT (53)     NOT NULL,
    [Date]      DATETIME       NOT NULL,
    [Comment]   NVARCHAR (MAX) NULL,
    [StatusId]  INT            NOT NULL,
	[ReviewerId] INT NULL, 
	[ReviewDate] DATETIME NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [FK_CashWithdrawal_Profile] FOREIGN KEY ([ProfileId]) REFERENCES [dbo].[Profile] ([Id]),
    CONSTRAINT [FK_CashWithdrawal_Status] FOREIGN KEY ([StatusId]) REFERENCES [dbo].[CashWithdrawalStatus] ([Id]), 
    CONSTRAINT [FK_CashWithdrawal_User] FOREIGN KEY ([ReviewerId]) REFERENCES [User]([Id])
);


