Fix DbContext

This commit is contained in:
VegaZ
2018-09-23 23:13:05 +02:00
parent a74d080d02
commit 3c527b5f7a
4 changed files with 84 additions and 3 deletions

View File

@@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
/**
* @overview Life of German Reallife - Logs BankAccountTransactionHistory (BankAccountTransactionHistory.cs)
* @author VegaZ
* @copyright (c) 2008 - 2018 Life of German
*/
namespace reallife_gamemode.Server.Logs
{
public class BankAccountTransactionHistory
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[StringLength(32)]
public string Sender { get; set; }
public float SenderBalance { get; set; }
public float MoneySent { get; set; }
[StringLength(32)]
public string Receiver { get; set; }
public float ReceiverBalance { get; set; }
public float NewSenderBalance { get; set; }
public float NewReceiverBalance { get; set; }
public float Fee { get; set; }
[Timestamp]
public byte[] Timestamp { get; set; }
}
}