schema: split 'column', 'index' and 'schema' into separate files from 'table'

This commit is contained in:
2026-03-15 15:45:16 -07:00
committed by ~wispem-wantex
parent 616304c7dd
commit 9c31266f59
4 changed files with 77 additions and 71 deletions

10
pkg/schema/index.go Normal file
View File

@@ -0,0 +1,10 @@
package schema
type Index struct {
Name string `db:"index_name"`
TableName string `db:"table_name"`
Columns []string
IsUnique bool `db:"is_unique"`
// TODO: `where ...` for partial indexes
// TODO: identify columns that are expressions
}