54 Commits

Author SHA1 Message Date
7c61f6c80f * Removed comment
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-04-10 06:59:20 +02:00
b17411de19 * Removed comment
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-04-10 06:41:26 +02:00
6fac50225a Update .woodpecker.yml 2026-04-10 04:29:31 +00:00
f5ba09f58d * Fixed issue with wrong prices in columns
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-04-10 06:06:25 +02:00
4f48158bc7 * Fixed precision 2026-03-25 13:11:35 +01:00
448e9c554d Update .woodpecker.yml
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-15 12:55:30 +00:00
c5b6b10928 Update .woodpecker.yml
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-15 12:37:08 +00:00
9a6f2040cf Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 12:17:32 +00:00
f7926c78ad Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 12:11:29 +00:00
c15b325950 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 12:04:46 +00:00
1051e22ab3 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:55:05 +00:00
6b985d2cf7 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:48:23 +00:00
8f859e0cc7 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:46:07 +00:00
d007e36081 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:42:51 +00:00
d5c8e3a683 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:37:06 +00:00
9efa5a132f Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:21:05 +00:00
0200cd4b61 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:17:06 +00:00
ed508765eb Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:14:18 +00:00
b0f78e395f Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:09:37 +00:00
260897dd87 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:07:15 +00:00
065744d15a Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 11:04:27 +00:00
78806115ba Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:57:33 +00:00
cfe7924d25 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:54:43 +00:00
f3060013d3 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:52:31 +00:00
3d59cb1b68 Update .woodpecker.yml 2026-01-15 10:51:23 +00:00
8b3d04c6aa Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:48:53 +00:00
ea6c490edc Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:46:10 +00:00
353737bae0 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:43:37 +00:00
89de720f93 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:40:10 +00:00
492c70f384 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:37:16 +00:00
7d8de5c78f Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:32:39 +00:00
e9d6dbaa5c Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:25:34 +00:00
c501a84d53 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:18:49 +00:00
08800a4c10 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:08:01 +00:00
dfc405f4b0 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:05:44 +00:00
29ef6383b1 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:02:58 +00:00
86ff97b311 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 10:00:20 +00:00
cf878470a5 Update .woodpecker.yml 2026-01-15 09:57:25 +00:00
a0451c42de Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 09:53:19 +00:00
76b069a51e Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:44:14 +00:00
606bd31e21 Update .woodpecker.yml 2026-01-15 08:36:34 +00:00
e391d06085 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:27:16 +00:00
216a966f39 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:20:55 +00:00
fa8c0f3eb2 Update .woodpecker.yml
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
2026-01-15 08:17:53 +00:00
c064479a2f Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:14:41 +00:00
531260eb9c Update .woodpecker.yml 2026-01-15 08:14:11 +00:00
81af6f02d9 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:08:45 +00:00
7c2001ad34 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:04:34 +00:00
9aaeaa0548 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 08:01:28 +00:00
7a8d3cf10c Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:58:05 +00:00
27dbb780ec Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:54:22 +00:00
4863d9120b Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:52:08 +00:00
b04546260a Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:48:41 +00:00
6d1f87f9d9 Update .woodpecker.yml
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline failed
2026-01-15 07:43:48 +00:00
2 changed files with 152 additions and 86 deletions

View File

@@ -108,11 +108,34 @@ steps:
--skip-duplicate
done
depends_on: [pack-datamodels]
containerize-apps:
select-projects-for-container:
image: mcr.microsoft.com/dotnet/sdk:latest
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- |
set -euf
cd "${CI_WORKSPACE}"
> projects-to-build.txt
find . -name "*.csproj" -type f | while read csproj; do
PROJECT_TYPE=$(dotnet msbuild "$csproj" -getProperty:ProjectType -noLogo 2>/dev/null || echo "Unknown")
if [[ "$PROJECT_TYPE" == "Linux" || "$PROJECT_TYPE" == "Api" || "$PROJECT_TYPE" == "ServerProcess" || "$PROJECT_TYPE" == "Blazor" ]]; then
PROJECT_NAME=$(basename "$csproj" .csproj)
PROJECT_DIR=$(dirname "$csproj")
echo "→ Dodaję $PROJECT_NAME (typ: $PROJECT_TYPE)"
echo "$PROJECT_DIR|$PROJECT_NAME" >> projects-to-build.txt
else
PROJECT_NAME=$(basename "$csproj" .csproj)
echo "→ Pomijam $PROJECT_NAME (typ: $PROJECT_TYPE)"
fi
done
echo "=== Znaleziono projektow do budowy ==="
cat projects-to-build.txt || echo "Brak projektów!"
wc -l < projects-to-build.txt
depends_on: [publish-datamodels-to-baget]
containerize-apps:
image: docker:27-cli
environment:
GITEA_USER:
from_secret: gitea_registry_user
@@ -122,52 +145,96 @@ steps:
- |
set -euf
cd "${CI_WORKSPACE}"
# Instalacja narzędzi Docker w kontenerze .NET (Alpine-based)
apk update && apk add --no-cache docker docker-cli-buildx
echo "DEBUG: Użytkownik = '$GITEA_USER'"
echo "DEBUG: Token (pierwsze 4 znaki) = $GITEA_TOKEN..."
echo "$GITEA_TOKEN" | docker login git.modwad.pl -u "$GITEA_USER" --password-stdin
dotnet restore
find . -name "*.csproj" -type f | while read csproj; do
PROJECT_DIR=$(dirname "$csproj")
PROJECT_NAME=$(basename "$csproj" .csproj)
PROJECT_TYPE=$(dotnet msbuild "$csproj" -getProperty:ProjectType -noLogo 2>/dev/null || echo "Unknown")
DEPLOY_TO_CENTRAL=$(dotnet msbuild "$csproj" -getProperty:DeployToCentral -noLogo 2>/dev/null || echo "false")
if [ "$DEPLOY_TO_CENTRAL" != "true" ] || [[ "$PROJECT_TYPE" == "Unknown" || "$PROJECT_TYPE" == "DataModel" || "$PROJECT_TYPE" == "LinuxLocal" ]]; then
echo "Pomijam $PROJECT_NAME ($PROJECT_TYPE)"
continue
fi
IMAGE_NAME="trent/${PROJECT_NAME,,}"
FULL_IMAGE="git.modwad.pl/${IMAGE_NAME}"
cat > "${PROJECT_DIR}/Dockerfile.temp" <<-EOF
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore "${PROJECT_NAME}.csproj"
RUN dotnet publish "${PROJECT_NAME}.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:8080
ENTRYPOINT ["dotnet", "${PROJECT_NAME}.dll"]
EOF
echo "Buduję → ${FULL_IMAGE}:${CI_COMMIT_SHA}"
docker buildx build --platform linux/amd64 \
-t "${FULL_IMAGE}:${CI_COMMIT_SHA}" \
-t "${FULL_IMAGE}:latest" \
-f "${PROJECT_DIR}/Dockerfile.temp" \
"${PROJECT_DIR}"
docker push "${FULL_IMAGE}:${CI_COMMIT_SHA}"
docker push "${FULL_IMAGE}:latest"
rm -f "${PROJECT_DIR}/Dockerfile.temp"
echo "Opublikowano: ${FULL_IMAGE}:latest"
if [ ! -s projects-to-build.txt ]; then
echo "Brak projektow"
exit 0
fi
rm -f NuGet.Config
cat > NuGet.Config <<EOF
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
<add key="BaGet" value="http://127.0.0.1:8080/v3/index.json" />
</packageSources>
</configuration>
EOF
cat projects-to-build.txt | while IFS='|' read -r PDIR PNAME; do
PDIR=$(echo "$PDIR" | xargs)
PNAME=$(echo "$PNAME" | xargs)
test -z "$PNAME" && continue
test ! -d "$PDIR" && continue
echo -n "git.modwad.pl/fa/" > /tmp/tag.txt
echo "$PNAME" | tr 'A-Z' 'a-z' | tr -d '\n' >> /tmp/tag.txt
echo "$PNAME" > /tmp/pname.txt
echo "$PDIR" | sed 's|^\./||' > /tmp/pdir.txt
cat > "Dockerfile.temp" <<'ENDOFDOCKERFILE'
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 8080
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore "%%PROJECTDIR%%/%%PROJECTNAME%%.csproj"
RUN dotnet publish "%%PROJECTDIR%%/%%PROJECTNAME%%.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore
FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENV ASPNETCORE_URLS=http://+:8080
ENTRYPOINT ["dotnet", "%%PROJECTNAME%%.dll"]
ENDOFDOCKERFILE
REAL_PNAME=$(cat /tmp/pname.txt)
REAL_PDIR=$(cat /tmp/pdir.txt)
sed "s|%%PROJECTNAME%%|$REAL_PNAME|g; s|%%PROJECTDIR%%|$REAL_PDIR|g" "Dockerfile.temp" > "Dockerfile.final"
echo "=== Budowanie obrazu ==="
DOCKER_BUILDKIT=0 docker build \
--network=host \
-t "$(cat /tmp/tag.txt):${CI_COMMIT_SHA}" \
-t "$(cat /tmp/tag.txt):latest" \
-f "Dockerfile.final" \
. || { echo "BUILD FAILED"; exit 1; }
echo "=== Obraz zbudowany, sprawdzam ==="
docker images | grep "$(cat /tmp/tag.txt | sed 's|git.modwad.pl/||')" || echo "Obraz nie znaleziony w docker images"
echo "=== Pushing SHA tag ==="
docker push "$(cat /tmp/tag.txt):${CI_COMMIT_SHA}" || { echo "PUSH SHA FAILED"; exit 1; }
echo "=== Pushing latest tag ==="
docker push "$(cat /tmp/tag.txt):latest" || { echo "PUSH LATEST FAILED"; exit 1; }
echo "=== SUCCESS: $(cat /tmp/tag.txt) ==="
rm -f "Dockerfile.temp" "Dockerfile.final"
done
depends_on: [publish-datamodels-to-baget]
echo "=== WSZYSTKIE PROJEKTY ZAKONCZONE ==="
depends_on: [select-projects-for-container]
cleanup-docker:
image: docker:27-cli
commands:
- |
echo "=== Czyszczenie starych obrazów ==="
docker image prune -af --filter "until=24h"
echo "=== Czyszczenie nieużywanych kontenerów ==="
docker container prune -f
echo "=== Czyszczenie build cache ==="
docker builder prune -af --filter "until=24h"
echo "=== Status po czyszczeniu ==="
docker system df
depends_on: [containerize-apps]
when:
status: [success, failure]

View File

@@ -32,7 +32,7 @@ namespace SytelineSaAppEfDataModel
public DbSet<VatCodeAssociation> VatCodeAssociations { get; set; }
public DbSet<ItemCustPriceAll> ItemCustPriceAlls { get; set; }
public DbSet<EdiLog> EdiLogs { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
var configuration = new ConfigurationBuilder()
@@ -161,13 +161,13 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.BlanketQty).IsRequired(false).HasColumnName("blanket_qty");
entity.Property(e => e.EffectiveDate).HasColumnName("eff_date");
entity.Property(e => e.ExpirationDate).HasColumnName("exp_date");
entity.Property(e => e.ContPrice).IsRequired(false).HasColumnName("cont_price");
entity.Property(e => e.ContPrice).IsRequired(false).HasColumnName("cont_price").HasColumnType("decimal(20, 8)");
entity.Property(e => e.Status).IsRequired(false).HasColumnName("stat").HasMaxLength(1);
entity.Property(e => e.PromiseDate).HasColumnName("promise_date");
entity.Property(e => e.PriceCode).IsRequired(false).HasColumnName("pricecode").HasMaxLength(3);
entity.Property(e => e.Uom).IsRequired(false).HasColumnName("u_m").HasMaxLength(3);
entity.Property(e => e.BlanketQtyReleased).IsRequired(false).HasColumnName("blanket_qty_conv");
entity.Property(e => e.ContPriceReleased).IsRequired(false).HasColumnName("cont_price_conv");
entity.Property(e => e.ContPriceReleased).HasColumnType("decimal(20, 8)").IsRequired(false).HasColumnName("cont_price_conv");
entity.Property(e => e.QtySent).IsRequired(false).HasColumnName("qty_bco");
entity.Property(e => e.SentCode).IsRequired(false).HasColumnName("bco_code").HasMaxLength(1);
entity.Property(e => e.NonAppliedData).IsRequired(false).HasColumnName("non_appl_data").HasMaxLength(75);
@@ -216,8 +216,8 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.QtyShipped).IsRequired(false).HasColumnName("qty_shipped");
entity.Property(e => e.QtyPacked).IsRequired(false).HasColumnName("qty_packed");
entity.Property(e => e.Discount).IsRequired(false).HasColumnName("disc");
entity.Property(e => e.Cost).IsRequired(false).HasColumnName("cost");
entity.Property(e => e.Price).IsRequired(false).HasColumnName("price");
entity.Property(e => e.Cost).IsRequired(false).HasColumnName("cost").HasColumnType("decimal(20, 8)");
entity.Property(e => e.Price).IsRequired(false).HasColumnName("price").HasColumnType("decimal(20, 8)");
entity.Property(e => e.RefType).IsRequired(false).HasColumnName("ref_type").HasMaxLength(1);
entity.Property(e => e.RefNumber).IsRequired(false).HasColumnName("ref_num").HasMaxLength(10);
entity.Property(e => e.RefLineSuf).IsRequired(false).HasColumnName("ref_line_suf");
@@ -261,7 +261,7 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.PriceCode).IsRequired(false).HasColumnName("pricecode").HasMaxLength(3);
entity.Property(e => e.Uom).IsRequired(false).HasColumnName("u_m").HasMaxLength(3);
entity.Property(e => e.QtyOrderedReleased).IsRequired(false).HasColumnName("qty_ordered_conv");
entity.Property(e => e.PriceReleased).IsRequired(false).HasColumnName("price_conv");
entity.Property(e => e.PriceReleased).IsRequired(false).HasColumnName("price_conv").HasColumnType("decimal(20, 8)");
entity.Property(e => e.CustomerOrderCustomerNumber).IsRequired(false).HasColumnName("co_cust_num").HasMaxLength(7);
entity.Property(e => e.Packed).IsRequired(false).HasColumnName("packed");
entity.Property(e => e.Bol).IsRequired(false).HasColumnName("bol");
@@ -474,7 +474,7 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.BlanketQty).HasColumnName("blanket_qty");
entity.Property(e => e.EffDate).HasColumnName("eff_date").IsRequired(false);
entity.Property(e => e.ExpDate).HasColumnName("exp_date").IsRequired(false);
entity.Property(e => e.ContPrice).HasColumnName("cont_price").IsRequired(false);
entity.Property(e => e.ContPrice).HasColumnName("cont_price").HasColumnType("decimal(20, 8)").IsRequired(false);
entity.Property(e => e.Stat).HasColumnName("stat").HasMaxLength(2).IsRequired(false);
entity.Property(e => e.PromiseDate).HasColumnName("promise_date").IsRequired(false);
entity.Property(e => e.Pricecode).HasColumnName("pricecode").HasMaxLength(6).IsRequired(false);
@@ -639,7 +639,7 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.Uf_FKR_EDI_ITEM_PalletCode).HasColumnName("Uf_FKR_EDI_ITEM_PalletCode").HasMaxLength(50).IsRequired(false);
entity.Property(e => e.Uf_FKR_EDI_ITEM_DocumentType).IsRequired(false).HasColumnName("Uf_FKR_EDI_ITEM_DocType").HasMaxLength(50);
});
modelBuilder.Entity<UserName>(entity =>
{
entity.ToTable("UserNames");
@@ -684,7 +684,7 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.Uf_ZPL_EmpNum).HasColumnName("uf_ZPL_emp_num").HasMaxLength(7).IsRequired(false);
entity.Property(e => e.Uf_PLT_EmpNum).HasColumnName("uf_PLT_emp_num").HasMaxLength(14).IsRequired(false);
});
modelBuilder.Entity<EdiUser>(entity =>
{
entity.ToTable("edi_users");
@@ -708,7 +708,7 @@ namespace SytelineSaAppEfDataModel
entity.HasIndex(e => e.Login).IsUnique();
});
modelBuilder.Entity<MaterialTransaction>(entity =>
{
entity.ToTable("ZPL_InternalNum_Matltran");
@@ -887,7 +887,7 @@ namespace SytelineSaAppEfDataModel
.HasMaxLength(20)
.IsRequired(false);
});
modelBuilder.Entity<WzHeader>(entity =>
{
entity.ToTable("wz_header");
@@ -907,24 +907,23 @@ namespace SytelineSaAppEfDataModel
.HasColumnName("CreatedDate")
.HasColumnType("DateTime")
.IsRowVersion();
entity.Property(e => e.EmailAddresses)
.HasColumnName("EmailAddresses")
.HasMaxLength(1000)
.IsRequired(false);
entity.Property(e => e.WzNumbers)
.HasColumnName("WzNumbers")
.HasMaxLength(500)
.IsRequired(false);
// Relationship
entity.HasOne(e => e.Client)
.WithMany()
.HasForeignKey(e => e.FK_Client)
.HasConstraintName("wz_header_wz_clients_ID_fk");
});
modelBuilder.Entity<WzClient>(entity =>
{
entity.ToTable("wz_clients");
@@ -949,22 +948,22 @@ namespace SytelineSaAppEfDataModel
.HasColumnName("CreatedDate")
.HasColumnType("DateTime")
.IsRowVersion();
entity.Property(e => e.Name)
.HasColumnName("Name")
.HasMaxLength(255)
.IsRequired(false);
entity.Property(e => e.ShortName)
.HasColumnName("ShortName")
.HasMaxLength(30)
.IsRequired(false);
entity.Property(e => e.Logo)
.HasColumnType("VARBINARY(MAX)")
.IsRequired(false);
});
modelBuilder.Entity<WzRowMeyle>(entity =>
{
entity.ToTable("wz_row_meyle");
@@ -1010,12 +1009,12 @@ namespace SytelineSaAppEfDataModel
.HasColumnName("part_number")
.HasMaxLength(100)
.IsRequired(false);
entity.Property(e => e.TransactionNumber)
.HasColumnName("trans_num")
.HasColumnType("int")
.IsRequired(false);
entity.Property(e => e.FaIndex)
.HasColumnName("fa_index")
.HasMaxLength(100)
@@ -1025,14 +1024,14 @@ namespace SytelineSaAppEfDataModel
.HasColumnName("part_number_sl")
.HasMaxLength(100)
.IsRequired(false);
// Relationship
entity.HasOne(e => e.Header)
.WithMany()
.HasForeignKey(e => e.FK_Header)
.HasConstraintName("wz_rows_meyle_wz_header_ID_fk");
});
modelBuilder.Entity<ItemCust>(entity =>
{
entity.ToTable("itemcust");
@@ -1175,7 +1174,7 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_itemcust_RowPointer")
.IsUnique();
});
modelBuilder.Entity<Lot>(entity =>
{
entity.ToTable("lot");
@@ -1319,7 +1318,7 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_lot_RowPointer")
.IsUnique();
});
modelBuilder.Entity<EdiCustomerOrderImport>(entity =>
{
entity.ToTable("edi_co_import");
@@ -1553,7 +1552,7 @@ namespace SytelineSaAppEfDataModel
entity.HasIndex(e => e.RowPointer).HasDatabaseName("IX_customer_RowPointer").IsUnique();
});
modelBuilder.Entity<CustomerTp>(entity =>
{
entity.ToTable("cust_tp");
@@ -1742,7 +1741,7 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_cust_tp_RowPointer")
.IsUnique();
});
modelBuilder.Entity<Item>(entity =>
{
entity.ToTable("item");
@@ -2001,7 +2000,7 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_item_RowPointer")
.IsUnique();
});
modelBuilder.Entity<VatCodeAssociation>(entity =>
{
entity.ToTable("ZPL_VAT_CodesAssociations");
@@ -2311,7 +2310,7 @@ namespace SytelineSaAppEfDataModel
.HasMaxLength(200)
.IsRequired(false);
});
modelBuilder.Entity<ItemCustPriceAll>(entity =>
{
entity.ToTable("itemcustprice_all");
@@ -2344,6 +2343,7 @@ namespace SytelineSaAppEfDataModel
entity.Property(e => e.ContPrice)
.HasColumnName("cont_price")
.HasColumnType("decimal(20, 8)")
.IsRequired(false);
entity.Property(e => e.BrkQty1)
@@ -2479,7 +2479,7 @@ namespace SytelineSaAppEfDataModel
.HasDatabaseName("IX_itemcustprice_all_RowPointer")
.IsUnique();
});
modelBuilder.Entity<EdiLog>(entity =>
{
entity.ToTable("edi_logs");
@@ -2516,7 +2516,7 @@ namespace SytelineSaAppEfDataModel
.HasColumnType("datetime")
.IsRequired();
});
modelBuilder.Entity<WzRowMarelli>(entity =>
{
entity.ToTable("wz_row_mareli");
@@ -2567,18 +2567,17 @@ namespace SytelineSaAppEfDataModel
.HasColumnName("wz_number")
.HasMaxLength(50)
.IsRequired(false);
entity.Property(e => e.FaIndex)
.HasColumnName("fa_index")
.HasMaxLength(30)
.IsRequired(false);
entity.Property(e => e.TransactionNumber)
.HasColumnName("trans_num")
.HasColumnType("int")
.IsRequired(false);
// Foreign Key
entity.HasOne(e => e.Header)
.WithMany()
.HasForeignKey(e => e.FKHeader)
@@ -2586,4 +2585,4 @@ namespace SytelineSaAppEfDataModel
});
}
}
}
}