Add todo schema

This commit is contained in:
Achim Rohn
2025-09-18 09:59:40 +02:00
parent b788fb4898
commit 1c42c7dd7a
17 changed files with 2832 additions and 2 deletions
+2
View File
@@ -6,6 +6,7 @@ import (
"context"
"errors"
"ersteller-lib/starter/ent/googleauth"
"ersteller-lib/starter/ent/todo"
"ersteller-lib/starter/ent/user"
"fmt"
"reflect"
@@ -75,6 +76,7 @@ func checkColumn(t, c string) error {
initCheck.Do(func() {
columnCheck = sql.NewColumnCheck(map[string]func(string) bool{
googleauth.Table: googleauth.ValidColumn,
todo.Table: todo.ValidColumn,
user.Table: user.ValidColumn,
})
})