Commit Graph

15 Commits

Author SHA1 Message Date
seb
53a20c4353 refactor: introduce database provider abstraction, isolate MSSQL layer
- Add provider contract (src/providers/provider.js): query() -> {rows,
  rowsAffected, insertId}, callback transaction(fn), exec() for stored
  procs, initialize/purge lifecycle
- Add MssqlProvider (src/providers/mssql/index.js) wrapping an mssql
  ConnectionPool with normalized results, tx commit/rollback and
  constraint-error classifiers (unique 2627/2601, FK 547)
- LibDashStore constructor now takes a provider instead of a pool
  (breaking); adds LibDashStore.create() async factory; keeps pool as
  transitional bridge until store modules are converted (see TODO.md)
- Move MSSQL-specific code into the provider: src/sql/* ->
  src/providers/mssql/queries/*, src/schema.js ->
  src/providers/mssql/schema.js, purge SQL -> purgeSql.js
- Update scripts, generate-schema-graph.js and package.json exports
  (./providers/mssql, ./providers/provider)
- Add TODO.md with the remaining provider/SQLite migration plan

No SQL or behavioral changes.
2026-09-20 13:51:01 +02:00
seb
980eda629b u 2026-09-17 12:36:37 +02:00
seb
8f23dd8c75 feat: manage files via manifestattachment with auth and cascade trigger, format API.md method signatures 2026-09-16 16:49:59 +02:00
seb
00bbd2e764 feat(schema): replace manifestarticle article_id FK with sku, rename articlesupplier sku/stock fields 2026-09-15 09:24:43 +02:00
seb
2e16a22c99 feat(schema): add articlesupplier table and manifestarticle custom sku/name fields 2026-09-14 22:43:03 +02:00
seb
53acc6a8ff Use dark color scheme for schema graph in browser preview 2026-08-08 10:08:56 +02:00
seb
ae549fd022 Add ledger, address/contact sort, and tighter schema-graph layout.
Replace manifestarticle.transactedamount with an append-only ledger, add sort on entity address/contact, and allow same-rank FKs with crossing-aware exits in the graph.
2026-08-06 07:39:48 +02:00
seb
3b77a1c946 Add entity address/contact tables and CRUD for entity resources 2026-08-06 05:43:50 +02:00
seb
4f46967f28 Add supplier CRUD on entity with Lieferanten group and entityhistory 2026-08-06 03:56:32 +02:00
seb
787e411547 Add company-scoped brand and company settings API.
brand now carries a NOT NULL company_id (unique per (company_id, name))
with brand.list/upsert/delete backed by resolveCompanyAccess. Adds
companysetting key-value store (list/get/set/delete, frontend flag).
2026-08-01 06:59:27 +02:00
seb
6cc6dbb9e8 u 2026-07-31 15:36:48 +02:00
seb
99dd76075e u 2026-07-31 09:00:14 +02:00
seb
806d077d57 u 2026-07-31 05:21:28 +02:00
seb
142e73a171 u 2026-07-31 05:19:14 +02:00
seb
93e52cd513 u 2026-07-30 23:56:42 +02:00