filiali.dart 1.4 KB

123456789101112131415161718192021222324252627
  1. import 'package:drift/drift.dart';
  2. @DataClassName('Filiale')
  3. class Filiali extends Table {
  4. IntColumn get idFiliale => integer().autoIncrement()();
  5. IntColumn get idFilialeRemoto => integer().named('idFilialeRemoto').nullable()();
  6. IntColumn get idCliente => integer().named('idCliente').nullable()();
  7. IntColumn get idAgente => integer().named('idAgente').nullable()();
  8. TextColumn get codFiliale => text().named('codFiliale').nullable()();
  9. TextColumn get descrizione => text().named('descrizione').nullable()();
  10. TextColumn get indirizzo => text().named('indirizzo').nullable()();
  11. TextColumn get citta => text().named('citta').nullable()();
  12. TextColumn get provincia => text().named('provincia').nullable()();
  13. TextColumn get cap => text().named('cap').nullable()();
  14. TextColumn get frazione => text().named('frazione').nullable()();
  15. TextColumn get nazione => text().named('nazione').nullable()();
  16. TextColumn get telefono => text().named('telefono').nullable()();
  17. TextColumn get cellulare => text().named('cellulare').nullable()();
  18. TextColumn get fax => text().named('fax').nullable()();
  19. TextColumn get email => text().named('email').nullable()();
  20. TextColumn get stato => text().named('stato').nullable()();
  21. IntColumn get attivo => integer().named('attivo').withDefault(const Constant(1))();
  22. TextColumn get note => text().named('note').nullable()();
  23. @override
  24. String get tableName => 'Filiali';
  25. }