diff --git a/pkg/model/ent/schema/answer.go b/pkg/model/ent/schema/answer.go index de3028d..5222fec 100644 --- a/pkg/model/ent/schema/answer.go +++ b/pkg/model/ent/schema/answer.go @@ -34,9 +34,3 @@ func (Answer) Edges() []ent.Edge { Required(), } } - -func (Answer) Config() ent.Config { - return ent.Config{ - Table: "answers", - } -} diff --git a/pkg/model/ent/schema/askedQuestion.go b/pkg/model/ent/schema/askedQuestion.go index 23922df..8f03523 100644 --- a/pkg/model/ent/schema/askedQuestion.go +++ b/pkg/model/ent/schema/askedQuestion.go @@ -35,9 +35,3 @@ func (AskedQuestion) Edges() []ent.Edge { Required(), } } - -func (AskedQuestion) Config() ent.Config { - return ent.Config{ - Table: "asked_questions", - } -} diff --git a/pkg/model/ent/schema/choice.go b/pkg/model/ent/schema/choice.go index bd8e395..cb9773a 100644 --- a/pkg/model/ent/schema/choice.go +++ b/pkg/model/ent/schema/choice.go @@ -32,9 +32,3 @@ func (Choice) Edges() []ent.Edge { edge.To("answers", Answer.Type), } } - -func (Choice) Config() ent.Config { - return ent.Config{ - Table: "options", - } -} diff --git a/pkg/model/ent/schema/game.go b/pkg/model/ent/schema/game.go index f9ae7ea..973bbac 100644 --- a/pkg/model/ent/schema/game.go +++ b/pkg/model/ent/schema/game.go @@ -27,9 +27,3 @@ func (Game) Edges() []ent.Edge { edge.To("questions", Question.Type), } } - -func (Game) Config() ent.Config { - return ent.Config{ - Table: "games", - } -} diff --git a/pkg/model/ent/schema/player.go b/pkg/model/ent/schema/player.go index 7f42e2d..b08c8a6 100644 --- a/pkg/model/ent/schema/player.go +++ b/pkg/model/ent/schema/player.go @@ -37,9 +37,3 @@ func (Player) Edges() []ent.Edge { edge.To("answers", Answer.Type), } } - -func (Player) Config() ent.Config { - return ent.Config{ - Table: "players", - } -} diff --git a/pkg/model/ent/schema/question.go b/pkg/model/ent/schema/question.go index fed4a47..be62384 100644 --- a/pkg/model/ent/schema/question.go +++ b/pkg/model/ent/schema/question.go @@ -37,9 +37,3 @@ func (Question) Edges() []ent.Edge { edge.To("asked", AskedQuestion.Type), } } - -func (Question) Config() ent.Config { - return ent.Config{ - Table: "questions", - } -} diff --git a/pkg/model/ent/schema/session.go b/pkg/model/ent/schema/session.go index 8e2d41b..2d5f89c 100644 --- a/pkg/model/ent/schema/session.go +++ b/pkg/model/ent/schema/session.go @@ -34,9 +34,3 @@ func (Session) Edges() []ent.Edge { edge.To("askedQuestions", AskedQuestion.Type), } } - -func (Session) Config() ent.Config { - return ent.Config{ - Table: "sessions", - } -}