backend api, swagger, tooling, frontend skeleton
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/schema"
|
||||
"entgo.io/ent/schema/edge"
|
||||
"entgo.io/ent/schema/field"
|
||||
"github.com/google/uuid"
|
||||
@@ -45,6 +47,13 @@ func (Categorie) Fields() []ent.Field {
|
||||
}
|
||||
}
|
||||
|
||||
// Annotations pour le nom de table.
|
||||
func (Categorie) Annotations() []schema.Annotation {
|
||||
return []schema.Annotation{
|
||||
entsql.Annotation{Table: "categorie"},
|
||||
}
|
||||
}
|
||||
|
||||
// Edges de l'entite Categorie.
|
||||
func (Categorie) Edges() []ent.Edge {
|
||||
return []ent.Edge{
|
||||
|
||||
Reference in New Issue
Block a user