"use strict";(self.webpackChunkgoffee_site=self.webpackChunkgoffee_site||[]).push([[2804],{4323:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>l,contentTitle:()=>i,default:()=>h,frontMatter:()=>a,metadata:()=>r,toc:()=>c});var t=n(4848),o=n(8453);const a={title:"Relationships (Associations)"},i=void 0,r={id:"database-relationships",title:"Relationships (Associations)",description:"Belongs To",source:"@site/docs/database-relationships.md",sourceDirName:".",slug:"/database-relationships",permalink:"/goffee/docs/database-relationships",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{title:"Relationships (Associations)"},sidebar:"docsSidebar",previous:{title:"CRUD Operations",permalink:"/goffee/docs/database-crud"},next:{title:"Deployment",permalink:"/goffee/docs/category/deployment"}},l={},c=[{value:"Belongs To",id:"belongs-to",level:2},{value:"Has One",id:"has-one",level:2},{value:"Has Many",id:"has-many",level:2},{value:"Many to Many",id:"many-to-many",level:2}];function d(e){const s={a:"a",h2:"h2",p:"p",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.h2,{id:"belongs-to",children:"Belongs To"}),"\n",(0,t.jsxs)(s.p,{children:["The docs are available at ",(0,t.jsx)(s.a,{href:"https://gorm.io/docs/belongs_to.html",children:"gorm belongs to relationship docs"})]}),"\n",(0,t.jsx)(s.h2,{id:"has-one",children:"Has One"}),"\n",(0,t.jsxs)(s.p,{children:["The docs are available at ",(0,t.jsx)(s.a,{href:"https://gorm.io/docs/has_one.html",children:"gorm has one relationship docs"})]}),"\n",(0,t.jsx)(s.h2,{id:"has-many",children:"Has Many"}),"\n",(0,t.jsxs)(s.p,{children:["The docs are available at ",(0,t.jsx)(s.a,{href:"https://gorm.io/docs/has_many.html",children:"gorm has many relationship docs"})]}),"\n",(0,t.jsx)(s.h2,{id:"many-to-many",children:"Many to Many"}),"\n",(0,t.jsxs)(s.p,{children:["The docs are available at ",(0,t.jsx)(s.a,{href:"https://gorm.io/docs/many_to_many.html",children:"gorm many to many relationship docs"})]})]})}function h(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},8453:(e,s,n)=>{n.d(s,{R:()=>i,x:()=>r});var t=n(6540);const o={},a=t.createContext(o);function i(e){const s=t.useContext(a);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function r(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),t.createElement(a.Provider,{value:s},e.children)}}}]);