Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPbDocumentMetadata ¶
func NewPbDocumentMetadata(md *ModelDocument) *apppb.DataMetadata
Types ¶
type DocumentID ¶
func NewDocumentID ¶
func NewDocumentID() DocumentID
func Parse ¶
func Parse(s string) (DocumentID, error)
func (*DocumentID) Scan ¶
func (d *DocumentID) Scan(value interface{}) error
func (DocumentID) String ¶
func (d DocumentID) String() string
type ModelDocument ¶
type ModelDocument struct { ID DocumentID `gorm:"column:id;primarykey;type:string;"` CreatedAt time.Time `gorm:"column:created_at"` UpdatedAt time.Time `gorm:"column:updated_at"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at"` Data datatypes.JSON `gorm:"column:data"` ModelCollectionID modelcollections.CollectionID // foreign key to model collection ModelCollection modelcollections.ModelCollection ModelProjectID modelprojects.ProjectID // foreigh key to model project ModelProject modelprojects.ModelProject }
Click to show internal directories.
Click to hide internal directories.