pub const MIGRACION_USUARIOS: &str = "-- Cada llamante autenticado (ADR-0021 \u{a7} 3 de Puerto). `(emisor, sujeto)` es el nombre que el\n-- proveedor da a la persona; en un proyecto OIDC no se leen los `roles`: deciden los del token.\nCREATE TABLE usuarios (\n id UUID PRIMARY KEY,\n emisor TEXT NOT NULL,\n sujeto TEXT NOT NULL,\n email TEXT,\n nombre TEXT,\n roles TEXT[] NOT NULL DEFAULT \'{}\',\n creado_en TIMESTAMPTZ NOT NULL,\n actualizado_en TIMESTAMPTZ NOT NULL,\n UNIQUE (emisor, sujeto)\n);\n";Expand description
The users every auth project has (migrations/users.sql): auth::SesionesPostgres reads it, so its
schema is part of this crate’s contract. Puerto’s CLI ships a byte-for-byte copy of it as a
project migration.