using Khaemhat.Core.Accounting;
using Khaemhat.Core.Parties;
using Khaemhat.Data.Mapping;
namespace Khaemhat.Data.CompanyDatabase;
/// Map of to fixed_asset_categories.
public sealed class FixedAssetCategoryMap : EntityMap
{
/// Creates the map.
public FixedAssetCategoryMap()
{
ToTable("fixed_asset_categories");
Map(x => x.Code).MaxLength(20);
Map(x => x.Description).MaxLength(100);
Map(x => x.MinisterialGroup).MaxLength(20);
}
}
/// Map of to fixed_assets.
public sealed class FixedAssetMap : EntityMap
{
/// Creates the map.
public FixedAssetMap()
{
ToTable("fixed_assets");
Map(x => x.Code).MaxLength(20);
Map(x => x.Description).MaxLength(200);
Map(x => x.DocumentReference).MaxLength(60);
Map(x => x.Location).MaxLength(100);
Map(x => x.SerialNumber).MaxLength(60);
Map(x => x.Notes).MaxLength(500);
}
}
/// Map of to fixed_asset_movements.
public sealed class FixedAssetMovementMap : EntityMap
{
/// Creates the map.
public FixedAssetMovementMap()
{
ToTable("fixed_asset_movements");
Map(x => x.Description).MaxLength(200);
}
}
/// Map of to accruals.
public sealed class AccrualDeferralMap : EntityMap
{
/// Creates the map.
public AccrualDeferralMap()
{
ToTable("accruals");
Map(x => x.Description).MaxLength(200);
Map(x => x.DocumentNumber).MaxLength(40);
}
}
/// Map of to closing_runs.
public sealed class ClosingRunMap : EntityMap
{
/// Creates the map.
public ClosingRunMap()
{
ToTable("closing_runs");
Map(x => x.YearCode).MaxLength(10);
Map(x => x.LockedBy).MaxLength(100);
}
}
/// Map of to closing_steps.
public sealed class ClosingStepMap : EntityMap
{
/// Creates the map.
public ClosingStepMap()
{
ToTable("closing_steps");
Map(x => x.ExecutedBy).MaxLength(100);
}
}
/// Map of to closing_prints.
public sealed class ClosingPrintMap : EntityMap
{
/// Creates the map.
public ClosingPrintMap()
{
ToTable("closing_prints");
Map(x => x.Kind).MaxLength(20);
Map(x => x.FileName).MaxLength(100);
}
}
/// Map of to intrastat_lists.
public sealed class IntrastatListMap : EntityMap
{
/// Creates the map.
public IntrastatListMap()
{
ToTable("intrastat_lists");
Map(x => x.FileName).MaxLength(60);
Map(x => x.Protocol).MaxLength(40);
}
}
/// Map of to intrastat_list_lines.
public sealed class IntrastatListLineMap : EntityMap
{
/// Creates the map.
public IntrastatListLineMap()
{
ToTable("intrastat_list_lines");
Map(x => x.DocumentNumber).MaxLength(40);
Map(x => x.CountryCode).MaxLength(2);
Map(x => x.VatNumber).MaxLength(20);
Map(x => x.NomenclatureCode).MaxLength(10);
Map(x => x.Description).MaxLength(200);
Map(x => x.TransactionNature).MaxLength(2);
Map(x => x.DeliveryTerms).MaxLength(3);
Map(x => x.TransportMode).MaxLength(1);
Map(x => x.OriginCountry).MaxLength(2);
Map(x => x.Province).MaxLength(2);
Map(x => x.SupplyMode).MaxLength(1);
Map(x => x.PaymentMode).MaxLength(1);
Map(x => x.PaymentCountry).MaxLength(2);
Map(x => x.CorrectionSign).MaxLength(1);
}
}
/// Map of to intent_declarations.
public sealed class IntentDeclarationMap : EntityMap
{
/// Creates the map.
public IntentDeclarationMap()
{
ToTable("intent_declarations");
Map(x => x.Number).MaxLength(40);
Map(x => x.Protocol).MaxLength(40);
Map(x => x.Notes).MaxLength(500);
}
}