Files
relaticle-comments/essentials/database-schema/_payload.json
github-actions[bot] b70b268201 Deploy 1.x docs
2026-03-27 12:09:26 +00:00

1 line
10 KiB
JSON

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