Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Cari ve fatura numarası

Prisma

Hareket defteri ve kesilmiş fatura belgesi Mongo’dadır. Burada güncel bakiye, belge numarası sayacı ve anket soru tanımı durur.

FinancialAccount

(userId, warehouseId) tektir. warehouseId boş olabilir (depo bağımsız hesap). Kayıt ödülü, tanımındaki warehouseId ile bu tabloyu upsert eder (hesap yoksa oluşturur, varsa bakiyeyi artırır).

Ödül tanımının kendisi bu şemada yoktur; kod listesidir. Kayıt ödülü.

AlanTipAnlamı
balanceFloat, 0Bakiye. Şema yorumu: artı alacak, eksi borç
creditLimitFloat, 0Limit
boxBalanceInt, 0Kasa / kasa adedi
palletBalanceInt, 0Palet adedi

InvoiceSequence

(sequenceType, prefix, year) tektir. sequenceType serbest string (ör. EINVOICE, EARCHIVE, RECEIPT). prefix belge öneki. currentValue son sayı.

HksInvoiceTracker

Künye arama sayacı. lastSearchDate (indeksli), isteğe bağlı lastFoundDate, totalSearchCount (0).

SurveyQuestion

Sipariş sonrası anketin tanımı. Cevaplar Mongo orderSurveyResponses koleksiyonundadır.

AlanTipAnlamı
titleStringSoru
descriptionString?Açıklama
typeSurveyQuestionTypeSINGLE_CHOICE, MULTI_CHOICE, RATING, TEXT
isActiveBoolean, trueAktif
deletedAtDateTime?Soft delete

SurveyChoice

(questionId, choiceId) tektir. label, order (0). (questionId, order) indeksi vardır.

SurveyScale

Soruyla 1:1. min, max, isteğe bağlı minLabel / maxLabel.

Defter ve fatura belgesi: Cari ve fatura (Mongo).