func ValidColumn(column string) bool {
	for i := range Columns {
		if column == Columns[i] {
			return true
		}
	}
	for i := range ForeignKeys {
		if column == ForeignKeys[i] {
			return true
		}
	}
	return false
}
ValidColumn reports if the column name is valid (part of the table columns).
package todo
import (
	"fmt"
	"io"
	"strconv"
	"time"
)
const (
	Label = "todo"
	FieldID = "id"
	FieldCreatedAt = "created_at"
	FieldStatus = "status"
	FieldPriority = "priority"
	FieldText = "text"
	FieldBlob = "blob"
	EdgeParent = "parent"
	EdgeChildren = "children"
	EdgeCategory = "category"
	EdgeSecret = "secret"
	Table = "todos"
	ParentTable = "todos"
	ParentColumn = "todo_children"
	ChildrenTable = "todos"
	ChildrenColumn = "todo_children"
	CategoryTable = "todos"
	CategoryInverseTable = "categories"
	CategoryColumn = "category_todos"
	SecretTable = "todos"
	SecretInverseTable = "very_secrets"
	SecretColumn = "todo_secret"
)
var Columns = []string{
	FieldID,
	FieldCreatedAt,
	FieldStatus,
	FieldPriority,
	FieldText,
	FieldBlob,
}
var ForeignKeys = []string{
	"category_todos",
	"todo_children",
	"todo_secret",
}