feat(db): adding org table to relational model

This commit is contained in:
Iraq Jaber
2025-06-12 17:27:49 +02:00
parent a77f88c8fb
commit b37937d333
11 changed files with 678 additions and 75 deletions

View File

@@ -87,6 +87,22 @@ func (c *Config) Connect(useAdmin bool) (*sql.DB, *pgxpool.Pool, error) {
return err
}
}
// Checken & Egg problem:
// conn.Exec(ctx, "CREATE SCHEMA IF NOT EXISTS zitadel")
// conn.Exec(ctx, `
// CREATE TYPE zitadel.organization_state AS ENUM (
// 'ACTIVE',
// 'INACTIVE'
// )`,
// )
// orgState, err := conn.LoadType(ctx, "zitadel.organization_state")
// if err != nil {
// return err
// }
// conn.TypeMap().RegisterType(orgState)
return nil
}
}