20 lines
402 B
JavaScript
20 lines
402 B
JavaScript
module.exports = (sequelize, DataTypes) => {
|
|
const customer = sequelize.define("customer", {
|
|
id: {
|
|
type: DataTypes.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true,
|
|
},
|
|
shopify_customer_id: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
},
|
|
shopify_customer_email: {
|
|
type: DataTypes.STRING,
|
|
allowNull: false,
|
|
},
|
|
});
|
|
|
|
return customer;
|
|
};
|