Tables [dbo].[ApiServiceHtml]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created1:52:22 PM Wednesday, April 10, 2024
Last Modified1:56:10 PM Wednesday, April 10, 2024
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Primary Key PK_ApiServiceHtml: HtmlKeyHtmlKeychar(32)32
No
DateCreateddatetime8
No
Foreign Keys FK_ApiServiceHtml_SysUser: [dbo].[Sysuser].CreatedByIndexes IX_ApiServiceHtml_CreatedBy: CreatedByCreatedByint4
No
HtmlDocnvarchar(max)max
No
EncryptionMethodint4
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_ApiServiceHtml: HtmlKeyPK_ApiServiceHtmlHtmlKey
Yes
IX_ApiServiceHtml_CreatedByCreatedBy
Foreign Keys Foreign Keys
NameColumns
FK_ApiServiceHtml_SysUserCreatedBy->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ApiServiceHtml]
(
[HtmlKey] [char] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DateCreated] [datetime] NOT NULL,
[CreatedBy] [int] NOT NULL,
[HtmlDoc] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[EncryptionMethod] [int] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[ApiServiceHtml] ADD CONSTRAINT [PK_ApiServiceHtml] PRIMARY KEY NONCLUSTERED  ([HtmlKey]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ApiServiceHtml_CreatedBy] ON [dbo].[ApiServiceHtml] ([CreatedBy]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ApiServiceHtml] ADD CONSTRAINT [FK_ApiServiceHtml_SysUser] FOREIGN KEY ([CreatedBy]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[ApiServiceHtml] TO [MssExec]
GRANT INSERT ON  [dbo].[ApiServiceHtml] TO [MssExec]
GRANT DELETE ON  [dbo].[ApiServiceHtml] TO [MssExec]
GRANT UPDATE ON  [dbo].[ApiServiceHtml] TO [MssExec]
GO
Uses