const { DataTypes } = require('sequelize'); const sequelize = require('../config/database'); const Customer = sequelize.define('Customer', { firstName: { type: DataTypes.STRING, allowNull: false }, lastName: { type: DataTypes.STRING, allowNull: false }, address: { type: DataTypes.STRING, allowNull: false }, postalCode: { type: DataTypes.STRING, allowNull: false }, city: { type: DataTypes.STRING, allowNull: false }, phone: { type: DataTypes.STRING, allowNull: false }, nip: { type: DataTypes.STRING, allowNull: false } }); // Synchronizacja modelu z bazą Customer.sync(); module.exports = Customer;