Skip to content

Commit

Permalink
Merge pull request #1 from swisschain/dev-LM-683-mynosql-tables
Browse files Browse the repository at this point in the history
LM-683: renamed mynosql tables
  • Loading branch information
samodovdi authored Feb 5, 2021
2 parents 79c0989 + 12762ca commit 951dee6
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Lykke.Service.Assets.NoSql.Models
{
public class AssetAttributeNoSql: MyNoSqlDbEntity, IAssetAttribute
{
public const string TableName = "antares.asset.attribute";
public const string TableName = "antares_asset_attribute";

public static string GeneratePartitionKey(string assetId) => assetId;
public static string GenerateRowKey(string key) => key;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Lykke.Service.Assets.NoSql.Models
{
public class AssetCategoryNoSql : MyNoSqlDbEntity
{
public const string TableName = "antares.asset.category";
public const string TableName = "antares_asset_category";

public static string GeneratePartitionKey() => "category";
public static string GenerateRowKey(string id) => id;
Expand Down
6 changes: 3 additions & 3 deletions src/Lykke.Service.Assets.NoSql/Models/AssetConditionNoSql.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ namespace Lykke.Service.Assets.NoSql.Models
{
public class AssetConditionNoSql : MyNoSqlDbEntity
{
public const string TableName = "antares.asset.asset-condition-by-clients";
public const string TableName = "antares_asset_asset-condition-by-clients";

public static string GeneratePartitionKey(string clientId) => clientId;
public static string GenerateRowKey() => "--AssetCondition--";


public string ClientId { get; set; }

public List<AssetConditionModel> AssetConditions { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Lykke.Service.Assets.NoSql.Models
{
public class AssetExtendedInfoNoSql: MyNoSqlDbEntity
{
public const string TableName = "antares.asset.asset-extended-info";
public const string TableName = "antares_asset_asset-extended-info";

public const string DefaultInfoPartitionKey = "--default--";
public const string DefaultInfoRowKey = "--default--";
Expand Down
2 changes: 1 addition & 1 deletion src/Lykke.Service.Assets.NoSql/Models/AssetNoSql.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Lykke.Service.Assets.NoSql.Models
{
public class AssetNoSql: MyNoSqlDbEntity
{
public const string TableName = "antares.asset.assets";
public const string TableName = "antares_asset_assets";

public static string GeneratePartitionKey() => "assets";
public static string GenerateRowKey(string assetId) => assetId;
Expand Down
2 changes: 1 addition & 1 deletion src/Lykke.Service.Assets.NoSql/Models/AssetPairNoSql.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Lykke.Service.Assets.NoSql.Models
{
public class AssetPairNoSql: MyNoSqlDbEntity
{
public const string TableName = "antares.asset.asset-pairs";
public const string TableName = "antares_asset_asset-pairs";

public static string GeneratePartitionKey() => "AssetPair";
public static string GenerateRowKey(string assetPairId) => assetPairId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Lykke.Service.Assets.NoSql.Models
{
public class WatchListCustomNoSql : MyNoSqlDbEntity, IWatchList
{
public const string TableNameCustomWatchList = "antares.asset.custom-watch-list";
public const string TableNameCustomWatchList = "antares_asset_custom-watch-list";

public static string GeneratePartitionKey(string clientId) => clientId;
public static string GenerateRowKey(string watchListId) => watchListId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Lykke.Service.Assets.NoSql.Models
{
public class WatchListPredefinedNoSql : MyNoSqlDbEntity, IWatchList
{
public const string TableNamePredefinedWatchList = "antares.asset.predefined-watch-list";
public const string TableNamePredefinedWatchList = "antares_asset_predefined-watch-list";

public static string GeneratePartitionKey() => "predefined";
public static string GenerateRowKey(string watchListId) => watchListId;
Expand Down

0 comments on commit 951dee6

Please sign in to comment.