
[dbo].[por_portlet_entity]
CREATE TABLE [dbo].[por_portlet_entity]
(
[portlet_entity_id] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[portlet_entity_alias] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[title] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[portlet_entity_desc] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[parent] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[personalization_level] [int] NULL CONSTRAINT [DF__por_portl__perso__0F7824E8] DEFAULT ((2)),
[entity_prefs] [ntext] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[remote] [int] NULL,
[cons_configured] [int] NULL,
[portlet_entity_edition] [int] NULL,
[portlet_defn_id] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[portal_instance_id] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[por_portlet_entity] ADD CONSTRAINT [xpkportlet_entity] PRIMARY KEY NONCLUSTERED ([portlet_entity_id]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [$por_p_u0000360d00000000] ON [dbo].[por_portlet_entity] ([portlet_entity_alias], [portal_instance_id]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [xak1portlet_entity] ON [dbo].[por_portlet_entity] ([portlet_entity_alias], [portal_instance_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[por_portlet_entity] ADD CONSTRAINT [$por_p_r000036da00000000] FOREIGN KEY ([portlet_defn_id]) REFERENCES [dbo].[por_portlet_defn] ([portlet_defn_id])
GO
ALTER TABLE [dbo].[por_portlet_entity] ADD CONSTRAINT [$por_p_r000036e400000000] FOREIGN KEY ([portal_instance_id]) REFERENCES [dbo].[por_portal_instance] ([portal_instance_id])
GO
GRANT SELECT ON [dbo].[por_portlet_entity] TO [portaldba_group]
GRANT INSERT ON [dbo].[por_portlet_entity] TO [portaldba_group]
GRANT DELETE ON [dbo].[por_portlet_entity] TO [portaldba_group]
GRANT UPDATE ON [dbo].[por_portlet_entity] TO [portaldba_group]
GO