feat: crudgen
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
package models
|
||||
|
||||
var Entities = []any{
|
||||
&Post{},
|
||||
&Post{}, &Author{},
|
||||
}
|
||||
|
||||
type Post struct {
|
||||
Id uint `gorm:"primaryKey"`
|
||||
Id uint `gorm:"primaryKey"`
|
||||
Text string
|
||||
}
|
||||
|
||||
type Author struct {
|
||||
Id uint `gorm:"primaryKey"`
|
||||
Name string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user