yukyu30 / harmony_reader

0 stars 0 forks source link

初期の機能 #1

Open yukyu30 opened 8 months ago

yukyu30 commented 8 months ago

初期でやること・やらないことを決めます

やること

やらないこと

yukyu30 commented 8 months ago

https://chat.openai.com/share/942a7cde-16e3-44b9-a1ec-493ef0912862

GPTに聞いた

Organizations Table(組織テーブル)
id: 主キー
name: 組織の名前
description: 組織の説明

Users Table(ユーザーテーブル)
id: 主キー
email: ユーザーのメールアドレス
password_digest: パスワード(暗号化された状態)
その他ユーザーに関連する情報

UserOrganizations Table(ユーザーと組織の中間テーブル)
user_id: ユーザーテーブルのid(外部キー)
organization_id: 組織テーブルのid(外部キー)
organization_role_id: 組織ロールテーブルのid(外部キー)

OrganizationRoles Table(組織ロールテーブル)
id: 主キー
name: ロールの名前(例: 管理者、メンバー)

ApplicationRoles Table(アプリケーションロールテーブル)
id: 主キー
name: ロールの名前(例: スーパーユーザー、一般ユーザー)
user_id: ユーザーテーブルのid(外部キー)

Feeds Table(フィードテーブル)
id: 主キー
organization_id: 組織テーブルのid(外部キー)
url: RSSフィードのURL
title: フィードのタイトル
description: フィードの説明

Articles Table(記事テーブル)
id: 主キー
feed_id: フィードテーブルのid(外部キー)
title: 記事のタイトル
content: 記事の内容
published_at: 記事の公開日時
url: 記事のURL