-
Notifications
You must be signed in to change notification settings - Fork 1
/
create_tables.sql
63 lines (60 loc) · 1.48 KB
/
create_tables.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
56
57
58
59
60
61
62
63
USE [atlas_staging]
GO
SET
ANSI_NULLS ON
GO
SET
QUOTED_IDENTIFIER ON
GO
CREATE TABLE [raw].[tableau-groups](
[UserID] [int] NULL,
[GroupName] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [raw].[tableau-hierarchy](
[ParentID] [nvarchar](max) NULL,
[ChildID] [nvarchar](max) NULL,
[Index] [int] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [raw].[tableau-queries](
[ReportId] [nvarchar](max) NULL,
[Query] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [raw].[tableau-reports](
[Type] [nvarchar](max) NULL,
[ID] [int] NULL,
[Name] [nvarchar](max) NULL,
[Description] [nvarchar](max) NULL,
[Created] [datetime] NULL,
[Updated] [datetime] NULL,
[Index] [int] NULL,
[URL] [nvarchar](max) NULL,
[WorkbookName] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [raw].[tableau-rundata](
[EventDate] [datetime] NULL,
[UserID] [int] NULL,
[DashboardID] [int] NULL [Nviews] [int] NULL,
[Series] [int] NULL
) ON [PRIMARY]
GO
CREATE TABLE [raw].[tableau-users](
[UserID] [int] NULL,
[Username] [nvarchar](max) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE raw.TableauSubscriptions
(
Id int NULL
,TargetType nVarchar(50) NULL
,TargetId int NULL
, Created datetime NULL
, LastRun dateTime NULL
, UserId int NULL
, UserName nVarchar(50) NULL
, Description nVarchar(250) NULL
, Details nVarchar(1000) NULL
)