@cfxlabsinc/b2b-services
    Preparing search index...

    Variable productTableConst

    productTable: Omit<
        PgTableWithColumns<
            {
                columns: {
                    apiStage: PgBuildColumn<
                        "product",
                        PgTextBuilder<[string, ...string[]]>,
                        {
                            data: string;
                            dataType: "string";
                            driverParam: string;
                            enumValues: undefined;
                            generated: undefined;
                            hasDefault: false;
                            hasRuntimeDefault: false;
                            identity: undefined;
                            isAutoincrement: false;
                            isPrimaryKey: false;
                            name: string;
                            notNull: false;
                            tableName: "product";
                        },
                    >;
                    createdAt: PgBuildColumn<
                        "product",
                        SetHasDefault<
                            SetNotNull<
                                PgCustomColumnBuilder<
                                    { data: Instant; dataType: "custom"; driverParam: string },
                                >,
                            >,
                        >,
                        {
                            data: Instant;
                            dataType: "custom";
                            driverParam: string;
                            enumValues: undefined;
                            generated: undefined;
                            hasDefault: true;
                            hasRuntimeDefault: false;
                            identity: undefined;
                            isAutoincrement: false;
                            isPrimaryKey: false;
                            name: string;
                            notNull: true;
                            tableName: "product";
                        },
                    >;
                    description: PgBuildColumn<
                        "product",
                        PgTextBuilder<[string, ...string[]]>,
                        {
                            data: string;
                            dataType: "string";
                            driverParam: string;
                            enumValues: undefined;
                            generated: undefined;
                            hasDefault: false;
                            hasRuntimeDefault: false;
                            identity: undefined;
                            isAutoincrement: false;
                            isPrimaryKey: false;
                            name: string;
                            notNull: false;
                            tableName: "product";
                        },
                    >;
                    externalId: PgBuildColumn<
                        "product",
                        Set$Type<
                            SetNotNull<PgTextBuilder<[string, ...string[]]>>,

                                | "organization.v1"
                                | "identity.v1"
                                | "card.physical_card.v1"
                                | "card.virtual_card.v1"
                                | "deposit.us_cash.v1"
                                | "deposit.rtp.v1"
                                | "deposit.us_bank_ach.v1"
                                | "deposit.ach_credit.v1"
                                | "deposit.us_wire.v1"
                                | "deposit.swift_wire.v1"
                                | "transfer.redemption.v1"
                                | "swap.v1"
                                | "withdraw.blockchain.v1"
                                | "withdraw.ke_bank.v1"
                                | "withdraw.ke_momo.v1"
                                | "withdraw.mx_bank_spei.v1"
                                | "withdraw.swift_wire.v1"
                                | "withdraw.tg_momo.v1"
                                | "withdraw.us_bank_ach.v1"
                                | "withdraw.us_instant.v1"
                                | "withdraw.us_wire.v1"
                                | "withdraw.ach_pull.v1"
                                | "withdraw.us_wire_drawdown.v1"
                                | "account.virtual-account.v1"
                                | "deposit.*"
                                | "withdraw.*",
                        >,
                        {
                            data: | "organization.v1"
                            | "identity.v1"
                            | "card.physical_card.v1"
                            | "card.virtual_card.v1"
                            | "deposit.us_cash.v1"
                            | "deposit.rtp.v1"
                            | "deposit.us_bank_ach.v1"
                            | "deposit.ach_credit.v1"
                            | "deposit.us_wire.v1"
                            | "deposit.swift_wire.v1"
                            | "transfer.redemption.v1"
                            | "swap.v1"
                            | "withdraw.blockchain.v1"
                            | "withdraw.ke_bank.v1"
                            | "withdraw.ke_momo.v1"
                            | "withdraw.mx_bank_spei.v1"
                            | "withdraw.swift_wire.v1"
                            | "withdraw.tg_momo.v1"
                            | "withdraw.us_bank_ach.v1"
                            | "withdraw.us_instant.v1"
                            | "withdraw.us_wire.v1"
                            | "withdraw.ach_pull.v1"
                            | "withdraw.us_wire_drawdown.v1"
                            | "account.virtual-account.v1"
                            | "deposit.*"
                            | "withdraw.*";
                            dataType: "string";
                            driverParam: string;
                            enumValues: undefined;
                            generated: undefined;
                            hasDefault: false;
                            hasRuntimeDefault: false;
                            identity: undefined;
                            isAutoincrement: false;
                            isPrimaryKey: false;
                            name: string;
                            notNull: true;
                            tableName: "product";
                        },
                    >;
                    id: PgBuildColumn<
                        "product",
                        HasIdentity<SetIsPrimaryKey<PgIntegerBuilder>, "byDefault">,
                        {
                            data: number;
                            dataType: "number int32";
                            driverParam: string | number;
                            enumValues: undefined;
                            generated: undefined;
                            hasDefault: true;
                            hasRuntimeDefault: false;
                            identity: "byDefault";
                            isAutoincrement: false;
                            isPrimaryKey: false;
                            name: string;
                            notNull: true;
                            tableName: "product";
                        },
                    >;
                    name: PgBuildColumn<
                        "product",
                        SetNotNull<PgTextBuilder<[string, ...string[]]>>,
                        {
                            data: string;
                            dataType: "string";
                            driverParam: string;
                            enumValues: undefined;
                            generated: undefined;
                            hasDefault: false;
                            hasRuntimeDefault: false;
                            identity: undefined;
                            isAutoincrement: false;
                            isPrimaryKey: false;
                            name: string;
                            notNull: true;
                            tableName: "product";
                        },
                    >;
                    updatedAt: PgBuildColumn<
                        "product",
                        SetHasDefault<
                            SetHasDefault<
                                SetNotNull<
                                    PgCustomColumnBuilder<
                                        { data: Instant; dataType: "custom"; driverParam: string },
                                    >,
                                >,
                            >,
                        >,
                        {
                            data: Instant;
                            dataType: "custom";
                            driverParam: string;
                            enumValues: undefined;
                            generated: undefined;
                            hasDefault: true;
                            hasRuntimeDefault: false;
                            identity: undefined;
                            isAutoincrement: false;
                            isPrimaryKey: false;
                            name: string;
                            notNull: true;
                            tableName: "product";
                        },
                    >;
                };
                dialect: "pg";
                name: "product";
                schema: "b2b";
            },
        >,
        "enableRLS",
    > = ...

    Reference table for product metadata. externalId is the literal ProductName. Routable surfaces (product_route.productId, product_quote.productId) FK to id. The TS source of truth for the ProductName union is the PRODUCT_NAMES const above