Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@samirbehara-zz
Created October 24, 2017 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samirbehara-zz/98a5085da9f57f8f0a45a53f81297f9e to your computer and use it in GitHub Desktop.
Save samirbehara-zz/98a5085da9f57f8f0a45a53f81297f9e to your computer and use it in GitHub Desktop.
CREATE TABLE [dbo].[snapshots](
[id] [INT] IDENTITY(1,1) NOT NULL,
[status] [NVARCHAR](4) NOT NULL,
[islast] [BIT] NOT NULL,
[version] [NVARCHAR](500) NULL,
[purge_status] [INT] NULL,
[period1_mode] [NVARCHAR](100) NULL,
[period1_param] [NVARCHAR](100) NULL,
[period2_mode] [NVARCHAR](100) NULL,
[period2_param] [NVARCHAR](100) NULL,
[period3_mode] [NVARCHAR](100) NULL,
[period3_param] [NVARCHAR](100) NULL,
[period4_mode] [NVARCHAR](100) NULL,
[period4_param] [NVARCHAR](100) NULL,
[period5_mode] [NVARCHAR](100) NULL,
[period5_param] [NVARCHAR](100) NULL,
[created_at] [BIGINT] NULL,
[build_date] [BIGINT] NULL,
[period1_date] [BIGINT] NULL,
[period2_date] [BIGINT] NULL,
[period3_date] [BIGINT] NULL,
[period4_date] [BIGINT] NULL,
[period5_date] [BIGINT] NULL,
[component_uuid] [NVARCHAR](50) NOT NULL,
[uuid] [NVARCHAR](50) NOT NULL,
CONSTRAINT [pk_snapshots] 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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment