CREATE TABLE [dbo].[OrderAuditInfo]
(
[OrderAuditInfoID] [bigint] NOT NULL IDENTITY(1, 1),
[SysUserFID] [int] NOT NULL,
[UpdateSource] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreatedOn] [datetime] NOT NULL CONSTRAINT [DF_OrderAuditInfo_CreatedOn] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderAuditInfo] ADD CONSTRAINT [PK_OrderAuditInfo] PRIMARY KEY CLUSTERED ([OrderAuditInfoID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[OrderAuditInfo] ADD CONSTRAINT [FK_OrderAuditInfo_SysUser] FOREIGN KEY ([SysUserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON [dbo].[OrderAuditInfo] TO [MssExec]
GRANT INSERT ON [dbo].[OrderAuditInfo] TO [MssExec]
GRANT DELETE ON [dbo].[OrderAuditInfo] TO [MssExec]
GRANT UPDATE ON [dbo].[OrderAuditInfo] TO [MssExec]
GO