32 lines
980 B
Transact-SQL
32 lines
980 B
Transact-SQL
--项目区域
|
|
CREATE TABLE [dbo].[WxProjectGpsAre](
|
|
[GpsAreId] [nvarchar](50) NOT NULL,
|
|
[GpsAreName] [nvarchar](50) NULL,
|
|
[ProjectId] [nvarchar](50) NULL,
|
|
[Enabled] [nvarchar](1) NULL,
|
|
CONSTRAINT [PK_WxProjectGpsAre] PRIMARY KEY CLUSTERED
|
|
(
|
|
[GpsAreId] 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
|
|
|
|
ALTER TABLE [dbo].[WxProjectGpsAre] ADD CONSTRAINT [DF_WxProjectGpsAre_Enabled] DEFAULT ('Y') FOR [Enabled]
|
|
GO
|
|
|
|
|
|
--项目区域坐标范围
|
|
CREATE TABLE [dbo].[WxProjectGpsPoint](
|
|
[LocationId] [nvarchar](50) NOT NULL,
|
|
[Point] [nvarchar](50) NULL,
|
|
[ProjectId] [nvarchar](50) NULL,
|
|
[Orders] [int] NOT NULL,
|
|
[GpsAreId] [nvarchar](50) NULL,
|
|
CONSTRAINT [PK_WxProjectGpsPoint] PRIMARY KEY CLUSTERED
|
|
(
|
|
[LocationId] 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 |