Giter VIP home page Giter VIP logo

ioex2023's Introduction

ioex2023

Blazor eCommerce 발표용 샘플 코드

  • 발표용으로 이미지 저장부분을 Client 정적파일 위치로 지정하여서, 이미지 저장 부분 주석처리 되있습니다. (정상적인 시나리오는 로컬의 다른 경로로 nginx 설정으로 이미지 디렉토리 위치 지정하고 그위치에 저장하도록 설정하거나, CDN 서비스를 사용합니다.)
  • 사용된 테이블 스키마 생성문 입니다. mysql을 사용했습니다.
CREATE TABLE Users (
    userId INT PRIMARY KEY AUTO_INCREMENT,
    email VARCHAR(255) NOT NULL UNIQUE,
    password VARCHAR(255) NOT NULL,
    username VARCHAR(100) NOT NULL,
    role VARCHAR(50) NOT NULL DEFAULT 'USER'
);
CREATE TABLE Categories (
    CategoryId INT PRIMARY KEY AUTO_INCREMENT,
    CategoryName VARCHAR(100) NOT NULL
);
CREATE TABLE Products (
    productId INT PRIMARY KEY AUTO_INCREMENT,
    userId INT,
    productName VARCHAR(255) NOT NULL,
    CategoryId INT,
    price DECIMAL(10, 2) NOT NULL,
    content TEXT,
    imageUrl VARCHAR(500),
    registrationDate DATETIME NOT NULL,
    isActive TINYINT(1) NOT NULL DEFAULT 1,
    FOREIGN KEY (userId) REFERENCES Users(userId) ON DELETE SET NULL,
    FOREIGN KEY (CategoryId) REFERENCES Categories(CategoryId) ON DELETE SET NULL
);
CREATE TABLE Cart (
    cartId INT PRIMARY KEY AUTO_INCREMENT,
    userId INT,
    productId INT,
    quantity INT NOT NULL DEFAULT 1,
    FOREIGN KEY (userId) REFERENCES Users(userId) ON DELETE SET NULL,
    FOREIGN KEY (productId) REFERENCES Products(productId) ON DELETE SET NULL
);

ioex2023's People

Contributors

atawlee avatar

Stargazers

PARK JIHO avatar MaJaeGeon avatar eunjin avatar Eunpyoung Kim avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.