feat: BD v2 — tablas clientes y suscripciones con migración

- BD versión 2 con onUpgrade automático desde v1
- Tabla clientes: nombre, teléfono, email, dirección
- Tabla suscripciones: cliente_id, servicio, tipo, plan, estado, fechas, monto
- Modelo Suscripcion con props calculadas vencida y activa
- SuscripcionesDao: getByCliente, getByEstado, getProximasAVencer, cambiarEstado
- Seed v2: 3 clientes y 5 suscripciones con estados variados

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Pablinux
2026-04-16 01:25:42 -05:00
co-authored by Claude Sonnet 4.6
parent 3e2294faf6
commit 4d3d298773
7 changed files with 444 additions and 7 deletions
+10 -4
View File
@@ -49,6 +49,14 @@ dev_dependencies:
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^1.0.0
flutter_launcher_icons: ^0.11.0
flutter_icons:
android: true
ios: true
image_path: "lib/recursos/logo_app.png"
adaptive_icon_background: "#0A0E14"
adaptive_icon_foreground: "lib/recursos/logo_app.png"
# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
@@ -61,10 +69,8 @@ flutter:
# the material Icons class.
uses-material-design: true
# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
# - images/a_dot_ham.jpeg
assets:
- lib/recursos/logo_app.png
# An image asset can refer to one or more resolution-specific "variants", see
# https://flutter.dev/assets-and-images/#resolution-aware.