Skip to content

Instantly share code, notes, and snippets.

View haroonkhan9426's full-sized avatar

Haroon khan haroonkhan9426

View GitHub Profile
@haroonkhan9426
haroonkhan9426 / readme.md
Created May 12, 2022 08:31 — forked from umairian/readme.md
AntonX Node (Express) Task

Build A Small Ecommerce App - AntonX Full Stack Task

Backend Technologies to be Used

Express and Sequelize (MySQL)

Backend Requirements

  1. Make two tables users and shops via migrations in the database.
  2. users table must contain name, email, password(must be hashed), role(ENUM type having User, Admin values), createdAt and updatedAt fields.
  3. While shops table must contain name, description, fk_user_id(foreign key of users table), address, createdAt, and updatedAt fields.
  4. There should be one to many relationship between users and shops.i.e. one user can have multiple shops.