hi indresh
here's my structure table:
shipment_assignment
event_with_location
geofence
USE [InovatrackVTS]
GO
/****** Object: Table [dbo].[shipment_assignment] Script Date: 7/3/2017 9:18:42 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[shipment_assignment](
[id] [int] IDENTITY(1,1) NOT NULL,
[vehicle_id] [int] NULL,
[shipment_no] [varchar](20) NULL,
[origin_id] [int] NULL,
[destination_id] [int] NULL,
[begin_date_time] [datetime] NULL,
[end_date_time] [datetime] NULL,
[create_date] [datetime] NULL,
[active] [bit] NULL,
CONSTRAINT [PK_shipment_assignment_1] PRIMARY KEY CLUSTERED
(
[id] 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 ANSI_PADDING OFF
GO
USE [InovatrackVTS]
GO
/****** Object: Table [dbo].[event_with_location] Script Date: 7/3/2017 9:19:48 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[event_with_location](
[event_id] [bigint] NULL,
[vehicle_id] [int] NULL,
[date_time] [datetime] NULL,
[event_type] [smallint] NULL,
[geofence_name] [varchar](50) NULL,
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
USE [InovatrackVTS]
GO
/****** Object: Table [dbo].[geofence] Script Date: 7/3/2017 9:21:11 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[geofence](
[geofence_id] [int] NOT NULL,
[geofence_name] [varchar](50) NULL,
[geofence_type] [varchar](30) NULL,
CONSTRAINT [PK_aoi] PRIMARY KEY CLUSTERED
(
[geofence_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO