diff --git a/EWallet.Api/Data/scripts.sql b/EWallet.Api/Data/scripts.sql deleted file mode 100644 index 1f961a1..0000000 --- a/EWallet.Api/Data/scripts.sql +++ /dev/null @@ -1,34 +0,0 @@ - -BEGIN TRANSACTION; -CREATE TABLE [Currencies] ( - [Id] NVARCHAR(36) NOT NULL, - [Name] varchar(100) NOT NULL, - [Code] varchar(10) NOT NULL, - [Ratio] decimal(18,2) NOT NULL, - [ModifiedOnUtc] datetime2 NOT NULL, - [CreatedOnUtc] datetime2 NOT NULL, - CONSTRAINT [PK_Currencies] PRIMARY KEY ([Id]) - ); - -CREATE TABLE [Wallets] ( - [Id] uniqueidentifier NOT NULL, - [Balance] decimal(18,2) NOT NULL, - [StatusId] int NOT NULL, - [CurrencyId] NVARCHAR(36) NOT NULL, - [ModifiedOnUtc] datetime2 NOT NULL, - [CreatedOnUtc] datetime2 NOT NULL, - [Status] int NOT NULL, - CONSTRAINT [PK_Wallets] PRIMARY KEY ([Id]), - CONSTRAINT [FK_Wallets_Currencies_CurrencyId] FOREIGN KEY ([CurrencyId]) REFERENCES [Currencies] ([Id]) ON DELETE NO ACTION - ); - -CREATE NONCLUSTERED INDEX [IX_Currencies_Code] ON [Currencies] ([Code]); - -CREATE INDEX [IX_Wallets_CurrencyId] ON [Wallets] ([CurrencyId]); - -CREATE NONCLUSTERED INDEX [IX_Wallets_StatusId] ON [Wallets] ([StatusId]); - -COMMIT; -GO - -