[{"data":1,"prerenderedAt":119},["ShallowReactive",2],{"term-u\u002Fuuid":3,"related-u\u002Fuuid":108},{"id":4,"title":5,"acronym":6,"body":7,"category":89,"description":90,"difficulty":91,"extension":92,"letter":93,"meta":94,"navigation":95,"path":96,"related":97,"seo":101,"sitemap":102,"stem":105,"subcategory":106,"__hash__":107},"terms\u002Fterms\u002Fu\u002Fuuid.md","UUID","Universally Unique Identifier",{"type":8,"value":9,"toc":83},"minimark",[10,15,19,23,26,30,72,76,79],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A UUID is a randomly generated ID that looks like 'a3b4c5d6-...' and is practically guaranteed to be unique across the entire universe. Unlike auto-increment IDs (1, 2, 3), you can generate UUIDs on the client without asking the database first.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A UUID is a 128-bit identifier standardized by RFC 4122, typically represented as 32 hexadecimal characters in 8-4-4-4-12 format. Version 4 UUIDs are randomly generated with an extremely low collision probability. They are preferred over sequential integers when IDs must be globally unique or generated offline.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-sql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","-- PostgreSQL with pgcrypto\nCREATE TABLE sessions (\n  id UUID DEFAULT gen_random_uuid() PRIMARY KEY,\n  user_id UUID REFERENCES users(id)\n);\n","sql","",[38,39,40,48,54,60,66],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,47],{},"-- PostgreSQL with pgcrypto\n",[41,49,51],{"class":43,"line":50},2,[41,52,53],{},"CREATE TABLE sessions (\n",[41,55,57],{"class":43,"line":56},3,[41,58,59],{},"  id UUID DEFAULT gen_random_uuid() PRIMARY KEY,\n",[41,61,63],{"class":43,"line":62},4,[41,64,65],{},"  user_id UUID REFERENCES users(id)\n",[41,67,69],{"class":43,"line":68},5,[41,70,71],{},");\n",[11,73,75],{"id":74},"when-youll-hear-this","When You'll Hear This",[16,77,78],{},"\"Use UUIDs so users cannot guess sequential IDs.\" \u002F \"The frontend generates the UUID before sending the request.\"",[80,81,82],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":50,"depth":50,"links":84},[85,86,87,88],{"id":13,"depth":50,"text":14},{"id":21,"depth":50,"text":22},{"id":28,"depth":50,"text":29},{"id":74,"depth":50,"text":75},"database","A UUID is a randomly generated ID that looks like 'a3b4c5d6-...' and is practically guaranteed to be unique across the entire universe.","intermediate","md","u",{},true,"\u002Fterms\u002Fu\u002Fuuid",[98,99,100],"Primary Key","Auto Increment","Table",{"title":5,"description":90},{"changefreq":103,"priority":104},"weekly",0.7,"terms\u002Fu\u002Fuuid",null,"OloR2hJBU4mKtY8ZzPTHg_43vWP57Afit7hhHsKorps",[109,113,116],{"title":99,"path":110,"acronym":106,"category":89,"difficulty":111,"description":112},"\u002Fterms\u002Fa\u002Fauto-increment","beginner","Auto increment means the database assigns the next ID number automatically every time you insert a row.",{"title":98,"path":114,"acronym":106,"category":89,"difficulty":111,"description":115},"\u002Fterms\u002Fp\u002Fprimary-key","A primary key is the unique ID that every row in a table must have. Like a social security number for your data — no two rows can have the same one.",{"title":100,"path":117,"acronym":106,"category":89,"difficulty":111,"description":118},"\u002Fterms\u002Ft\u002Ftable","A database table is exactly like a spreadsheet tab. It has columns across the top (name, email, age) and rows going down (one per person).",1776518320969]