GithubHelp home page GithubHelp logo

ruis2615 / sportsfessupportsystem Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 846 KB

体育祭の運営を補助するシステム

License: MIT License

Dockerfile 0.03% Python 2.41% CSS 32.55% JavaScript 18.67% SCSS 33.18% HTML 13.16%

sportsfessupportsystem's Introduction

システムについて

このシステムは、2023年6月に実施した体育祭で開発・試験導入したシステムのソースコードです。

データベース設計

usersテーブル

アカウントに関連する情報を保存しています。

カラム名 データ型 NULL設定 内部値
user_id SERIAL4 不可能 自動
user_name TEXT 不可能 自動(YYYYMMDD-<user_id>の形式)
user_password TEXT 不可能 自動(ハッシュ値を保存)
user_permission TEXT 不可能 all_permissions:全権限
only_my_team_entry:自チームに関連するデータのみ
user_type TEXT 可能 0
1
user_created_at TIMESTAMP 不可能 自動
user_updated_at TIMESTAMP 可能 自動

teamsテーブル

チームに関連する情報を保存しています。

カラム名 データ型 NULL設定 内部値
team_id SERIAL4 不可能 自動
team_name TEXT 不可能 ユーザーが指定
team_leader TEXT 可能 ユーザーが指定
team_sub_leader TEXT 可能 ユーザーが指定
team_login_id TEXT 不可能 自動的にusersと紐づけ
team_login_password TEXT 不可能 自動的にusersと紐づけ(平文)

schedulesテーブル

スケジュールに関連する情報を保存しています。

カラム名 データ型 NULL設定 内部値
schedule_id SERIAL4 不可能 自動
schedule_number INTEGER 不可能 ユーザーが指定
schedule_name TEXT 不可能 ユーザーが指定
schedule_type INTEGER 不可能 自動(ユーザーが指定)
schedule_option JSONB 可能 自動(ユーザーが指定)
schedule_started_at TIME 不可能 自動(ユーザーが指定)
schedule_ended_at TIME 不可能 自動(ユーザーが指定)

scoresテーブル

得点に関連する情報を保存しています。

カラム名 データ型 NULL設定 内部値
score_id SERIAL4 不可能 自動
schedule_id INTEGER 不可能 自動
team_id INTEGER 不可能 自動
race_number INTEGER 不可能 自動
race_gender INTEGER 不可能 自動
score INTEGER 不可能 ユーザーが指定
score_created_at TIMESTAMP 不可能 自動
score_updated_at TIMESTAMP 可能 自動

entrysテーブル

エントリーに関連する情報を保存しています。

カラム名 データ型 NULL設定 内部値
entry_id SERIAL4 不可能 自動
team_id INTEGER 不可能 自動
schedule_id INTEGER 不可能 自動
entry JSONB 不可能 自動(ユーザーが指定)
entry_created_at TIMESTAMP 可能 自動
entry_updated_at TIMESTAMP 可能 自動

list_of_nameテーブル

全校生徒の名簿を保存しています。

カラム名 データ型 NULL設定 内部値
id SERIAL4 不可能 自動
number TEXT 不可能 ユーザーが指定
name TEXT 不可能 ユーザーが指定
gender TEXT 不可能 ユーザーが指定
team_id INTEGER 不可能 自動(ユーザーが指定

absence_reportテーブル

当日の欠席者情報を保存しています。

カラム名 データ型 NULL設定 内部値
absence_id SERIAL4 不可能 自動
primary_id INTEGER 不可能 自動(ユーザーが指定)

optionsテーブル

システムの設定に関連する情報を保存しています。

カラム名 データ型 NULL設定 内部値
option_name TEXT 不可能 master_option(自動)
option_value JSONB 不可能 自動

sportsfessupportsystem's People

Contributors

ruis2615 avatar

Stargazers

 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.