mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-14 05:10:05 +01:00
initial rebuild
This commit is contained in:
12
internal/db/models/organization.go
Normal file
12
internal/db/models/organization.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package models
|
||||
|
||||
import "github.com/google/uuid"
|
||||
|
||||
type Organization struct {
|
||||
ID uuid.UUID `gorm:"type:uuid;primaryKey;default:gen_random_uuid()" json:"id"`
|
||||
Name string `gorm:"not null" json:"name"`
|
||||
Slug string `gorm:"unique" json:"slug"`
|
||||
Logo string `json:"logo"`
|
||||
Metadata string `json:"metadata"`
|
||||
Timestamped
|
||||
}
|
||||
Reference in New Issue
Block a user