Tables [dbo].[usm_service_event]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:08:10 AM Wednesday, March 07, 2007
Last Modified1:17:03 PM Tuesday, March 30, 2010
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKusm_service_event: service_event_idservice_event_idint4
No
descriptionnvarchar(255)510
Yes
Indexes usm_service_event_idx_01: start_time\stop_timestart_timeint4
Yes
Indexes usm_service_event_idx_01: start_time\stop_timestop_timeint4
Yes
createdint4
Yes
modifiedint4
Yes
categoryint4
Yes
Foreign Keys $usm_s_r00002a3100000000: [dbo].[usm_calendar].calendar_oidcalendar_oidvarchar(20)20
Yes
Foreign Keys $usm_s_r00002a2700000000: [dbo].[usm_event_category].event_category_oidevent_category_oidvarchar(20)20
Yes
Foreign Keys $usm_s_r00002a4500000000: [dbo].[usm_onetime_event].onetime_event_oidonetime_event_oidvarchar(20)20
Yes
Foreign Keys $usm_s_r00002a3b00000000: [dbo].[usm_recurring_event].recurring_event_oidrecurring_event_oidvarchar(20)20
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKusm_service_event: service_event_idXPKusm_service_eventservice_event_id
Yes
usm_service_event_idx_01start_time, stop_time
Foreign Keys Foreign Keys
NameColumns
$usm_s_r00002a2700000000event_category_oid->[dbo].[usm_event_category].[event_category_oid]
$usm_s_r00002a3100000000calendar_oid->[dbo].[usm_calendar].[calendar_oid]
$usm_s_r00002a3b00000000recurring_event_oid->[dbo].[usm_recurring_event].[recurring_event_oid]
$usm_s_r00002a4500000000onetime_event_oid->[dbo].[usm_onetime_event].[onetime_event_oid]
Permissions
TypeActionOwning Principal
GrantDeleteusmgroup
GrantInsertusmgroup
GrantSelectusmgroup
GrantUpdateusmgroup
SQL Script
CREATE TABLE [dbo].[usm_service_event]
(
[service_event_id] [int] NOT NULL,
[description] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[start_time] [int] NULL,
[stop_time] [int] NULL,
[created] [int] NULL,
[modified] [int] NULL,
[category] [int] NULL,
[calendar_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[event_category_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[onetime_event_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[recurring_event_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_service_event] ADD CONSTRAINT [XPKusm_service_event] PRIMARY KEY CLUSTERED ([service_event_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [usm_service_event_idx_01] ON [dbo].[usm_service_event] ([start_time], [stop_time]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_service_event] ADD CONSTRAINT [$usm_s_r00002a2700000000] FOREIGN KEY ([event_category_oid]) REFERENCES [dbo].[usm_event_category] ([event_category_oid])
GO
ALTER TABLE [dbo].[usm_service_event] ADD CONSTRAINT [$usm_s_r00002a3100000000] FOREIGN KEY ([calendar_oid]) REFERENCES [dbo].[usm_calendar] ([calendar_oid])
GO
ALTER TABLE [dbo].[usm_service_event] ADD CONSTRAINT [$usm_s_r00002a3b00000000] FOREIGN KEY ([recurring_event_oid]) REFERENCES [dbo].[usm_recurring_event] ([recurring_event_oid])
GO
ALTER TABLE [dbo].[usm_service_event] ADD CONSTRAINT [$usm_s_r00002a4500000000] FOREIGN KEY ([onetime_event_oid]) REFERENCES [dbo].[usm_onetime_event] ([onetime_event_oid])
GO
GRANT SELECT ON  [dbo].[usm_service_event] TO [usmgroup]
GRANT INSERT ON  [dbo].[usm_service_event] TO [usmgroup]
GRANT DELETE ON  [dbo].[usm_service_event] TO [usmgroup]
GRANT UPDATE ON  [dbo].[usm_service_event] TO [usmgroup]
GO
Uses
Used By