neon-auth.cjs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. "use strict";
  2. var __defProp = Object.defineProperty;
  3. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  4. var __getOwnPropNames = Object.getOwnPropertyNames;
  5. var __hasOwnProp = Object.prototype.hasOwnProperty;
  6. var __export = (target, all) => {
  7. for (var name in all)
  8. __defProp(target, name, { get: all[name], enumerable: true });
  9. };
  10. var __copyProps = (to, from, except, desc) => {
  11. if (from && typeof from === "object" || typeof from === "function") {
  12. for (let key of __getOwnPropNames(from))
  13. if (!__hasOwnProp.call(to, key) && key !== except)
  14. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  15. }
  16. return to;
  17. };
  18. var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
  19. var neon_auth_exports = {};
  20. __export(neon_auth_exports, {
  21. usersSync: () => usersSync
  22. });
  23. module.exports = __toCommonJS(neon_auth_exports);
  24. var import_pg_core = require("../pg-core/index.cjs");
  25. const neonAuthSchema = (0, import_pg_core.pgSchema)("neon_auth");
  26. const usersSync = neonAuthSchema.table("users_sync", {
  27. rawJson: (0, import_pg_core.jsonb)("raw_json").notNull(),
  28. id: (0, import_pg_core.text)().primaryKey().notNull(),
  29. name: (0, import_pg_core.text)(),
  30. email: (0, import_pg_core.text)(),
  31. createdAt: (0, import_pg_core.timestamp)("created_at", { withTimezone: true, mode: "string" }),
  32. deletedAt: (0, import_pg_core.timestamp)("deleted_at", { withTimezone: true, mode: "string" }),
  33. updatedAt: (0, import_pg_core.timestamp)("updated_at", { withTimezone: true, mode: "string" })
  34. });
  35. // Annotate the CommonJS export names for ESM import in node:
  36. 0 && (module.exports = {
  37. usersSync
  38. });
  39. //# sourceMappingURL=neon-auth.cjs.map