{"modulePath":"github.com/bitechdev/ResolveSpec","version":"v1.3.14","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package testmodels\n\n## Functions\n\n```go\nfunc GetTestModels() []interface{}\n```\nGetTestModels returns a list of all test model instances\n\n```go\nfunc RegisterTestModels(registry *modelregistry.DefaultModelRegistry)\n```\nRegisterTestModels registers all test models with the provided registry\n\n## Types\n\n```go\ntype Comment struct {\n\tID        int32     `json:\"id\" gorm:\"primaryKey;autoIncrement\"`\n\tTaskID    int32     `json:\"task_id\"`\n\tAuthorID  int32     `json:\"author_id\"`\n\tContent   string    `json:\"content\"`\n\tCreatedAt time.Time `json:\"created_at\"`\n\tUpdatedAt time.Time `json:\"updated_at\"`\n\n\t// Relations\n\tTask   ProjectTask `json:\"task,omitempty\" gorm:\"foreignKey:TaskID;references:ID\"`\n\tAuthor Employee    `json:\"author,omitempty\" gorm:\"foreignKey:AuthorID;references:ID\"`\n}\n```\nComment represents a comment on a task\n\n```go\nfunc (Comment) TableName() string\n```\n\n```go\ntype Department struct {\n\tID          int32     `json:\"id\" gorm:\"primaryKey;autoIncrement\"`\n\tName        string    `json:\"name\"`\n\tCode        string    `json:\"code\" gorm:\"uniqueIndex\"`\n\tDescription string    `json:\"description\"`\n\tCreatedAt   time.Time `json:\"created_at\"`\n\tUpdatedAt   time.Time `json:\"updated_at\"`\n\n\t// Relations\n\tEmployees []Employee `json:\"employees,omitempty\" gorm:\"foreignKey:DepartmentID;references:ID\"`\n\tProjects  []Project  `json:\"projects,omitempty\" gorm:\"many2many:department_projects;\"`\n}\n```\nDepartment represents a company department\n\n```go\nfunc (Department) TableName() string\n```\n\n```go\ntype Document struct {\n\tID          int32     `json:\"id\" gorm:\"primaryKey;autoIncrement\"`\n\tName        string    `json:\"name\"`\n\tType        string    `json:\"type\"`\n\tContentType string    `json:\"content_type\"`\n\tSize        int64     `json:\"size\"`\n\tPath        string    `json:\"path\"`\n\tOwnerID     int32     `json:\"owner_id\"`\n\tProjectID   *int32    `json:\"project_id\"`\n\tStatus      string    `json:\"status\"`\n\tCreatedAt   time.Time `json:\"created_at\"`\n\tUpdatedAt   time.Time `json:\"updated_at\"`\n\n\t// Relations\n\tOwner   Employee `json:\"owner,omitempty\" gorm:\"foreignKey:OwnerID;references:ID\"`\n\tProject *Project `json:\"project,omitempty\" gorm:\"foreignKey:ProjectID;references:ID\"`\n}\n```\nDocument represents any document in the system\n\n```go\nfunc (Document) TableName() string\n```\n\n```go\ntype Employee struct {\n\tID           int32     `json:\"id\" gorm:\"primaryKey;autoIncrement\"`\n\tFirstName    string    `json:\"first_name\"`\n\tLastName     string    `json:\"last_name\"`\n\tEmail        string    `json:\"email\" gorm:\"uniqueIndex\"`\n\tTitle        string    `json:\"title\"`\n\tDepartmentID int32     `json:\"department_id\"`\n\tManagerID    *int32    `json:\"manager_id\"`\n\tHireDate     time.Time `json:\"hire_date\"`\n\tStatus       string    `json:\"status\"`\n\tCreatedAt    time.Time `json:\"created_at\"`\n\tUpdatedAt    time.Time `json:\"updated_at\"`\n\n\t// Relations\n\tDepartment *Department `json:\"department,omitempty\" gorm:\"foreignKey:DepartmentID;references:ID\"`\n\tManager    *Employee   `json:\"manager,omitempty\" gorm:\"foreignKey:ManagerID;references:ID\"`\n\tReports    []Employee  `json:\"reports,omitempty\" gorm:\"foreignKey:ManagerID;references:ID\"`\n\tProjects   []Project   `json:\"projects,omitempty\" gorm:\"many2many:employee_projects;\"`\n\tDocuments  []Document  `json:\"documents,omitempty\" gorm:\"foreignKey:OwnerID;references:ID\"`\n}\n```\nEmployee represents a company employee\n\n```go\nfunc (Employee) TableName() string\n```\n\n```go\ntype Project struct {\n\tID          int32     `json:\"id\" gorm:\"primaryKey;autoIncrement\"`\n\tName        string    `json:\"name\"`\n\tCode        string    `json:\"code\" gorm:\"uniqueIndex\"`\n\tDescription string    `json:\"description\"`\n\tStatus      string    `json:\"status\"`\n\tStartDate   time.Time `json:\"start_date\"`\n\tEndDate     time.Time `json:\"end_date\"`\n\tBudget      float64   `json:\"budget\"`\n\tCreatedAt   time.Time `json:\"created_at\"`\n\tUpdatedAt   time.Time `json:\"updated_at\"`\n\n\t// Relations\n\tDepartments []Department  `json:\"departments,omitempty\" gorm:\"many2many:department_projects;\"`\n\tEmployees   []Employee    `json:\"employees,omitempty\" gorm:\"many2many:employee_projects;\"`\n\tTasks       []ProjectTask `json:\"tasks,omitempty\" gorm:\"foreignKey:ProjectID;references:ID\"`\n\tDocuments   []Document    `json:\"documents,omitempty\" gorm:\"foreignKey:ProjectID;references:ID\"`\n}\n```\nProject represents a company project\n\n```go\nfunc (Project) TableName() string\n```\n\n```go\ntype ProjectTask struct {\n\tID          int32     `json:\"id\" gorm:\"primaryKey;autoIncrement\"`\n\tProjectID   int32     `json:\"project_id\"`\n\tAssigneeID  int32     `json:\"assignee_id\"`\n\tTitle       string    `json:\"title\"`\n\tDescription string    `json:\"description\"`\n\tStatus      string    `json:\"status\"`\n\tPriority    int       `json:\"priority\"`\n\tDueDate     time.Time `json:\"due_date\"`\n\tCreatedAt   time.Time `json:\"created_at\"`\n\tUpdatedAt   time.Time `json:\"updated_at\"`\n\n\t// Relations\n\tProject  Project   `json:\"project,omitempty\" gorm:\"foreignKey:ProjectID;references:ID\"`\n\tAssignee Employee  `json:\"assignee,omitempty\" gorm:\"foreignKey:AssigneeID;references:ID\"`\n\tComments []Comment `json:\"comments,omitempty\" gorm:\"foreignKey:TaskID;references:ID\"`\n}\n```\nProjectTask represents a task within a project\n\n```go\nfunc (ProjectTask) TableName() string\n```\n\n","path":"github.com/bitechdev/ResolveSpec/pkg/testmodels","name":"testmodels","synopsis":"","isRedistributable":true}
