/*
Post-Deployment Script Template							
--------------------------------------------------------------------------------------
 This file contains SQL statements that will be appended to the build script.		
 Use SQLCMD syntax to include a file in the post-deployment script.			
 Example:      :r .\myfile.sql								
 Use SQLCMD syntax to reference a variable in the post-deployment script.		
 Example:      :setvar TableName MyTable							
               SELECT * FROM [$(TableName)]					
--------------------------------------------------------------------------------------
*/
DELETE [dbo].[Exchanges]
GO
INSERT [dbo].[Exchanges] ([ExchangeId], [ExchangeName], [UserId], [IsActive]) VALUES (1, N'BitFinex', NULL, 1)
GO
INSERT [dbo].[Exchanges] ([ExchangeId], [ExchangeName], [UserId], [IsActive]) VALUES (2, N'Bittrex', NULL, 1)
GO
INSERT [dbo].[Exchanges] ([ExchangeId], [ExchangeName], [UserId], [IsActive]) VALUES (3, N'Binance', NULL, 1)
GO
INSERT [dbo].[Exchanges] ([ExchangeId], [ExchangeName], [UserId], [IsActive]) VALUES (4, N'CEX', NULL, 1)
GO
INSERT [dbo].[Exchanges] ([ExchangeId], [ExchangeName], [UserId], [IsActive]) VALUES (5, N'HUOBI', NULL, 1)
GO
INSERT [dbo].[Exchanges] ([ExchangeId], [ExchangeName], [UserId], [IsActive]) VALUES (6, N'OKEx', NULL, 1)
GO

DELETE [CRT_Tasks]
GO
INSERT [dbo].[CRT_Tasks]([CRTT_Name], [CRTT_TableName], [CRTT_Source_TableName], [CRTT_UnitDefinition]) VALUES('1Hour', 'CRT_Data_1Hour', 'CRT_Data_1Minute', 'H1')
GO
INSERT [dbo].[CRT_Tasks]([CRTT_Name], [CRTT_TableName], [CRTT_Source_TableName], [CRTT_UnitDefinition]) VALUES('2Hours', 'CRT_Data_2Hours', 'CRT_Data_1Minute', 'H2')
GO
INSERT [dbo].[CRT_Tasks]([CRTT_Name], [CRTT_TableName], [CRTT_Source_TableName], [CRTT_UnitDefinition]) VALUES('4Hours', 'CRT_Data_4Hours', 'CRT_Data_1Minute', 'H4')
GO
INSERT [dbo].[CRT_Tasks]([CRTT_Name], [CRTT_TableName], [CRTT_Source_TableName], [CRTT_UnitDefinition]) VALUES('8Hours', 'CRT_Data_8Hours', 'CRT_Data_1Minute', 'H8')
GO
INSERT [dbo].[CRT_Tasks]([CRTT_Name], [CRTT_TableName], [CRTT_Source_TableName], [CRTT_UnitDefinition]) VALUES('1Day', 'CRT_Data_1Day', 'CRT_Data_1Minute', 'D1')
GO

DELETE [ActivePair]
INSERT [dbo].[ActivePair]([ExchangeId], [Base], [NonBase], [LastDate]) VALUES('1', 'ETH', 'BTC', NULL);
GO
INSERT [dbo].[ActivePair]([ExchangeId], [Base], [NonBase], [LastDate]) VALUES('2', 'BTC', 'ETH', NULL);
GO
INSERT [dbo].[ActivePair]([ExchangeId], [Base], [NonBase], [LastDate]) VALUES('3', 'ETH', 'BTC', NULL);
GO
INSERT [dbo].[ActivePair]([ExchangeId], [Base], [NonBase], [LastDate]) VALUES('4', 'BTC', 'USD', NULL);
GO