Add ent schema example

This commit is contained in:
Achim Rohn
2025-09-12 00:35:31 +02:00
parent d74d2c7afb
commit 49ff018349
25 changed files with 3975 additions and 9 deletions
+19
View File
@@ -0,0 +1,19 @@
package main
import (
"log"
"entgo.io/ent/entc"
"entgo.io/ent/entc/gen"
)
func main() {
log.Println("ersteller start")
must(entc.Generate("./schema/ent/example/ent/schema", &gen.Config{}))
}
func must(err error) {
if err != nil {
log.Fatal(err)
}
}