package models import "time" // ReadingOwnership records that a user (a golem15.user users row) owns a // copy of a reading. One row per reading and user, kept apart from the read // mark in ReadingProgress. type ReadingOwnership struct { ID uint `gorm:"column:id;primaryKey"` ReadingID uint `gorm:"column:reading_id"` UserID uint `gorm:"column:user_id"` OwnedAt time.Time `gorm:"column:owned_at"` } // TableName is the plugin table. func (ReadingOwnership) TableName() string { return "jz_bm_reading_ownership" }