probo/models/exam.go

23 lines
371 B
Go

package models
import (
"time"
"gorm.io/gorm"
)
type Exam struct {
ID string `gorm:"primaryKey"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt gorm.DeletedAt `gorm:"index"`
Name string
Description string
Collection *Collection `gorm:"foreignKey:ID"`
Participant []*Participant `gorm:"many2many:exam_participants"`
// Responses []string
}