Tables [dbo].[usm_onetime_event]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:08:09 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_onetime_event: onetime_event_oidonetime_event_oidvarchar(20)20
No
startint4
No
durationint4
Yes
descriptionnvarchar(255)510
Yes
statuschar(1)1
Yes
valuenvarchar(255)510
Yes
Foreign Keys $usm_o_r000027cf00000000: [dbo].[usm_calendar].calendar_oidcalendar_oidvarchar(20)20
Yes
Foreign Keys $usm_o_r000027c500000000: [dbo].[usm_event_category].event_category_oidevent_category_oidvarchar(20)20
Yes
Foreign Keys $usm_o_r000027bb00000000: [dbo].[usm_recurring_event].recurring_event_oidrecurring_event_oidvarchar(20)20
Yes
Foreign Keys $usm_o_r000027b100000000: [dbo].[usm_event_category_value].event_category_value_oidevent_category_value_oidvarchar(20)20
Yes
start_timeint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKusm_onetime_event: onetime_event_oidXPKusm_onetime_eventonetime_event_oid
Yes
Foreign Keys Foreign Keys
NameColumns
$usm_o_r000027b100000000event_category_value_oid->[dbo].[usm_event_category_value].[event_category_value_oid]
$usm_o_r000027bb00000000recurring_event_oid->[dbo].[usm_recurring_event].[recurring_event_oid]
$usm_o_r000027c500000000event_category_oid->[dbo].[usm_event_category].[event_category_oid]
$usm_o_r000027cf00000000calendar_oid->[dbo].[usm_calendar].[calendar_oid]
Permissions
TypeActionOwning Principal
GrantDeleteusmgroup
GrantInsertusmgroup
GrantSelectusmgroup
GrantUpdateusmgroup
SQL Script
CREATE TABLE [dbo].[usm_onetime_event]
(
[onetime_event_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[start] [int] NOT NULL,
[duration] [int] NULL,
[description] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[status] [char] (1) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[value] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CS_AS 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,
[recurring_event_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[event_category_value_oid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[start_time] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_onetime_event] ADD CONSTRAINT [XPKusm_onetime_event] PRIMARY KEY CLUSTERED ([onetime_event_oid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[usm_onetime_event] ADD CONSTRAINT [$usm_o_r000027b100000000] FOREIGN KEY ([event_category_value_oid]) REFERENCES [dbo].[usm_event_category_value] ([event_category_value_oid])
GO
ALTER TABLE [dbo].[usm_onetime_event] ADD CONSTRAINT [$usm_o_r000027bb00000000] FOREIGN KEY ([recurring_event_oid]) REFERENCES [dbo].[usm_recurring_event] ([recurring_event_oid])
GO
ALTER TABLE [dbo].[usm_onetime_event] ADD CONSTRAINT [$usm_o_r000027c500000000] FOREIGN KEY ([event_category_oid]) REFERENCES [dbo].[usm_event_category] ([event_category_oid])
GO
ALTER TABLE [dbo].[usm_onetime_event] ADD CONSTRAINT [$usm_o_r000027cf00000000] FOREIGN KEY ([calendar_oid]) REFERENCES [dbo].[usm_calendar] ([calendar_oid])
GO
GRANT SELECT ON  [dbo].[usm_onetime_event] TO [usmgroup]
GRANT INSERT ON  [dbo].[usm_onetime_event] TO [usmgroup]
GRANT DELETE ON  [dbo].[usm_onetime_event] TO [usmgroup]
GRANT UPDATE ON  [dbo].[usm_onetime_event] TO [usmgroup]
GO
Uses
Used By