feat: estructura base OpenSpec + Skills + arquitectura limpia Capacitor+Dextie

This commit is contained in:
mono
2026-10-24 20:49:29 -05:00
parent 2e6262b5a5
commit 0c7cf651ce
1659 changed files with 265883 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import Dexie, { Table } from 'dexie';
import type { Productor, Producto, MovimientoInventario, Venta, VentaLinea, Gasto, Ajuste, CuadreCaja } from '@toldo/core';
export class ToldoDB extends Dexie {
productores!: Table<Productor, string>;
productos!: Table<Producto, string>;
movimientosInventario!: Table<MovimientoInventario, string>;
ventas!: Table<Venta, string>;
ventaLineas!: Table<VentaLinea, string>;
gastos!: Table<Gasto, string>;
ajustes!: Table<Ajuste, string>;
cuadres!: Table<CuadreCaja, string>;
constructor() {
super('ToldoConjuntoDB');
this.version(1).stores({
productores: 'id, nombre, activo',
productos: 'id, productorId, nombrePresentacion, [productorId+nombrePresentacion]',
movimientosInventario: 'id, fecha, tipo, productoId',
ventas: 'id, fecha',
ventaLineas: 'id, ventaId, productoId, formaPago',
gastos: 'id, fecha',
ajustes: 'id, fecha, productoId',
cuadres: 'id, fecha'
});
}
}
export const db = new ToldoDB();

View File

@@ -0,0 +1 @@
export * from './db/schema';