Tables [dbo].[usm_plan_def]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:08:05 AM Wednesday, March 07, 2007
Last Modified1:17:01 PM Tuesday, March 30, 2010
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKusm_plan_def: pd_idpd_idint4
No
lvlint4
No
lvl_typeint4
No
yearint4
No
periodint4
No
start_datedatetime8
No
end_datedatetime8
No
set_codenvarchar(50)100
No
activityint4
No
Foreign Keys XFKusm_plan_def1: [dbo].[usm_tenant_ext].domaindomainvarchar(50)50
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKusm_plan_def: pd_idXPKusm_plan_defpd_id
Yes
Foreign Keys Foreign Keys
NameColumns
XFKusm_plan_def1domain->[dbo].[usm_tenant_ext].[tenant_id]
Permissions
TypeActionOwning Principal
GrantDeleteusmgroup
GrantInsertusmgroup
GrantSelectusmgroup
GrantUpdateusmgroup
SQL Script
CREATE TABLE [dbo].[usm_plan_def]
(
[pd_id] [int] NOT NULL,
[lvl] [int] NOT NULL,
[lvl_type] [int] NOT NULL,
[year] [int] NOT NULL,
[period] [int] NOT NULL,
[start_date] [datetime] NOT NULL,
[end_date] [datetime] NOT NULL,
[set_code] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[activity] [int] NOT NULL,
[domain] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CS_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_plan_def] ADD CONSTRAINT [XPKusm_plan_def] PRIMARY KEY CLUSTERED ([pd_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_plan_def] ADD CONSTRAINT [XFKusm_plan_def1] FOREIGN KEY ([domain]) REFERENCES [dbo].[usm_tenant_ext] ([tenant_id])
GO
GRANT SELECT ON  [dbo].[usm_plan_def] TO [usmgroup]
GRANT INSERT ON  [dbo].[usm_plan_def] TO [usmgroup]
GRANT DELETE ON  [dbo].[usm_plan_def] TO [usmgroup]
GRANT UPDATE ON  [dbo].[usm_plan_def] TO [usmgroup]
GO
Uses
Used By