A wiki that holds various information on Omaha Code School: all the students, teachers, mentors, inside jokes (2048, copters, etc.).
Things it should do:
CRUD articles (create, read, update, delete)
CRUD users (create, read, update, delete), with both admins (Andy, Cara, and Matt) and regular users (anyone who wants to sign up and contribute)
Have databases of articles and users
Cross link between articles
Have pictures
Needed models:
Article
Description: The latest version of the article. Has many Updates.
Columns:
ID
Title
created_at
updated_at
Update
Description: The Updates are all the versions of the Article, if we need to roll back. By default, the displayed article on the page will point to the content of the Update with the newest "created_at" stamp. Belongs to Article.
Columns:
ID
article_id
foreign
user_id
foreign, references the last editor
content
created_at
We use this to sort Updates. The newest is what is displayed.
updated_at
User
Description: The admins and editors for the wiki. Only users can edit. Admins have more powers than regular users. User has many Updates.
Columns:
ID
created_at
updated_at
fname
lname
email
username
password_digest
admin
boolean if they are an admin or not
User details
Admin powers:
Roll back articles to earlier versions
The older Update they select will be copied as the latest Update, and therefore the version that will be displayed.
Goal:
A wiki that holds various information on Omaha Code School: all the students, teachers, mentors, inside jokes (2048, copters, etc.).
Things it should do:
Needed models:
Article
Description: The latest version of the article. Has many Updates.
Columns:
Update
Description: The Updates are all the versions of the Article, if we need to roll back. By default, the displayed article on the page will point to the content of the Update with the newest "created_at" stamp. Belongs to Article.
Columns:
User
Description: The admins and editors for the wiki. Only users can edit. Admins have more powers than regular users. User has many Updates.
Columns:
User details
Admin powers:
Regular user powers:
Views
Layout
Home page
Create/Edit Articles
View Article
Delete Articles
Create/Edit Users
View User
Delete User