<commit_before>﻿using finview.Entities.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace finview.DataAccess.Config
{
    public class TransactionsConfiguration : EntityTypeConfiguration<Transactions>
    {
        public TransactionsConfiguration()
        {
            this.ToTable("Transactions");

            this.HasKey(e => new { e.TransactionDate, e.ChequeNumer });

            this.Property(e => e.ChequeNumer)
               .HasMaxLength(100);

            this.Property(e => e.Category)
                .HasMaxLength(50);

            this.Property(e => e.posted_at)
                .IsFixedLength()
                .IsRowVersion()
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Computed)
                .HasMaxLength(8)
                .HasColumnType("timestamp");

            this.Property(e => e.Narration)
                .HasMaxLength(200);

            this.HasRequired(t => t.FileUploadTrack)
               .WithMany(t => t.Transactions)
               .HasForeignKey(d => d.FileUploadTrackId)
               .WillCascadeOnDelete(true);
        }
    }
}<commit_msg>ClosingBalance in primary key group<commit_after>﻿using finview.Entities.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace finview.DataAccess.Config
{
    public class TransactionsConfiguration : EntityTypeConfiguration<Transactions>
    {
        public TransactionsConfiguration()
        {
            this.ToTable("Transactions");

            this.HasKey(e => new { e.TransactionDate, e.ChequeNumer, e.ClosingBalance });

            this.Property(e => e.ChequeNumer)
               .HasMaxLength(100);

            this.Property(e => e.Category)
                .HasMaxLength(50);

            this.Property(e => e.posted_at)
                .IsFixedLength()
                .IsRowVersion()
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Computed)
                .HasMaxLength(8)
                .HasColumnType("timestamp");

            this.Property(e => e.Narration)
                .HasMaxLength(200);

            this.HasRequired(t => t.FileUploadTrack)
               .WithMany(t => t.Transactions)
               .HasForeignKey(d => d.FileUploadTrackId)
               .WillCascadeOnDelete(true);
        }
    }
}
{'fraction_non_alphanumeric': 0.10221205186880244, 'fraction_numerical': 0.006864988558352402, 'mean_word_length': 2.164053075995175, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1461875', 'n_tokens_mistral': 721, 'n_tokens_neox': 691, 'n_words': 109}