Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Нуриев Михаил #40

Closed
wants to merge 4 commits into from

Conversation

NurievMikhail
Copy link

No description provided.

@honest-hrundel
Copy link

🍏 Пройден линтинг и базовые тесты

@honest-hrundel
Copy link

🍏 Пройден линтинг и базовые тесты

models/review.js Outdated
isApproved: {
type: DataTypes.BOOLEAN,
defaultValue: false
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не хватает полей userId и souvenirId

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

И нужно такие поля (указывающие на другие таблицы) везде добавить, что-бы явно указать связь

primaryKey: true,
autoIncrement: true
},
name: { type: DataTypes.STRING },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сделать имя и цену обязательными

image: { type: DataTypes.STRING },
rating: { type: DataTypes.DOUBLE },
price: { type: DataTypes.DOUBLE },
amount: { type: DataTypes.INTEGER },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

количество по умолчанию равным 0

autoIncrement: true
},
name: { type: DataTypes.STRING },
image: { type: DataTypes.STRING },

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тип string по умолчанию имеет длину 255 символов, ссылка на картинку может быть длиннее, нужно увеличить длину до 1024

models/user.js Outdated
primaryKey: true,
autoIncrement: true
},
login: { type: DataTypes.STRING }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

логин должен быть уникальным

@honest-hrundel
Copy link

🍏 Пройден линтинг и базовые тесты

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants