Initial commit

This commit is contained in:
Ammaar Reshi
2025-01-04 14:06:53 +00:00
parent 7082408604
commit d6025af146
23760 changed files with 3299690 additions and 0 deletions

23
node_modules/drizzle-orm/supabase/index.cjs generated vendored Normal file
View File

@ -0,0 +1,23 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var supabase_exports = {};
module.exports = __toCommonJS(supabase_exports);
__reExport(supabase_exports, require("./rls.cjs"), module.exports);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
...require("./rls.cjs")
});
//# sourceMappingURL=index.cjs.map

1
node_modules/drizzle-orm/supabase/index.cjs.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":["../../src/supabase/index.ts"],"sourcesContent":["export * from './rls.ts';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,qBAAd;","names":[]}

1
node_modules/drizzle-orm/supabase/index.d.cts generated vendored Normal file
View File

@ -0,0 +1 @@
export * from "./rls.cjs";

1
node_modules/drizzle-orm/supabase/index.d.ts generated vendored Normal file
View File

@ -0,0 +1 @@
export * from "./rls.js";

2
node_modules/drizzle-orm/supabase/index.js generated vendored Normal file
View File

@ -0,0 +1,2 @@
export * from "./rls.js";
//# sourceMappingURL=index.js.map

1
node_modules/drizzle-orm/supabase/index.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":["../../src/supabase/index.ts"],"sourcesContent":["export * from './rls.ts';\n"],"mappings":"AAAA,cAAc;","names":[]}

76
node_modules/drizzle-orm/supabase/rls.cjs generated vendored Normal file
View File

@ -0,0 +1,76 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var rls_exports = {};
__export(rls_exports, {
anonRole: () => anonRole,
authUid: () => authUid,
authUsers: () => authUsers,
authenticatedRole: () => authenticatedRole,
postgresRole: () => postgresRole,
realtimeMessages: () => realtimeMessages,
realtimeTopic: () => realtimeTopic,
serviceRole: () => serviceRole,
supabaseAuthAdminRole: () => supabaseAuthAdminRole
});
module.exports = __toCommonJS(rls_exports);
var import_pg_core = require("../pg-core/index.cjs");
var import_roles = require("../pg-core/roles.cjs");
var import_sql = require("../sql/sql.cjs");
const anonRole = (0, import_roles.pgRole)("anon").existing();
const authenticatedRole = (0, import_roles.pgRole)("authenticated").existing();
const serviceRole = (0, import_roles.pgRole)("service_role").existing();
const postgresRole = (0, import_roles.pgRole)("postgres_role").existing();
const supabaseAuthAdminRole = (0, import_roles.pgRole)("supabase_auth_admin").existing();
const auth = (0, import_pg_core.pgSchema)("auth");
const authUsers = auth.table("users", {
id: (0, import_pg_core.uuid)().primaryKey().notNull(),
email: (0, import_pg_core.varchar)({ length: 255 }),
phone: (0, import_pg_core.text)().unique(),
emailConfirmedAt: (0, import_pg_core.timestamp)("email_confirmed_at", { withTimezone: true }),
phoneConfirmedAt: (0, import_pg_core.timestamp)("phone_confirmed_at", { withTimezone: true }),
lastSignInAt: (0, import_pg_core.timestamp)("last_sign_in_at", { withTimezone: true }),
createdAt: (0, import_pg_core.timestamp)("created_at", { withTimezone: true }),
updatedAt: (0, import_pg_core.timestamp)("updated_at", { withTimezone: true })
});
const realtime = (0, import_pg_core.pgSchema)("realtime");
const realtimeMessages = realtime.table(
"messages",
{
id: (0, import_pg_core.bigserial)({ mode: "bigint" }).primaryKey(),
topic: (0, import_pg_core.text)().notNull(),
extension: (0, import_pg_core.text)({
enum: ["presence", "broadcast", "postgres_changes"]
}).notNull()
}
);
const authUid = import_sql.sql`(select auth.uid())`;
const realtimeTopic = import_sql.sql`realtime.topic()`;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
anonRole,
authUid,
authUsers,
authenticatedRole,
postgresRole,
realtimeMessages,
realtimeTopic,
serviceRole,
supabaseAuthAdminRole
});
//# sourceMappingURL=rls.cjs.map

1
node_modules/drizzle-orm/supabase/rls.cjs.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":["../../src/supabase/rls.ts"],"sourcesContent":["import { bigserial, pgSchema, text, timestamp, uuid, varchar } from '~/pg-core/index.ts';\nimport { pgRole } from '~/pg-core/roles.ts';\nimport { sql } from '~/sql/sql.ts';\n\nexport const anonRole = pgRole('anon').existing();\nexport const authenticatedRole = pgRole('authenticated').existing();\nexport const serviceRole = pgRole('service_role').existing();\nexport const postgresRole = pgRole('postgres_role').existing();\nexport const supabaseAuthAdminRole = pgRole('supabase_auth_admin').existing();\n\n/* ------------------------------ auth schema; ------------------------------ */\nconst auth = pgSchema('auth');\n\nexport const authUsers = auth.table('users', {\n\tid: uuid().primaryKey().notNull(),\n\temail: varchar({ length: 255 }),\n\tphone: text().unique(),\n\temailConfirmedAt: timestamp('email_confirmed_at', { withTimezone: true }),\n\tphoneConfirmedAt: timestamp('phone_confirmed_at', { withTimezone: true }),\n\tlastSignInAt: timestamp('last_sign_in_at', { withTimezone: true }),\n\tcreatedAt: timestamp('created_at', { withTimezone: true }),\n\tupdatedAt: timestamp('updated_at', { withTimezone: true }),\n});\n\n/* ------------------------------ realtime schema; ------------------------------- */\nconst realtime = pgSchema('realtime');\n\nexport const realtimeMessages = realtime.table(\n\t'messages',\n\t{\n\t\tid: bigserial({ mode: 'bigint' }).primaryKey(),\n\t\ttopic: text().notNull(),\n\t\textension: text({\n\t\t\tenum: ['presence', 'broadcast', 'postgres_changes'],\n\t\t}).notNull(),\n\t},\n);\n\nexport const authUid = sql`(select auth.uid())`;\nexport const realtimeTopic = sql`realtime.topic()`;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qBAAoE;AACpE,mBAAuB;AACvB,iBAAoB;AAEb,MAAM,eAAW,qBAAO,MAAM,EAAE,SAAS;AACzC,MAAM,wBAAoB,qBAAO,eAAe,EAAE,SAAS;AAC3D,MAAM,kBAAc,qBAAO,cAAc,EAAE,SAAS;AACpD,MAAM,mBAAe,qBAAO,eAAe,EAAE,SAAS;AACtD,MAAM,4BAAwB,qBAAO,qBAAqB,EAAE,SAAS;AAG5E,MAAM,WAAO,yBAAS,MAAM;AAErB,MAAM,YAAY,KAAK,MAAM,SAAS;AAAA,EAC5C,QAAI,qBAAK,EAAE,WAAW,EAAE,QAAQ;AAAA,EAChC,WAAO,wBAAQ,EAAE,QAAQ,IAAI,CAAC;AAAA,EAC9B,WAAO,qBAAK,EAAE,OAAO;AAAA,EACrB,sBAAkB,0BAAU,sBAAsB,EAAE,cAAc,KAAK,CAAC;AAAA,EACxE,sBAAkB,0BAAU,sBAAsB,EAAE,cAAc,KAAK,CAAC;AAAA,EACxE,kBAAc,0BAAU,mBAAmB,EAAE,cAAc,KAAK,CAAC;AAAA,EACjE,eAAW,0BAAU,cAAc,EAAE,cAAc,KAAK,CAAC;AAAA,EACzD,eAAW,0BAAU,cAAc,EAAE,cAAc,KAAK,CAAC;AAC1D,CAAC;AAGD,MAAM,eAAW,yBAAS,UAAU;AAE7B,MAAM,mBAAmB,SAAS;AAAA,EACxC;AAAA,EACA;AAAA,IACC,QAAI,0BAAU,EAAE,MAAM,SAAS,CAAC,EAAE,WAAW;AAAA,IAC7C,WAAO,qBAAK,EAAE,QAAQ;AAAA,IACtB,eAAW,qBAAK;AAAA,MACf,MAAM,CAAC,YAAY,aAAa,kBAAkB;AAAA,IACnD,CAAC,EAAE,QAAQ;AAAA,EACZ;AACD;AAEO,MAAM,UAAU;AAChB,MAAM,gBAAgB;","names":[]}

210
node_modules/drizzle-orm/supabase/rls.d.cts generated vendored Normal file
View File

@ -0,0 +1,210 @@
export declare const anonRole: import("../pg-core/roles.ts").PgRole;
export declare const authenticatedRole: import("../pg-core/roles.ts").PgRole;
export declare const serviceRole: import("../pg-core/roles.ts").PgRole;
export declare const postgresRole: import("../pg-core/roles.ts").PgRole;
export declare const supabaseAuthAdminRole: import("../pg-core/roles.ts").PgRole;
export declare const authUsers: import("../pg-core/index.ts").PgTableWithColumns<{
name: "users";
schema: "auth";
columns: {
id: import("../pg-core/index.ts").PgColumn<{
name: "id";
tableName: "users";
dataType: "string";
columnType: "PgUUID";
data: string;
driverParam: string;
notNull: true;
hasDefault: false;
isPrimaryKey: true;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
email: import("../pg-core/index.ts").PgColumn<{
name: "email";
tableName: "users";
dataType: "string";
columnType: "PgVarchar";
data: string;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {
length: 255;
}>;
phone: import("../pg-core/index.ts").PgColumn<{
name: "phone";
tableName: "users";
dataType: "string";
columnType: "PgText";
data: string;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
emailConfirmedAt: import("../pg-core/index.ts").PgColumn<{
name: "email_confirmed_at";
tableName: "users";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
phoneConfirmedAt: import("../pg-core/index.ts").PgColumn<{
name: "phone_confirmed_at";
tableName: "users";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
lastSignInAt: import("../pg-core/index.ts").PgColumn<{
name: "last_sign_in_at";
tableName: "users";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
createdAt: import("../pg-core/index.ts").PgColumn<{
name: "created_at";
tableName: "users";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
updatedAt: import("../pg-core/index.ts").PgColumn<{
name: "updated_at";
tableName: "users";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
};
dialect: "pg";
}>;
export declare const realtimeMessages: import("../pg-core/index.ts").PgTableWithColumns<{
name: "messages";
schema: "realtime";
columns: {
id: import("../pg-core/index.ts").PgColumn<{
name: "id";
tableName: "messages";
dataType: "bigint";
columnType: "PgBigSerial64";
data: bigint;
driverParam: string;
notNull: true;
hasDefault: true;
isPrimaryKey: true;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
topic: import("../pg-core/index.ts").PgColumn<{
name: "topic";
tableName: "messages";
dataType: "string";
columnType: "PgText";
data: string;
driverParam: string;
notNull: true;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
extension: import("../pg-core/index.ts").PgColumn<{
name: "extension";
tableName: "messages";
dataType: "string";
columnType: "PgText";
data: "presence" | "broadcast" | "postgres_changes";
driverParam: string;
notNull: true;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: ["presence", "broadcast", "postgres_changes"];
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
};
dialect: "pg";
}>;
export declare const authUid: import("../sql/sql.ts").SQL<unknown>;
export declare const realtimeTopic: import("../sql/sql.ts").SQL<unknown>;

210
node_modules/drizzle-orm/supabase/rls.d.ts generated vendored Normal file
View File

@ -0,0 +1,210 @@
export declare const anonRole: import("../pg-core/roles.js").PgRole;
export declare const authenticatedRole: import("../pg-core/roles.js").PgRole;
export declare const serviceRole: import("../pg-core/roles.js").PgRole;
export declare const postgresRole: import("../pg-core/roles.js").PgRole;
export declare const supabaseAuthAdminRole: import("../pg-core/roles.js").PgRole;
export declare const authUsers: import("../pg-core/index.js").PgTableWithColumns<{
name: "users";
schema: "auth";
columns: {
id: import("../pg-core/index.js").PgColumn<{
name: "id";
tableName: "users";
dataType: "string";
columnType: "PgUUID";
data: string;
driverParam: string;
notNull: true;
hasDefault: false;
isPrimaryKey: true;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
email: import("../pg-core/index.js").PgColumn<{
name: "email";
tableName: "users";
dataType: "string";
columnType: "PgVarchar";
data: string;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {
length: 255;
}>;
phone: import("../pg-core/index.js").PgColumn<{
name: "phone";
tableName: "users";
dataType: "string";
columnType: "PgText";
data: string;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
emailConfirmedAt: import("../pg-core/index.js").PgColumn<{
name: "email_confirmed_at";
tableName: "users";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
phoneConfirmedAt: import("../pg-core/index.js").PgColumn<{
name: "phone_confirmed_at";
tableName: "users";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
lastSignInAt: import("../pg-core/index.js").PgColumn<{
name: "last_sign_in_at";
tableName: "users";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
createdAt: import("../pg-core/index.js").PgColumn<{
name: "created_at";
tableName: "users";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
updatedAt: import("../pg-core/index.js").PgColumn<{
name: "updated_at";
tableName: "users";
dataType: "date";
columnType: "PgTimestamp";
data: Date;
driverParam: string;
notNull: false;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
};
dialect: "pg";
}>;
export declare const realtimeMessages: import("../pg-core/index.js").PgTableWithColumns<{
name: "messages";
schema: "realtime";
columns: {
id: import("../pg-core/index.js").PgColumn<{
name: "id";
tableName: "messages";
dataType: "bigint";
columnType: "PgBigSerial64";
data: bigint;
driverParam: string;
notNull: true;
hasDefault: true;
isPrimaryKey: true;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: undefined;
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
topic: import("../pg-core/index.js").PgColumn<{
name: "topic";
tableName: "messages";
dataType: "string";
columnType: "PgText";
data: string;
driverParam: string;
notNull: true;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: [string, ...string[]];
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
extension: import("../pg-core/index.js").PgColumn<{
name: "extension";
tableName: "messages";
dataType: "string";
columnType: "PgText";
data: "presence" | "broadcast" | "postgres_changes";
driverParam: string;
notNull: true;
hasDefault: false;
isPrimaryKey: false;
isAutoincrement: false;
hasRuntimeDefault: false;
enumValues: ["presence", "broadcast", "postgres_changes"];
baseColumn: never;
identity: undefined;
generated: undefined;
}, {}, {}>;
};
dialect: "pg";
}>;
export declare const authUid: import("../sql/sql.js").SQL<unknown>;
export declare const realtimeTopic: import("../sql/sql.js").SQL<unknown>;

44
node_modules/drizzle-orm/supabase/rls.js generated vendored Normal file
View File

@ -0,0 +1,44 @@
import { bigserial, pgSchema, text, timestamp, uuid, varchar } from "../pg-core/index.js";
import { pgRole } from "../pg-core/roles.js";
import { sql } from "../sql/sql.js";
const anonRole = pgRole("anon").existing();
const authenticatedRole = pgRole("authenticated").existing();
const serviceRole = pgRole("service_role").existing();
const postgresRole = pgRole("postgres_role").existing();
const supabaseAuthAdminRole = pgRole("supabase_auth_admin").existing();
const auth = pgSchema("auth");
const authUsers = auth.table("users", {
id: uuid().primaryKey().notNull(),
email: varchar({ length: 255 }),
phone: text().unique(),
emailConfirmedAt: timestamp("email_confirmed_at", { withTimezone: true }),
phoneConfirmedAt: timestamp("phone_confirmed_at", { withTimezone: true }),
lastSignInAt: timestamp("last_sign_in_at", { withTimezone: true }),
createdAt: timestamp("created_at", { withTimezone: true }),
updatedAt: timestamp("updated_at", { withTimezone: true })
});
const realtime = pgSchema("realtime");
const realtimeMessages = realtime.table(
"messages",
{
id: bigserial({ mode: "bigint" }).primaryKey(),
topic: text().notNull(),
extension: text({
enum: ["presence", "broadcast", "postgres_changes"]
}).notNull()
}
);
const authUid = sql`(select auth.uid())`;
const realtimeTopic = sql`realtime.topic()`;
export {
anonRole,
authUid,
authUsers,
authenticatedRole,
postgresRole,
realtimeMessages,
realtimeTopic,
serviceRole,
supabaseAuthAdminRole
};
//# sourceMappingURL=rls.js.map

1
node_modules/drizzle-orm/supabase/rls.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"sources":["../../src/supabase/rls.ts"],"sourcesContent":["import { bigserial, pgSchema, text, timestamp, uuid, varchar } from '~/pg-core/index.ts';\nimport { pgRole } from '~/pg-core/roles.ts';\nimport { sql } from '~/sql/sql.ts';\n\nexport const anonRole = pgRole('anon').existing();\nexport const authenticatedRole = pgRole('authenticated').existing();\nexport const serviceRole = pgRole('service_role').existing();\nexport const postgresRole = pgRole('postgres_role').existing();\nexport const supabaseAuthAdminRole = pgRole('supabase_auth_admin').existing();\n\n/* ------------------------------ auth schema; ------------------------------ */\nconst auth = pgSchema('auth');\n\nexport const authUsers = auth.table('users', {\n\tid: uuid().primaryKey().notNull(),\n\temail: varchar({ length: 255 }),\n\tphone: text().unique(),\n\temailConfirmedAt: timestamp('email_confirmed_at', { withTimezone: true }),\n\tphoneConfirmedAt: timestamp('phone_confirmed_at', { withTimezone: true }),\n\tlastSignInAt: timestamp('last_sign_in_at', { withTimezone: true }),\n\tcreatedAt: timestamp('created_at', { withTimezone: true }),\n\tupdatedAt: timestamp('updated_at', { withTimezone: true }),\n});\n\n/* ------------------------------ realtime schema; ------------------------------- */\nconst realtime = pgSchema('realtime');\n\nexport const realtimeMessages = realtime.table(\n\t'messages',\n\t{\n\t\tid: bigserial({ mode: 'bigint' }).primaryKey(),\n\t\ttopic: text().notNull(),\n\t\textension: text({\n\t\t\tenum: ['presence', 'broadcast', 'postgres_changes'],\n\t\t}).notNull(),\n\t},\n);\n\nexport const authUid = sql`(select auth.uid())`;\nexport const realtimeTopic = sql`realtime.topic()`;\n"],"mappings":"AAAA,SAAS,WAAW,UAAU,MAAM,WAAW,MAAM,eAAe;AACpE,SAAS,cAAc;AACvB,SAAS,WAAW;AAEb,MAAM,WAAW,OAAO,MAAM,EAAE,SAAS;AACzC,MAAM,oBAAoB,OAAO,eAAe,EAAE,SAAS;AAC3D,MAAM,cAAc,OAAO,cAAc,EAAE,SAAS;AACpD,MAAM,eAAe,OAAO,eAAe,EAAE,SAAS;AACtD,MAAM,wBAAwB,OAAO,qBAAqB,EAAE,SAAS;AAG5E,MAAM,OAAO,SAAS,MAAM;AAErB,MAAM,YAAY,KAAK,MAAM,SAAS;AAAA,EAC5C,IAAI,KAAK,EAAE,WAAW,EAAE,QAAQ;AAAA,EAChC,OAAO,QAAQ,EAAE,QAAQ,IAAI,CAAC;AAAA,EAC9B,OAAO,KAAK,EAAE,OAAO;AAAA,EACrB,kBAAkB,UAAU,sBAAsB,EAAE,cAAc,KAAK,CAAC;AAAA,EACxE,kBAAkB,UAAU,sBAAsB,EAAE,cAAc,KAAK,CAAC;AAAA,EACxE,cAAc,UAAU,mBAAmB,EAAE,cAAc,KAAK,CAAC;AAAA,EACjE,WAAW,UAAU,cAAc,EAAE,cAAc,KAAK,CAAC;AAAA,EACzD,WAAW,UAAU,cAAc,EAAE,cAAc,KAAK,CAAC;AAC1D,CAAC;AAGD,MAAM,WAAW,SAAS,UAAU;AAE7B,MAAM,mBAAmB,SAAS;AAAA,EACxC;AAAA,EACA;AAAA,IACC,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC,EAAE,WAAW;AAAA,IAC7C,OAAO,KAAK,EAAE,QAAQ;AAAA,IACtB,WAAW,KAAK;AAAA,MACf,MAAM,CAAC,YAAY,aAAa,kBAAkB;AAAA,IACnD,CAAC,EAAE,QAAQ;AAAA,EACZ;AACD;AAEO,MAAM,UAAU;AAChB,MAAM,gBAAgB;","names":[]}