Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #317 from aspriddell/operator-info-keys
Browse files Browse the repository at this point in the history
specify primary keys for modern operator info
  • Loading branch information
aspriddell authored May 21, 2022
2 parents d033dbe + b4e02c0 commit d8e8309
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DragonFruit.Six.Api/Modern/Entities/ModernOperatorInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under Apache-2. Refer to the LICENSE file for more info

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using DragonFruit.Six.Api.Enums;
using Newtonsoft.Json;
Expand All @@ -17,6 +18,7 @@ public class ModernOperatorInfo
/// <summary>
/// Operator Identifier
/// </summary>
[Key]
[Column("id")]
[JsonProperty("id")]
public string OperatorId { get; set; }
Expand All @@ -31,7 +33,7 @@ public class ModernOperatorInfo
/// <summary>
/// Numeric value representing the relative release order of the operator
/// </summary>
[Column("order")]
[Column("ord")]
[JsonProperty("ord")]
public ushort Order { get; set; }

Expand Down

0 comments on commit d8e8309

Please sign in to comment.