Files
relaticle-comments/essentials/database-schema/_payload.json
github-actions[bot] 12207dbbc8 Deploy 1.x docs
2026-03-27 10:28:45 +00:00

1 line
10 KiB
JSON

[{"data":1,"prerenderedAt":700},["ShallowReactive",2],{"navigation_docs":3,"-essentials-database-schema":80,"-essentials-database-schema-surround":695},[4,25,65],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15,20],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-home",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Upgrading","\u002Fgetting-started\u002Fupgrading","1.getting-started\u002F3.upgrading","i-lucide-arrow-up-circle",{"title":26,"path":27,"stem":28,"children":29,"page":6},"Essentials","\u002Fessentials","2.essentials",[30,35,40,45,50,55,60],{"title":31,"path":32,"stem":33,"icon":34},"Configuration","\u002Fessentials\u002Fconfiguration","2.essentials\u002F1.configuration","i-lucide-settings",{"title":36,"path":37,"stem":38,"icon":39},"Authorization","\u002Fessentials\u002Fauthorization","2.essentials\u002F2.authorization","i-lucide-shield",{"title":41,"path":42,"stem":43,"icon":44},"Mentions","\u002Fessentials\u002Fmentions","2.essentials\u002F3.mentions","i-lucide-at-sign",{"title":46,"path":47,"stem":48,"icon":49},"Reactions","\u002Fessentials\u002Freactions","2.essentials\u002F4.reactions","i-lucide-smile",{"title":51,"path":52,"stem":53,"icon":54},"Attachments","\u002Fessentials\u002Fattachments","2.essentials\u002F5.attachments","i-lucide-paperclip",{"title":56,"path":57,"stem":58,"icon":59},"Notifications","\u002Fessentials\u002Fnotifications","2.essentials\u002F6.notifications","i-lucide-bell",{"title":61,"path":62,"stem":63,"icon":64},"Database Schema","\u002Fessentials\u002Fdatabase-schema","2.essentials\u002F7.database-schema","i-lucide-database",{"title":66,"path":67,"stem":68,"children":69,"page":6},"Community","\u002Fcommunity","4.community",[70,75],{"title":71,"path":72,"stem":73,"icon":74},"Contributing","\u002Fcommunity\u002Fcontributing","4.community\u002F1.contributing","i-lucide-heart-handshake",{"title":76,"path":77,"stem":78,"icon":79},"License","\u002Fcommunity\u002Flicense","4.community\u002F2.license","i-lucide-scale",{"id":81,"title":61,"body":82,"description":687,"extension":688,"links":689,"meta":690,"navigation":691,"path":62,"seo":692,"stem":63,"__hash__":694},"docs\u002F2.essentials\u002F7.database-schema.md",{"type":83,"value":84,"toc":675},"minimark",[85,90,94,98,101,261,271,274,277,361,369,372,375,441,448,451,454,532,539,542,545,659,663,672],[86,87,89],"h2",{"id":88},"tables","Tables",[91,92,93],"p",{},"Five tables are created by the package migrations.",[95,96,97],"h3",{"id":97},"comments",[91,99,100],{},"The main comments table with polymorphic relationships and threading support.",[102,103,104,120],"table",{},[105,106,107],"thead",{},[108,109,110,114,117],"tr",{},[111,112,113],"th",{},"Column",[111,115,116],{},"Type",[111,118,119],{},"Description",[121,122,123,138,151,163,175,187,200,213,226,238,250],"tbody",{},[108,124,125,132,135],{},[126,127,128],"td",{},[129,130,131],"code",{},"id",[126,133,134],{},"bigint",[126,136,137],{},"Primary key",[108,139,140,145,148],{},[126,141,142],{},[129,143,144],{},"commentable_type",[126,146,147],{},"string",[126,149,150],{},"Polymorphic model type",[108,152,153,158,160],{},[126,154,155],{},[129,156,157],{},"commentable_id",[126,159,134],{},[126,161,162],{},"Polymorphic model ID",[108,164,165,170,172],{},[126,166,167],{},[129,168,169],{},"user_type",[126,171,147],{},[126,173,174],{},"Commenter model type",[108,176,177,182,184],{},[126,178,179],{},[129,180,181],{},"user_id",[126,183,134],{},[126,185,186],{},"Commenter model ID",[108,188,189,194,197],{},[126,190,191],{},[129,192,193],{},"parent_id",[126,195,196],{},"bigint (nullable)",[126,198,199],{},"Parent comment for replies",[108,201,202,207,210],{},[126,203,204],{},[129,205,206],{},"body",[126,208,209],{},"text",[126,211,212],{},"HTML comment content",[108,214,215,220,223],{},[126,216,217],{},[129,218,219],{},"edited_at",[126,221,222],{},"timestamp (nullable)",[126,224,225],{},"When the comment was last edited",[108,227,228,233,235],{},[126,229,230],{},[129,231,232],{},"deleted_at",[126,234,222],{},[126,236,237],{},"Soft delete timestamp",[108,239,240,245,248],{},[126,241,242],{},[129,243,244],{},"created_at",[126,246,247],{},"timestamp",[126,249],{},[108,251,252,257,259],{},[126,253,254],{},[129,255,256],{},"updated_at",[126,258,247],{},[126,260],{},[91,262,263,267,268],{},[264,265,266],"strong",{},"Indexes:"," ",[129,269,270],{},"(commentable_type, commentable_id, parent_id)",[95,272,273],{"id":273},"comment_reactions",[91,275,276],{},"Tracks emoji reactions per user per comment.",[102,278,279,289],{},[105,280,281],{},[108,282,283,285,287],{},[111,284,113],{},[111,286,116],{},[111,288,119],{},[121,290,291,301,313,324,335,351],{},[108,292,293,297,299],{},[126,294,295],{},[129,296,131],{},[126,298,134],{},[126,300,137],{},[108,302,303,308,310],{},[126,304,305],{},[129,306,307],{},"comment_id",[126,309,134],{},[126,311,312],{},"Foreign key to comments",[108,314,315,319,321],{},[126,316,317],{},[129,318,169],{},[126,320,147],{},[126,322,323],{},"Reactor model type",[108,325,326,330,332],{},[126,327,328],{},[129,329,181],{},[126,331,134],{},[126,333,334],{},"Reactor model ID",[108,336,337,342,344],{},[126,338,339],{},[129,340,341],{},"reaction",[126,343,147],{},[126,345,346,347,350],{},"Reaction key (e.g., ",[129,348,349],{},"thumbs_up",")",[108,352,353,357,359],{},[126,354,355],{},[129,356,244],{},[126,358,247],{},[126,360],{},[91,362,363,267,366],{},[264,364,365],{},"Unique constraint:",[129,367,368],{},"(comment_id, user_id, user_type, reaction)",[95,370,371],{"id":371},"comment_mentions",[91,373,374],{},"Tracks @mentioned users per comment.",[102,376,377,387],{},[105,378,379],{},[108,380,381,383,385],{},[111,382,113],{},[111,384,116],{},[111,386,119],{},[121,388,389,399,409,420,431],{},[108,390,391,395,397],{},[126,392,393],{},[129,394,131],{},[126,396,134],{},[126,398,137],{},[108,400,401,405,407],{},[126,402,403],{},[129,404,307],{},[126,406,134],{},[126,408,312],{},[108,410,411,415,417],{},[126,412,413],{},[129,414,169],{},[126,416,147],{},[126,418,419],{},"Mentioned user model type",[108,421,422,426,428],{},[126,423,424],{},[129,425,181],{},[126,427,134],{},[126,429,430],{},"Mentioned user model ID",[108,432,433,437,439],{},[126,434,435],{},[129,436,244],{},[126,438,247],{},[126,440],{},[91,442,443,267,445],{},[264,444,365],{},[129,446,447],{},"(comment_id, user_id, user_type)",[95,449,450],{"id":450},"comment_subscriptions",[91,452,453],{},"Tracks which users are subscribed to comment threads on specific models.",[102,455,456,466],{},[105,457,458],{},[108,459,460,462,464],{},[111,461,113],{},[111,463,116],{},[111,465,119],{},[121,467,468,478,489,500,511,522],{},[108,469,470,474,476],{},[126,471,472],{},[129,473,131],{},[126,475,134],{},[126,477,137],{},[108,479,480,484,486],{},[126,481,482],{},[129,483,144],{},[126,485,147],{},[126,487,488],{},"Subscribed model type",[108,490,491,495,497],{},[126,492,493],{},[129,494,157],{},[126,496,134],{},[126,498,499],{},"Subscribed model ID",[108,501,502,506,508],{},[126,503,504],{},[129,505,169],{},[126,507,147],{},[126,509,510],{},"Subscriber model type",[108,512,513,517,519],{},[126,514,515],{},[129,516,181],{},[126,518,134],{},[126,520,521],{},"Subscriber model ID",[108,523,524,528,530],{},[126,525,526],{},[129,527,244],{},[126,529,247],{},[126,531],{},[91,533,534,267,536],{},[264,535,365],{},[129,537,538],{},"(commentable_type, commentable_id, user_type, user_id)",[95,540,541],{"id":541},"comment_attachments",[91,543,544],{},"Stores file attachment metadata for comments.",[102,546,547,557],{},[105,548,549],{},[108,550,551,553,555],{},[111,552,113],{},[111,554,116],{},[111,556,119],{},[121,558,559,569,579,591,603,615,627,639,649],{},[108,560,561,565,567],{},[126,562,563],{},[129,564,131],{},[126,566,134],{},[126,568,137],{},[108,570,571,575,577],{},[126,572,573],{},[129,574,307],{},[126,576,134],{},[126,578,312],{},[108,580,581,586,588],{},[126,582,583],{},[129,584,585],{},"file_path",[126,587,147],{},[126,589,590],{},"Path on the storage disk",[108,592,593,598,600],{},[126,594,595],{},[129,596,597],{},"original_name",[126,599,147],{},[126,601,602],{},"Original uploaded filename",[108,604,605,610,612],{},[126,606,607],{},[129,608,609],{},"mime_type",[126,611,147],{},[126,613,614],{},"File MIME type",[108,616,617,622,624],{},[126,618,619],{},[129,620,621],{},"size",[126,623,134],{},[126,625,626],{},"File size in bytes",[108,628,629,634,636],{},[126,630,631],{},[129,632,633],{},"disk",[126,635,147],{},[126,637,638],{},"Laravel filesystem disk",[108,640,641,645,647],{},[126,642,643],{},[129,644,244],{},[126,646,247],{},[126,648],{},[108,650,651,655,657],{},[126,652,653],{},[129,654,256],{},[126,656,247],{},[126,658],{},[86,660,662],{"id":661},"relationships","Relationships",[664,665,669],"pre",{"className":666,"code":668,"language":209},[667],"language-text","Commentable Model (e.g., Project)\n └── comments (morphMany)\n ├── user (morphTo → User)\n ├── parent (belongsTo → Comment)\n ├── replies (hasMany → Comment)\n ├── reactions (hasMany → CommentReaction)\n ├── attachments (hasMany → CommentAttachment)\n └── mentions (morphToMany → User)\n",[129,670,668],{"__ignoreMap":671},"",[91,673,674],{},"All relationships are polymorphic, allowing the same comment system to work across any number of models in your application.",{"title":671,"searchDepth":676,"depth":676,"links":677},2,[678,686],{"id":88,"depth":676,"text":89,"children":679},[680,682,683,684,685],{"id":97,"depth":681,"text":97},3,{"id":273,"depth":681,"text":273},{"id":371,"depth":681,"text":371},{"id":450,"depth":681,"text":450},{"id":541,"depth":681,"text":541},{"id":661,"depth":676,"text":662},"Tables, relationships, and indexes used by the Comments package.","md",null,{},{"icon":64},{"description":693,"title":61},"Database schema reference for the Comments package.","Yte6rX8x8upsowLURd9q9HFQY5Q9t4nTMbfY0ErhnKY",[696,698],{"title":56,"path":57,"stem":58,"description":697,"icon":59,"children":-1},"Comment notifications, subscriptions, and real-time updates.",{"title":71,"path":72,"stem":73,"description":699,"icon":74,"children":-1},"How to contribute to Comments",1774607320591]