add models generation and josn print
This commit is contained in:
18
app/model/prestadb/ps_authorization_role.go
Normal file
18
app/model/prestadb/ps_authorization_role.go
Normal file
@@ -0,0 +1,18 @@
|
||||
// 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 prestadb
|
||||
|
||||
const TableNamePsAuthorizationRole = "ps_authorization_role"
|
||||
|
||||
// PsAuthorizationRole mapped from table <ps_authorization_role>
|
||||
type PsAuthorizationRole struct {
|
||||
IDAuthorizationRole int32 `gorm:"column:id_authorization_role;primaryKey;autoIncrement:true" json:"id_authorization_role"`
|
||||
Slug string `gorm:"column:slug;not null;uniqueIndex:slug,priority:1" json:"slug"`
|
||||
}
|
||||
|
||||
// TableName PsAuthorizationRole's table name
|
||||
func (*PsAuthorizationRole) TableName() string {
|
||||
return TableNamePsAuthorizationRole
|
||||
}
|
||||
Reference in New Issue
Block a user