diff --git a/.gitignore b/.gitignore index f1ef884..433292f 100644 --- a/.gitignore +++ b/.gitignore @@ -69,7 +69,9 @@ Thumbs.db # Generated protobuf files api/proto/generated/ -# Generated Ent ORM files +# Generated Ent ORM files (but keep schema source files) internal/ent/ -ent/ +ent/*.go +ent/*/ +!ent/schema/ git.dcentral.systems/ \ No newline at end of file diff --git a/ent/schema/auditlog.go b/ent/schema/auditlog.go new file mode 100644 index 0000000..1fe5105 --- /dev/null +++ b/ent/schema/auditlog.go @@ -0,0 +1,19 @@ +// Package schema defines the Ent schema for audit log entities. +package schema + +import "entgo.io/ent" + +// AuditLog holds the schema definition for the AuditLog entity. +type AuditLog struct { + ent.Schema +} + +// Fields of the AuditLog. +func (AuditLog) Fields() []ent.Field { + return nil +} + +// Edges of the AuditLog. +func (AuditLog) Edges() []ent.Edge { + return nil +} diff --git a/ent/schema/permission.go b/ent/schema/permission.go new file mode 100644 index 0000000..cd589ec --- /dev/null +++ b/ent/schema/permission.go @@ -0,0 +1,18 @@ +package schema + +import "entgo.io/ent" + +// Permission holds the schema definition for the Permission entity. +type Permission struct { + ent.Schema +} + +// Fields of the Permission. +func (Permission) Fields() []ent.Field { + return nil +} + +// Edges of the Permission. +func (Permission) Edges() []ent.Edge { + return nil +} diff --git a/ent/schema/role.go b/ent/schema/role.go new file mode 100644 index 0000000..b80c4da --- /dev/null +++ b/ent/schema/role.go @@ -0,0 +1,18 @@ +package schema + +import "entgo.io/ent" + +// Role holds the schema definition for the Role entity. +type Role struct { + ent.Schema +} + +// Fields of the Role. +func (Role) Fields() []ent.Field { + return nil +} + +// Edges of the Role. +func (Role) Edges() []ent.Edge { + return nil +} diff --git a/ent/schema/user.go b/ent/schema/user.go new file mode 100644 index 0000000..7c14fb8 --- /dev/null +++ b/ent/schema/user.go @@ -0,0 +1,18 @@ +package schema + +import "entgo.io/ent" + +// User holds the schema definition for the User entity. +type User struct { + ent.Schema +} + +// Fields of the User. +func (User) Fields() []ent.Field { + return nil +} + +// Edges of the User. +func (User) Edges() []ent.Edge { + return nil +}