1234567891011121314151617181920 |
- package models;
- /*{
- "article_id": *?,
- "person": {
- "staff_id": *?,
- "termit_id": *?
- }
- }*/
- type Person struct {
- StaffId int `sql:"index"`;
- TermitId int `sql:"index"`; // EmpGUID
- };
- type Authorship struct {
- ArticleId int `gorm:"index"`;
- Person `gorm:"embedded"`;
- };
|