GithubHelp home page GithubHelp logo

music_project_qt's Introduction

Ứng dụng nghe nhạc quản lí người dùng đơn giản

  • Nguyễn Đăng Quý
  • Võ Tuấn Hưng
  • Đỗ Đức Phong
  • Nguyễn Ngọc Huy (Trưởng nhóm)
  • Nguyễn Trọng Quý

Database

create table music_app.user (
    id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    user_name VARCHAR(50) NOT NULL,
    password VARCHAR(50) NOT NULL,
    name VARCHAR(50) NOT NULL,
    email VARCHAR(50) NOT NULL
);

create table music_app.role (
    id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    role_name VARCHAR(50) NOT NULL,
    description text NOT NULL
);

create table music_app.user_role (
    id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
     user_id INTEGER NOT NULL,
     role_id INTEGER NOT NULL,
     FOREIGN KEY (user_id) REFERENCES user(id),
     FOREIGN KEY (role_id) REFERENCES role(id)
);


create table music_app.menu (
    id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    url VARCHAR(50) NOT NULL,
    name VARCHAR(50) NOT NULL
);
create table music_app.auth (
    id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    role_id INTEGER NOT NULL,
    menu_id INTEGER NOT NULL,
    permission INTEGER NOT NULL,
    FOREIGN KEY (role_id) REFERENCES role(id),
    FOREIGN KEY (menu_id) REFERENCES menu(id)
);

create table music_app.category (
    id INTEGER not null primary key AUTOINCREMENT,
    category_name varchar(50) not null
);

create table music_app.music (
    id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    music_name VARCHAR(50) NOT NULL,
    music_url VARCHAR(50) NOT NULL,
    img_url VARCHAR(50) NOT NULL,
    ratting INTEGER(11) NOT NULL,
    category_id INTEGER NOT NULL,
    release_year INTEGER not null,
    FOREIGN KEY (category_id) REFERENCES category(id)
);

INSERT INTO role(role_name, descripton) VALUES("Admin", "Admin of system"),
("User","User of system");

INSERT INTO menu(url, name) VALUES("add", "Thêm nhạc"),
("edit", "Sửa nhạc"),
("remove", "Xóa nhạc"),
("list_user", "Danh sách người dùng");

INSERT INTO category(category_name) VALUES ("POP"), ("Country"), ("Rock"),
("Jazz"),("Blues"), ("Bolero"), ("Rap"), ("Ballad");

music_project_qt's People

Contributors

dangquyitt avatar huynguyen3003 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.