-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.go
99 lines (85 loc) · 2.67 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
package main
import (
"time"
"gopkg.in/mgutz/dat.v1"
)
type StockOrder struct {
ID int64 `db:"stock_order_id"`
UserID int64 `db:"user_id"`
CreatedAt dat.NullTime `db:"created_at"`
}
type StockItemOrder struct {
ID int64 `db:"stock_item_order_id"`
ItemID int64 `db:"item_id"`
OrderID int64 `db:"order_id"`
}
type StockInventoryTag struct {
StockID int64 `db:"stock_id"`
TypeID int64 `db:"type_id"`
Value string `db:"value"`
}
type StockUserAnnotation struct {
StockID int64 `db:"stock_id"`
CreatedBy int64 `db:"created_user_id"`
ModifiedBy int64 `db:"modified_user_id"`
CreatedAt time.Time `db:"created_at"`
ModifiedAt time.Time `db:"updated_at"`
}
type PlasmidName struct {
StockID int64 `db:"stock_id"`
Name string `db:"name"`
}
type User struct {
ID int64 `db:"auth_user_id"`
FirstName string `db:"first_name"`
LastName string `db:"last_name"`
Email string `db:"email"`
IsActive bool `db:"is_active"`
}
type UserInfo struct {
ID int64 `db:"auth_user_info_id"`
UserID int64 `db:"auth_user_id"`
Organization dat.NullString `db:"organization"`
GroupName dat.NullString `db:"group_name"`
FirstAddress dat.NullString `db:"first_address"`
SecondAddress dat.NullString `db:"second_address"`
City dat.NullString `db:"city"`
State dat.NullString `db:"state"`
Zipcode dat.NullString `db:"zipcode"`
Country dat.NullString `db:"country"`
Phone dat.NullString `db:"phone"`
}
type UserRelationship struct {
ID int64 `db:"user_relationship_id"`
IsActive bool `db:"is_active"`
TypeId int64 `db:"type_id"`
SubjectId int64 `db:"subject_id"`
ObjectId int64 `db:"object_id"`
}
type Cv struct {
CvId int64 `db:"cv_id"`
Name string `db:"name"`
Definition dat.NullString `db:"definition"`
}
type Cvterm struct {
CvtermId int64 `db:"cvterm_id"`
Name string `db:"name"`
Definition dat.NullString `db:"definition"`
IsObsolete int64 `db:"is_obsolete"`
IsRelationshipType int64 `db:"is_relationshiptype"`
CvId int64 `db:"cv_id"`
}
type Dbxref struct {
DbxrefId int64 `db:"dbxref_id"`
Accession string `db:"accession"`
Version dat.NullString `db:"version"`
Description dat.NullString `db:"Description"`
DbId int64 `db:"db_id"`
}
type Db struct {
DbId int64 `db:db_id"`
Name string `db:"name"`
Description dat.NullString `db:"description"`
Urlprefix dat.NullString `db:"urlprefix"`
Url dat.NullString `db:"url"`
}