Tables [dbo].[usm_branding_template]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count1
Created12:31:28 PM Sunday, December 05, 2010
Last Modified5:02:32 PM Monday, April 25, 2011
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key XPKusm_branding_template: branding_template_idbranding_template_idvarchar(50)50
No
Foreign Keys $usm_b_r000020ef00000000: [dbo].[usm_branding_template].branding_template_parent_idbranding_template_parent_idvarchar(50)50
Yes
is_sharedint4
Yes
('0')
is_defaultint4
Yes
('0')
descriptionnvarchar(128)256
Yes
tenant_idvarchar(50)50
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKusm_branding_template: branding_template_idXPKusm_branding_templatebranding_template_id
Yes
Foreign Keys Foreign Keys
NameColumns
$usm_b_r000020ef00000000branding_template_parent_id->[dbo].[usm_branding_template].[branding_template_id]
Permissions
TypeActionOwning Principal
GrantDeleteusmgroup
GrantInsertusmgroup
GrantSelectusmgroup
GrantUpdateusmgroup
SQL Script
CREATE TABLE [dbo].[usm_branding_template]
(
[branding_template_id] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[branding_template_parent_id] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[is_shared] [int] NULL CONSTRAINT [DF__usm_brand__is_sh__2883C9D4] DEFAULT ('0'),
[is_default] [int] NULL CONSTRAINT [DF__usm_brand__is_de__2977EE0D] DEFAULT ('0'),
[description] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[tenant_id] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CS_AS NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[usm_branding_template] ADD CONSTRAINT [XPKusm_branding_template] PRIMARY KEY CLUSTERED ([branding_template_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_branding_template] ADD CONSTRAINT [$usm_b_r000020ef00000000] FOREIGN KEY ([branding_template_parent_id]) REFERENCES [dbo].[usm_branding_template] ([branding_template_id])
GO
GRANT SELECT ON  [dbo].[usm_branding_template] TO [usmgroup]
GRANT INSERT ON  [dbo].[usm_branding_template] TO [usmgroup]
GRANT DELETE ON  [dbo].[usm_branding_template] TO [usmgroup]
GRANT UPDATE ON  [dbo].[usm_branding_template] TO [usmgroup]
GO
Uses