|
@@ -0,0 +1,19 @@
|
|
|
+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"`;
|
|
|
+};
|
|
|
+
|