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

クエリ・テーブル定義 #19

Open
YutaUra opened this issue Feb 14, 2021 · 0 comments
Open

クエリ・テーブル定義 #19

YutaUra opened this issue Feb 14, 2021 · 0 comments

Comments

@YutaUra
Copy link
Member

YutaUra commented Feb 14, 2021

クエリ

  • お知らせ
    • 全て
    • 個別
  • 講義
    • 曜日・時間割別
    • 自分の登録している物一覧
  • ユーザー
    • ユーザーIDでデータを取得

エンティティ

News

クエリ

  • IDでの個別
  • 全て(作成日順)

データ

id: string
type: 'news'
createdAt: timestamp
updatedAt: timestamp
title: string
content: string

スキーマ

getById:
    PK: type#id
sortByCreatedAt:
    PK: type
    SK: createdAt

Course

クエリ

  • 曜日・時間割別
  • 講義コードでの一覧

データ

id: string
code: string
type: 'course'
week: number
period: number
name: string
teacher: string
term: string
target: string
isRemote: bool
zoomUrl: string
classRoom: string

スキーマ

getByWeekPeriod:
    PK: type
    SK: week#period#code
getByCode:
    PK: type
    SK: code#week#period

User

クエリ

  • ユーザーIDごとに取得

データ

id: string
type: 'user'
course:
    '1#1': string
     # ...
    '7#7': string

スキーマ

getById:
    PK: type#id

テーブル定義

- Base
    PK:
        News: type
        Course: type
        User: type
    SK:
        News: id
        Course: id
        User: id
    LSI:
        - News: createdAt
          Course: week#period#code
        - Course: code#week"period
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant