Skip to content

Models Doc

Reza Mobaraki edited this page Sep 19, 2021 · 2 revisions

Document models

  • Setting Model descriptions : Save all project settings * *

  • User Model descriptions :

    • Email
    • Name
    • Password
    • Phone Number
    • Avatar
    • Email
  • Domain Model descriptions :

    • HOST : without www, http|https and sub link
    • Status : allow | block
  • Link Model descriptions :

    • Owner_id : nullable
    • Domain_id : get_or_create
    • Slug : generate unique slug
    • URL : link address
    • Visitor_limit : to limit link visitors
    • Password : nullable (sample.com/{slug}/{password}) || (sample.com/slug?password=abcd)
    • Expired_time : time to expire short link
  • Visit Model

    • descriptions : polymorphic
    • Visitable_id
    • Visitable_type
    • IP
    • Browser
    • user_agent
    • platform
    • device

TEST

Clone this wiki locally