And ……..
SET IDENTITY_INSERT [dbo].[Site] ON
INSERT [dbo].[Site] ([SiteID], [Clientid], [SiteAddress], [SiteName], [SitePostCode], [SiteSuburb], [SiteTypeID]) VALUES (1, 63, N'Keith Rd', N'Rossmoyne Senior High School', N'6148', N'Rossmoyne ', 4)
INSERT [dbo].[Site] ([SiteID], [Clientid], [SiteAddress], [SiteName], [SitePostCode], [SiteSuburb], [SiteTypeID]) VALUES (2, 80, N'16 Camp Rd', N'Murray Leisure Centre', N'6208', N'Pinjarra ', 26)
INSERT [dbo].[Site] ([SiteID], [Clientid], [SiteAddress], [SiteName], [SitePostCode], [SiteSuburb], [SiteTypeID]) VALUES (3, 69, N'54 Johnson Street', N'Bruce Rock', N'6418', N'Bruce Rock', 26)
INSERT [dbo].[Site] ([SiteID], [Clientid], [SiteAddress], [SiteName], [SitePostCode], [SiteSuburb], [SiteTypeID]) VALUES (4, 68, N'Lot 246, Poinciana St', N'Ashburton Pools', N'6751', N'Tom Price', 26)
INSERT [dbo].[Site] ([SiteID], [Clientid], [SiteAddress], [SiteName], [SitePostCode], [SiteSuburb], [SiteTypeID]) VALUES (5, 71, N'Cnr Larke Crescent & Kirkwood Street', N'Corrigin Pool', N'6375', N'Corrigin', 26)
INSERT [dbo].[Site] ([SiteID], [Clientid], [SiteAddress], [SiteName], [SitePostCode], [SiteSuburb], [SiteTypeID]) VALUES (6, 72, N'Myers Street', N'Dalwallinu Aquatic Centre', N'6609', N'Dalwallinu', 26)
INSERT [dbo].[Site] ([SiteID], [Clientid], [SiteAddress], [SiteName], [SitePostCode], [SiteSuburb], [SiteTypeID]) VALUES (7, 73, N'New Street', N'Iluka Aquatic Centre (Gingin)', N'6503', N'Gingin ', 26)
SET IDENTITY_INSERT [dbo].[Site] OFF
SET IDENTITY_INSERT [dbo].[StockDelivered] ON
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (55, CAST(N'2019-12-17T16:45:00.000' AS DateTime), N'9319737090507', 2035, 3, 29, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (56, CAST(N'2019-12-17T16:46:00.000' AS DateTime), N'9319737489943', 510, 2, 29, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (57, CAST(N'2019-12-17T18:18:00.000' AS DateTime), N'9319737090507', 2035, 3, 44, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (58, CAST(N'2019-12-17T18:18:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 1, 44, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (59, CAST(N'2019-12-17T18:19:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 2, 29, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (60, CAST(N'2019-12-17T18:22:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 2, 44, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (61, CAST(N'2019-12-17T20:03:00.000' AS DateTime), N'9319737090507', 2035, 5, 28, N'VicP@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (62, CAST(N'2019-12-17T20:04:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 3, 28, N'VicP@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (63, CAST(N'2019-12-17T02:05:00.000' AS DateTime), N'SEAQ0515CHPK0099', 487, 0.05, 34, N'geneW@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (64, CAST(N'2019-12-17T02:05:00.000' AS DateTime), N'SEAQ0518CHK01800', 500, 0.05, 34, N'geneW@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (65, CAST(N'2019-12-18T17:09:00.000' AS DateTime), N'9319737489738', 512, 2, 66, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (66, CAST(N'2019-12-18T17:10:00.000' AS DateTime), N'9319737142619', 457, 1, 66, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (67, CAST(N'2019-12-18T17:11:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 1, 66, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (68, CAST(N'2019-12-18T19:01:00.000' AS DateTime), N'9319737142619', 457, 2, 29, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (69, CAST(N'2019-12-18T19:23:00.000' AS DateTime), N'9319737090507', 2035, 5, 79, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (70, CAST(N'2019-12-18T19:28:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 2, 79, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (71, CAST(N'2019-12-18T19:40:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 1, 79, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (72, CAST(N'2019-12-18T20:58:00.000' AS DateTime), N'SEAD1995CPS3', 1995, 50, 48, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (73, CAST(N'2019-12-18T21:20:00.000' AS DateTime), N'9319737142619', 457, 2, 48, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (74, CAST(N'2019-12-18T01:08:00.000' AS DateTime), N'SEAD1994CPS2
', 1994, 17, 4, N'garry@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (75, CAST(N'2019-12-18T01:09:00.000' AS DateTime), N'SEAD1994CPS2
', 1994, 17, 5, N'garry@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (76, CAST(N'2019-12-18T01:10:00.000' AS DateTime), N'SEAD1994CPS2
', 1994, 2, 5, N'garry@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (77, CAST(N'2019-12-18T01:13:00.000' AS DateTime), N'SEAD1996CPS4', 1996, 2, 56, N'chrisR@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (78, CAST(N'2019-12-18T01:20:00.000' AS DateTime), N'SEAD1996CPS4', 1996, 5, 56, N'garry@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (79, CAST(N'2019-12-18T01:21:00.000' AS DateTime), N'SEAD1996CPS4', 1996, 3, 56, N'garry@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (80, CAST(N'2019-12-18T01:21:00.000' AS DateTime), N'SEAD1996CPS4', 1996, 3, 55, N'garry@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (81, CAST(N'2019-12-18T03:21:00.000' AS DateTime), N'SEAD1994CPS2
', 1994, 2, 11, N'chrisR@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (82, CAST(N'2019-12-18T03:49:00.000' AS DateTime), N'4049991084015', 592, 2, 79, N'chrisR@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (83, CAST(N'2019-12-18T03:50:00.000' AS DateTime), N'4049991059143', 579, 1, 79, N'chrisR@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (84, CAST(N'2019-12-18T03:52:00.000' AS DateTime), N'4049991084046', 577, 1, 79, N'chrisR@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (85, CAST(N'2019-12-18T04:15:00.000' AS DateTime), N'9319737090224', 2010, 0.02, 11, N'chrisR@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (86, CAST(N'2019-12-18T04:17:00.000' AS DateTime), N'9319737090224', 2010, 0.02, 8, N'chrisR@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (87, CAST(N'2019-12-19T16:02:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 3, 79, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (88, CAST(N'2019-12-19T16:34:00.000' AS DateTime), N'4049991084015', 592, 1, 80, N'garry@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (89, CAST(N'2019-12-19T20:56:00.000' AS DateTime), N'9319737090507', 2035, 1, 50, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (90, CAST(N'2019-12-19T20:57:00.000' AS DateTime), N'9319737090507', 2035, 1, 50, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (91, CAST(N'2019-12-19T20:57:00.000' AS DateTime), N'9319737090507', 2035, 1, 50, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (92, CAST(N'2019-12-19T20:59:00.000' AS DateTime), N'9319737090507', 2035, 1, 50, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (93, CAST(N'2019-12-19T21:04:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 2, 50, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (94, CAST(N'2019-12-20T16:12:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 1, 69, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (95, CAST(N'2019-12-20T17:43:00.000' AS DateTime), N'9319737142619', 457, 4, 31, N'VicP@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (96, CAST(N'2019-12-20T17:46:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 4, 49, N'VicP@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (97, CAST(N'2019-12-20T17:54:00.000' AS DateTime), N'9319737123403', 460, 1, 59, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (98, CAST(N'2019-12-20T17:55:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 1, 59, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (99, CAST(N'2019-12-20T20:33:00.000' AS DateTime), N'9319737090507', 2035, 3, 52, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (100, CAST(N'2019-12-20T20:33:00.000' AS DateTime), N'9319737142619', 457, 1, 52, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (101, CAST(N'2019-12-20T20:34:00.000' AS DateTime), N'9319737090507', 2035, 1, 69, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (102, CAST(N'2019-12-20T20:34:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 4, 52, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (103, CAST(N'2019-12-20T01:51:00.000' AS DateTime), N'SEAD2037CPA', 2039, 2, 14, N'geneW@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (104, CAST(N'2019-12-20T01:52:00.000' AS DateTime), N'SEAD1993CPS', 1993, 1, 49, N'geneW@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (105, CAST(N'2019-12-21T18:54:00.000' AS DateTime), N'9319737090507', 2035, 14, 7, N'Cale@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (106, CAST(N'2019-12-21T00:01:00.000' AS DateTime), N'SEAD1994CPS2
', 1994, 25, 2, N'scottT@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (107, CAST(N'2019-12-22T16:50:00.000' AS DateTime), N'9319737090507', 2035, 2, 71, N'garry@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (108, CAST(N'2019-12-22T17:04:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 2, 71, N'garry@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (109, CAST(N'2019-12-22T18:29:00.000' AS DateTime), N'9319737090507', 2035, 2, 28, N'Cale@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (110, CAST(N'2019-12-22T19:54:00.000' AS DateTime), N'SEAQ0506CHPlus', 2032, 4, 79, N'robG@Xxxxxxxxx.com')
INSERT [dbo].[StockDelivered] ([DeliveredId], [DeliveryDate], [Barcode], [ShtStockId], [Quantity], [WaterBodyID], [RegistrantEmail]) VALUES (111, CAST(N'2019-12-22T20:17:00.000' AS DateTime), N'SEAD1994CPS2
', 1994, 1, 28, N'robG@Xxxxxxxxx.com')
SET IDENTITY_INSERT [dbo].[StockDelivered] OFF
SET IDENTITY_INSERT [dbo].[StockLink] ON
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (1, N'1993 ', 1, N'1986 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (2, N'1994 ', 25, N'511 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (3, N'1995 ', 25, N'462 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (4, N'1996 ', 25, N'466 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (6, N'507 ', 1, N'507 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (7, N'485 ', 1, N'485 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (8, N'2031 ', 1, N'449 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (9, N'2032 ', 1, N'449 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (10, N'500 ', 1, N'500 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (11, N'487 ', 1, N'487 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (12, N'481 ', 1, N'481 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (13, N'2038 ', 20, N'500 ')
INSERT [dbo].[StockLink] ([StockLinkID], [StockID], [Divisor], [AssociatedID]) VALUES (14, N'2039 ', 20, N'487 ')
SET IDENTITY_INSERT [dbo].[StockLink] OFF
ALTER TABLE [dbo].[Site] WITH CHECK ADD CONSTRAINT [FK_Site_Clients_Clientid] FOREIGN KEY([Clientid])
REFERENCES [dbo].[Clients] ([Clientid])
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[Site] CHECK CONSTRAINT [FK_Site_Clients_Clientid]
GO
ALTER TABLE [dbo].[Site] WITH CHECK ADD CONSTRAINT [FK_Site_SiteType_SiteTypeID] FOREIGN KEY([SiteTypeID])
REFERENCES [dbo].[SiteType] ([SiteTypeID])
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[Site] CHECK CONSTRAINT [FK_Site_SiteType_SiteTypeID]
GO
ALTER TABLE [dbo].[StockDelivered] WITH CHECK ADD CONSTRAINT [FK_StockDelivered_ShtStock] FOREIGN KEY([ShtStockId])
REFERENCES [dbo].[ShtStock] ([ShtStockId])
GO
ALTER TABLE [dbo].[StockDelivered] CHECK CONSTRAINT [FK_StockDelivered_ShtStock]
GO
GO
/****** Object: Table [dbo].[Staffs] Script Date: 2/02/2020 12:22:58 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Staffs](
[StaffID] [int] IDENTITY(1,1) NOT NULL,
[DivisionID] [int] NOT NULL,
[HireDate] [datetime2](7) NOT NULL,
[StaffName] [nvarchar](320) NOT NULL,
[TerminationDate] [datetime2](7) NULL,
[StaffMobileNumber] [varchar](50) NULL,
[RegistrantEmail] [nchar](190) NULL,
CONSTRAINT [PK_Staffs] PRIMARY KEY CLUSTERED
(
[StaffID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[Staffs] ON
INSERT [dbo].[Staffs] ([StaffID], [DivisionID], [HireDate], [StaffName], [TerminationDate], [StaffMobileNumber], [RegistrantEmail]) VALUES (4, 1, CAST(N'2016-01-18T00:00:00.0000000' AS DateTime2), N'Scott ', NULL, N'00000', N'scottT@Xxxxxxxxxxxxxx.com ')
INSERT [dbo].[Staffs] ([StaffID], [DivisionID], [HireDate], [StaffName], [TerminationDate], [StaffMobileNumber], [RegistrantEmail]) VALUES (5, 1, CAST(N'2016-01-18T00:00:00.0000000' AS DateTime2), N'Garry R', NULL, N'00000', N'garry@Xxxxxxxxxxxxxx.com ')
INSERT [dbo].[Staffs] ([StaffID], [DivisionID], [HireDate], [StaffName], [TerminationDate], [StaffMobileNumber], [RegistrantEmail]) VALUES (8, 1, CAST(N'2016-01-18T00:00:00.0000000' AS DateTime2), N'Tony R', NULL, N'00000', N'TonyR@Xxxxxxxxxxxxxx.com ')
INSERT [dbo].[Staffs] ([StaffID], [DivisionID], [HireDate], [StaffName], [TerminationDate], [StaffMobileNumber], [RegistrantEmail]) VALUES (9, 1, CAST(N'2016-01-18T00:00:00.0000000' AS DateTime2), N'Chris R', NULL, N'00000', N'chrisR@Xxxxxxxxxxxxxx.com ')
INSERT [dbo].[Staffs] ([StaffID], [DivisionID], [HireDate], [StaffName], [TerminationDate], [StaffMobileNumber], [RegistrantEmail]) VALUES (11, 1, CAST(N'2016-01-18T00:00:00.0000000' AS DateTime2), N'Victor P', NULL, N'00000', N'VicP@Xxxxxxxxxxxxxx.com ')
INSERT [dbo].[Staffs] ([StaffID], [DivisionID], [HireDate], [StaffName], [TerminationDate], [StaffMobileNumber], [RegistrantEmail]) VALUES (21, 1, CAST(N'2016-04-18T00:00:00.0000000' AS DateTime2), N'Gene W', NULL, N'00000', N'geneW@Xxxxxxxxxxxxxx.com ')
INSERT [dbo].[Staffs] ([StaffID], [DivisionID], [HireDate], [StaffName], [TerminationDate], [StaffMobileNumber], [RegistrantEmail]) VALUES (22, 1, CAST(N'2011-01-01T00:00:00.0000000' AS DateTime2), N'Robert G', NULL, N'00000', N'robG@Xxxxxxxxxxxxxx.com ')
INSERT [dbo].[Staffs] ([StaffID], [DivisionID], [HireDate], [StaffName], [TerminationDate], [StaffMobileNumber], [RegistrantEmail]) VALUES (23, 1, CAST(N'2019-10-10T00:00:00.0000000' AS DateTime2), N'Cate L', NULL, N'00000', N'Cale@Xxxxxxxxxxxxxx.com ')
SET IDENTITY_INSERT [dbo].[Staffs] OFF
ALTER TABLE [dbo].[Staffs] WITH CHECK ADD CONSTRAINT [FK_Staffs_Divisions_DivisionID] FOREIGN KEY([DivisionID])
REFERENCES [dbo].[Divisions] ([DivisionID])
ON DELETE CASCADE
GO
ALTER TABLE [dbo].[Staffs] CHECK CONSTRAINT [FK_Staffs_Divisions_DivisionID]
GO