Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct { gorm.Model ID uuid.UUID `json:"id" gorm:"type:uuid;default:uuid_generate_v4();primaryKey"` ProjectID uuid.UUID `json:"project_id" gorm:"type:uuid"` Url string `json:"url"` Method string `json:"method"` Body string `json:"body"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` }
type Project ¶
type Project struct { gorm.Model ID uuid.UUID `json:"id" gorm:"type:uuid;default:uuid_generate_v4();primaryKey"` Title string `json:"title"` UserID uuid.UUID `json:"user_id" gorm:"type:uuid"` Hooks []Hook `gorm:"foreignKey:ProjectID;references:ID"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` }
type User ¶
type User struct { gorm.Model ID uuid.UUID `json:"id" gorm:"type:uuid;default:uuid_generate_v4();primaryKey"` Name string `json:"name"` Email string `json:"email" gorm:"unique"` Password string `json:"password"` Projects []Project `gorm:"foreignKey:UserID;references:ID"` Sessions []Session `gorm:"foreignKey:UserID;references:ID"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` }
Click to show internal directories.
Click to hide internal directories.