modeldocuments

package
v0.0.0-...-cbe41fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPbDocumentMetadata

func NewPbDocumentMetadata(md *ModelDocument) *apppb.DataMetadata

Types

type DocumentID

type DocumentID uuid.UUID

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

func (DocumentID) Value

func (d DocumentID) Value() (driver.Value, error)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL