Tables [dbo].[OrderAuditInfo]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created3:42:54 PM Thursday, December 6, 2018
Last Modified7:33:37 PM Thursday, August 29, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_OrderAuditInfo: OrderAuditInfoIDOrderAuditInfoIDbigint8
No
1 - 1
Foreign Keys FK_OrderAuditInfo_SysUser: [dbo].[Sysuser].SysUserFIDSysUserFIDint4
No
UpdateSourcevarchar(128)128
Yes
CreatedOndatetime8
No
(getdate())
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_OrderAuditInfo: OrderAuditInfoIDPK_OrderAuditInfoOrderAuditInfoID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_OrderAuditInfo_SysUserSysUserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
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
Uses
Used By