Protospace is a service for sharing for mentor of Tech::camp
- prototypes
- comments
- likes
- users
- tags
- prototype_tags
- prototype_images
######1. prototypes
belongs_to :user
has_many :comments
has_many :likes
has_many :prototype_images
has_many :tags, through: :prototype_tags
- id (integer)
- user_id (integer)
- title (string)
- catchcopy (string)
- concept (text)
- image
######2. comments
belongs_to :user
belongs_to :prototype
- id (integer)
- prototype_id (integer)
- user_id (integer)
- comment (text)
######3. likes
belongs_to :user
belongs_to :prototype
- id (integer)
- prototype_id (integer)
- user_id (integer)
######4. users
has_many :comments
has_many :likes
has_many :prototypes
- id (integer)
- name (string)
- email (string)
- password (string)
- member (string)
- profile (text)
- works (string)
- avatar
######5. tags
has_many :prototypes, through: :prototype_tags
- id (integer)
- name (string)
######6. prototype_tags
belongs_to :user
belongs_to :prototype
- prototype_id (integer)
- user_id (integer)
######7. prototype_images
belongs_to :prototype
- id (integer)
- prototype_id (integer)
- image