backend api, swagger, tooling, frontend skeleton

This commit is contained in:
2026-01-21 22:05:02 +01:00
parent a9d1ad79ca
commit 88624f3bed
107 changed files with 34393 additions and 6 deletions

View File

@@ -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"
@@ -60,7 +62,6 @@ func (Objet) Fields() []ent.Field {
Comment("Statut de l'objet"),
field.JSON("caracteristiques", map[string]any{}).
Optional().
Nillable().
Comment("Caracteristiques personnalisees"),
field.Time("created_at").
Default(time.Now).
@@ -72,6 +73,13 @@ func (Objet) Fields() []ent.Field {
}
}
// Annotations pour le nom de table.
func (Objet) Annotations() []schema.Annotation {
return []schema.Annotation{
entsql.Annotation{Table: "objet"},
}
}
// Edges de l'entite Objet.
func (Objet) Edges() []ent.Edge {
return []ent.Edge{