Skip to content

Commit

Permalink
Merge pull request #13 from philippebeck/dev
Browse files Browse the repository at this point in the history
Release 0.2.4-alpha
  • Loading branch information
philippebeck authored Dec 17, 2023
2 parents abb6252 + 15673d8 commit 42d7402
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions model/ArticleModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = (Sequelize, DataTypes) => {
autoIncrement: true
},
name: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
Expand All @@ -28,12 +28,12 @@ module.exports = (Sequelize, DataTypes) => {
unique: true
},
image: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
alt: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
Expand Down
6 changes: 3 additions & 3 deletions model/GalleryModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ module.exports = (Sequelize, DataTypes) => {
autoIncrement: true
},
name: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
author: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false
},
cover: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
}
Expand Down
2 changes: 1 addition & 1 deletion model/ImageModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = (Sequelize, DataTypes) => {
autoIncrement: true
},
name: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
Expand Down
2 changes: 1 addition & 1 deletion model/LinkModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = (Sequelize, DataTypes) => {
autoIncrement: true
},
name: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
Expand Down
4 changes: 2 additions & 2 deletions model/OrderModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ module.exports = (Sequelize, DataTypes) => {
allowNull: false
},
paymentId: {
type: DataTypes.STRING(50),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
status: {
type: DataTypes.STRING(10),
type: DataTypes.STRING(20),
allowNull: false
},
userId: {
Expand Down
6 changes: 3 additions & 3 deletions model/ProductModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = (Sequelize, DataTypes) => {
autoIncrement: true
},
name: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
Expand All @@ -28,12 +28,12 @@ module.exports = (Sequelize, DataTypes) => {
unique: true
},
image: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
alt: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
Expand Down
10 changes: 5 additions & 5 deletions model/UserModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,26 @@ module.exports = (Sequelize, DataTypes) => {
autoIncrement: true
},
name: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
email: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
image: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false,
unique: true
},
pass: {
type: DataTypes.STRING(100),
type: DataTypes.STRING(200),
allowNull: false
},
role: {
type: DataTypes.STRING(10),
type: DataTypes.STRING(20),
allowNull: false
},
}, {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nens",
"version": "0.2.3-alpha",
"version": "0.2.4-alpha",
"description": "API with Node, Express, NemJS & SQL",
"keywords": [
"api",
Expand Down

0 comments on commit 42d7402

Please sign in to comment.