Tables [dbo].[SysuserLocation]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created4:02:11 PM Tuesday, May 26, 2015
Last Modified4:02:11 PM Tuesday, May 26, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_SysuserLocation: SysuserLocationIDSysuserLocationIDint4
No
1 - 1
Foreign Keys FK_SysuserLocation_Sysuser: [dbo].[Sysuser].SysuserFIDSysuserFIDint4
No
LastLocationCity[dbo].[AddressCity]26
Yes
LastLocationState[dbo].[AddressState]2
Yes
LastLocationDatedatetime8
Yes
NextLocationCity[dbo].[AddressCity]26
Yes
NextLocationState[dbo].[AddressState]2
Yes
NextLocationDatedatetime8
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_SysuserLocation: SysuserLocationIDPK_SysuserLocationSysuserLocationID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_SysuserLocation_SysuserCascadeSysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SysuserLocation]
(
[SysuserLocationID] [int] NOT NULL IDENTITY(1, 1),
[SysuserFID] [int] NOT NULL,
[LastLocationCity] [dbo].[AddressCity] NULL,
[LastLocationState] [dbo].[AddressState] NULL,
[LastLocationDate] [datetime] NULL,
[NextLocationCity] [dbo].[AddressCity] NULL,
[NextLocationState] [dbo].[AddressState] NULL,
[NextLocationDate] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SysuserLocation] ADD CONSTRAINT [PK_SysuserLocation] PRIMARY KEY NONCLUSTERED  ([SysuserLocationID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SysuserLocation] ADD CONSTRAINT [FK_SysuserLocation_Sysuser] FOREIGN KEY ([SysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[SysuserLocation] TO [MssExec]
GRANT INSERT ON  [dbo].[SysuserLocation] TO [MssExec]
GRANT DELETE ON  [dbo].[SysuserLocation] TO [MssExec]
GRANT UPDATE ON  [dbo].[SysuserLocation] TO [MssExec]
GO
Uses