-
Notifications
You must be signed in to change notification settings - Fork 9
/
MerakiTableCreationScript.sql
55 lines (36 loc) · 1.08 KB
/
MerakiTableCreationScript.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
Deployment script for merakidb
*/
Use merakidb
GO
SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON;
SET NUMERIC_ROUNDABORT OFF;
GO
PRINT N'Creating [dbo].[tblMeraki]...';
GO
CREATE TABLE [dbo].[tblMeraki] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[Version] VARCHAR (5) NULL,
[Secret] VARCHAR (50) NULL,
[Type] VARCHAR (20) NULL,
[apFloors] VARCHAR (50) NULL,
[apTags] VARCHAR (50) NULL,
[apMac] VARCHAR (50) NULL,
[manufacturer] VARCHAR (50) NULL,
[lng] DECIMAL (18) NULL,
[lat] DECIMAL (18) NULL,
[x] DECIMAL (18) NULL,
[y] DECIMAL (18) NULL,
[unc] DECIMAL (18) NULL,
[seentime] DATETIME NULL,
[ssid] VARCHAR (50) NULL,
[os] CHAR (10) NULL,
[clientMac] VARCHAR (50) NULL,
[seenEpoch] VARCHAR (50) NULL,
[rssi] VARCHAR (50) NULL,
PRIMARY KEY CLUSTERED ([Id] ASC)
);
GO
GO
PRINT N'Update complete.';
GO