feat: add the study data models and schema migrations
Courses, meetings, class sessions, deadlines, readings with per-user progress, materials with tags and file attachments. Timestamps are stored in UTC and held as Europe/Warsaw text so the admin text inputs can write them.
This commit is contained in:
12
models/material_tag.go
Normal file
12
models/material_tag.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// Code generated by summer make. DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
// MaterialTag is the pivot row between a material and a tag.
|
||||
type MaterialTag struct {
|
||||
MaterialID uint `gorm:"column:material_id;primaryKey"`
|
||||
TagID uint `gorm:"column:tag_id;primaryKey"`
|
||||
}
|
||||
|
||||
// TableName is the pivot table.
|
||||
func (MaterialTag) TableName() string { return "jz_bm_material_tag" }
|
||||
Reference in New Issue
Block a user