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

db: posts db table #94

Open
Drew-Macgibbon opened this issue Jul 5, 2023 · 0 comments
Open

db: posts db table #94

Drew-Macgibbon opened this issue Jul 5, 2023 · 0 comments

Comments

@Drew-Macgibbon
Copy link
Contributor

Drew-Macgibbon commented Jul 5, 2023

Articles Tables

{
  "scraped_articles": {
    "id": "Bigint, Primary Key",
    "created_at": "Timestamp",
    "updated_at": "Timestamp",
    "title": "Text",
    "url": "Text, URL",
    "category_id": "Integer, Foreign Key to Categories table",
    "raw": "JSONB (to store the 'original' object with title and body)",
    "summaries": "JSONB (to store summaries with 'beginner', 'intermediate', 'expert' levels)",
    "author": "JSONB (to store author details as a JSON object)"
  },
  "categories": {
    "id": "Integer, Primary Key",
    "name": "Text",
  },
  "tags": {
    "id": "Integer, Primary Key",
    "name": "Text",
  },
  "scraped_article_tags": {
    "article_id": "Bigint, Foreign Key to Articles table",
    "tag_id": "Integer, Foreign Key to Tags table"
  }
}
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