-
Notifications
You must be signed in to change notification settings - Fork 0
/
django_admin_log.gen.go
32 lines (26 loc) · 1.12 KB
/
django_admin_log.gen.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
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
import (
"time"
)
const TableNameDjangoAdminLog = "django_admin_log"
// DjangoAdminLog mapped from table <django_admin_log>
type DjangoAdminLog struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
ActionTime time.Time `gorm:"column:action_time;not null" json:"action_time"`
ObjectID *string `gorm:"column:object_id" json:"object_id"`
ObjectRepr string `gorm:"column:object_repr;not null" json:"object_repr"`
ActionFlag int32 `gorm:"column:action_flag;not null" json:"action_flag"`
ChangeMessage string `gorm:"column:change_message;not null" json:"change_message"`
ContentTypeID *int32 `gorm:"column:content_type_id" json:"content_type_id"`
UserID int32 `gorm:"column:user_id;not null" json:"user_id"`
}
// TableName DjangoAdminLog's table name
func (*DjangoAdminLog) TableName() string {
return TableNameDjangoAdminLog
}
func (*DjangoAdminLog) PrimaryKey() []string {
return []string{"id"}
}