You've already forked openaccounting-server
forked from cybercinch/openaccounting-server
14 lines
439 B
Go
14 lines
439 B
Go
|
|
package models
|
||
|
|
|
||
|
|
// Invite represents organization invitations
|
||
|
|
type Invite struct {
|
||
|
|
ID string `gorm:"size:32;primaryKey"`
|
||
|
|
OrgID []byte `gorm:"column:orgId;type:BINARY(16);not null"`
|
||
|
|
Inserted uint64 `gorm:"column:inserted;not null"`
|
||
|
|
Updated uint64 `gorm:"column:updated;not null"`
|
||
|
|
Email string `gorm:"column:email;size:100;not null"`
|
||
|
|
Accepted bool `gorm:"column:accepted;not null"`
|
||
|
|
|
||
|
|
Org Org `gorm:"foreignKey:OrgID"`
|
||
|
|
}
|