0002_snapshot.json 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016
  1. {
  2. "id": "3b911079-9802-467c-a541-dfc2685d1efd",
  3. "prevId": "8f34f59b-cf3f-4192-8b67-e1c616de23b2",
  4. "version": "7",
  5. "dialect": "postgresql",
  6. "tables": {
  7. "public.accounts": {
  8. "name": "accounts",
  9. "schema": "",
  10. "columns": {
  11. "id": {
  12. "name": "id",
  13. "type": "text",
  14. "primaryKey": true,
  15. "notNull": true
  16. },
  17. "user_id": {
  18. "name": "user_id",
  19. "type": "text",
  20. "primaryKey": false,
  21. "notNull": true
  22. },
  23. "account_id": {
  24. "name": "account_id",
  25. "type": "text",
  26. "primaryKey": false,
  27. "notNull": true
  28. },
  29. "provider_id": {
  30. "name": "provider_id",
  31. "type": "text",
  32. "primaryKey": false,
  33. "notNull": true
  34. },
  35. "access_token": {
  36. "name": "access_token",
  37. "type": "text",
  38. "primaryKey": false,
  39. "notNull": false
  40. },
  41. "refresh_token": {
  42. "name": "refresh_token",
  43. "type": "text",
  44. "primaryKey": false,
  45. "notNull": false
  46. },
  47. "id_token": {
  48. "name": "id_token",
  49. "type": "text",
  50. "primaryKey": false,
  51. "notNull": false
  52. },
  53. "access_token_expires_at": {
  54. "name": "access_token_expires_at",
  55. "type": "timestamp with time zone",
  56. "primaryKey": false,
  57. "notNull": false
  58. },
  59. "refresh_token_expires_at": {
  60. "name": "refresh_token_expires_at",
  61. "type": "timestamp with time zone",
  62. "primaryKey": false,
  63. "notNull": false
  64. },
  65. "scope": {
  66. "name": "scope",
  67. "type": "text",
  68. "primaryKey": false,
  69. "notNull": false
  70. },
  71. "password": {
  72. "name": "password",
  73. "type": "text",
  74. "primaryKey": false,
  75. "notNull": false
  76. },
  77. "created_at": {
  78. "name": "created_at",
  79. "type": "timestamp with time zone",
  80. "primaryKey": false,
  81. "notNull": true,
  82. "default": "now()"
  83. },
  84. "updated_at": {
  85. "name": "updated_at",
  86. "type": "timestamp with time zone",
  87. "primaryKey": false,
  88. "notNull": true,
  89. "default": "now()"
  90. }
  91. },
  92. "indexes": {
  93. "accounts_user_id_idx": {
  94. "name": "accounts_user_id_idx",
  95. "columns": [
  96. {
  97. "expression": "user_id",
  98. "isExpression": false,
  99. "asc": true,
  100. "nulls": "last"
  101. }
  102. ],
  103. "isUnique": false,
  104. "concurrently": false,
  105. "method": "btree",
  106. "with": {}
  107. },
  108. "accounts_provider_account_idx": {
  109. "name": "accounts_provider_account_idx",
  110. "columns": [
  111. {
  112. "expression": "provider_id",
  113. "isExpression": false,
  114. "asc": true,
  115. "nulls": "last"
  116. },
  117. {
  118. "expression": "account_id",
  119. "isExpression": false,
  120. "asc": true,
  121. "nulls": "last"
  122. }
  123. ],
  124. "isUnique": true,
  125. "concurrently": false,
  126. "method": "btree",
  127. "with": {}
  128. }
  129. },
  130. "foreignKeys": {
  131. "accounts_user_id_users_id_fk": {
  132. "name": "accounts_user_id_users_id_fk",
  133. "tableFrom": "accounts",
  134. "tableTo": "users",
  135. "columnsFrom": ["user_id"],
  136. "columnsTo": ["id"],
  137. "onDelete": "cascade",
  138. "onUpdate": "no action"
  139. }
  140. },
  141. "compositePrimaryKeys": {},
  142. "uniqueConstraints": {},
  143. "policies": {},
  144. "checkConstraints": {},
  145. "isRLSEnabled": false
  146. },
  147. "public.api_keys": {
  148. "name": "api_keys",
  149. "schema": "",
  150. "columns": {
  151. "id": {
  152. "name": "id",
  153. "type": "text",
  154. "primaryKey": true,
  155. "notNull": true
  156. },
  157. "project_id": {
  158. "name": "project_id",
  159. "type": "text",
  160. "primaryKey": false,
  161. "notNull": true
  162. },
  163. "created_by": {
  164. "name": "created_by",
  165. "type": "text",
  166. "primaryKey": false,
  167. "notNull": true
  168. },
  169. "name": {
  170. "name": "name",
  171. "type": "text",
  172. "primaryKey": false,
  173. "notNull": true
  174. },
  175. "hash": {
  176. "name": "hash",
  177. "type": "text",
  178. "primaryKey": false,
  179. "notNull": true
  180. },
  181. "suffix": {
  182. "name": "suffix",
  183. "type": "varchar(4)",
  184. "primaryKey": false,
  185. "notNull": true
  186. },
  187. "last_used_at": {
  188. "name": "last_used_at",
  189. "type": "timestamp with time zone",
  190. "primaryKey": false,
  191. "notNull": false
  192. },
  193. "expires_at": {
  194. "name": "expires_at",
  195. "type": "timestamp with time zone",
  196. "primaryKey": false,
  197. "notNull": false
  198. },
  199. "created_at": {
  200. "name": "created_at",
  201. "type": "timestamp with time zone",
  202. "primaryKey": false,
  203. "notNull": true,
  204. "default": "now()"
  205. },
  206. "revoked_at": {
  207. "name": "revoked_at",
  208. "type": "timestamp with time zone",
  209. "primaryKey": false,
  210. "notNull": false
  211. }
  212. },
  213. "indexes": {
  214. "api_keys_hash_idx": {
  215. "name": "api_keys_hash_idx",
  216. "columns": [
  217. {
  218. "expression": "hash",
  219. "isExpression": false,
  220. "asc": true,
  221. "nulls": "last"
  222. }
  223. ],
  224. "isUnique": true,
  225. "concurrently": false,
  226. "method": "btree",
  227. "with": {}
  228. },
  229. "api_keys_project_idx": {
  230. "name": "api_keys_project_idx",
  231. "columns": [
  232. {
  233. "expression": "project_id",
  234. "isExpression": false,
  235. "asc": true,
  236. "nulls": "last"
  237. }
  238. ],
  239. "isUnique": false,
  240. "concurrently": false,
  241. "method": "btree",
  242. "with": {}
  243. }
  244. },
  245. "foreignKeys": {
  246. "api_keys_project_id_projects_id_fk": {
  247. "name": "api_keys_project_id_projects_id_fk",
  248. "tableFrom": "api_keys",
  249. "tableTo": "projects",
  250. "columnsFrom": ["project_id"],
  251. "columnsTo": ["id"],
  252. "onDelete": "cascade",
  253. "onUpdate": "no action"
  254. },
  255. "api_keys_created_by_users_id_fk": {
  256. "name": "api_keys_created_by_users_id_fk",
  257. "tableFrom": "api_keys",
  258. "tableTo": "users",
  259. "columnsFrom": ["created_by"],
  260. "columnsTo": ["id"],
  261. "onDelete": "no action",
  262. "onUpdate": "no action"
  263. }
  264. },
  265. "compositePrimaryKeys": {},
  266. "uniqueConstraints": {},
  267. "policies": {},
  268. "checkConstraints": {},
  269. "isRLSEnabled": false
  270. },
  271. "public.audit_logs": {
  272. "name": "audit_logs",
  273. "schema": "",
  274. "columns": {
  275. "id": {
  276. "name": "id",
  277. "type": "text",
  278. "primaryKey": true,
  279. "notNull": true
  280. },
  281. "actor_id": {
  282. "name": "actor_id",
  283. "type": "text",
  284. "primaryKey": false,
  285. "notNull": false
  286. },
  287. "project_id": {
  288. "name": "project_id",
  289. "type": "text",
  290. "primaryKey": false,
  291. "notNull": false
  292. },
  293. "action": {
  294. "name": "action",
  295. "type": "text",
  296. "primaryKey": false,
  297. "notNull": true
  298. },
  299. "ip_hash": {
  300. "name": "ip_hash",
  301. "type": "varchar(64)",
  302. "primaryKey": false,
  303. "notNull": false
  304. },
  305. "user_agent": {
  306. "name": "user_agent",
  307. "type": "text",
  308. "primaryKey": false,
  309. "notNull": false
  310. },
  311. "metadata": {
  312. "name": "metadata",
  313. "type": "jsonb",
  314. "primaryKey": false,
  315. "notNull": false
  316. },
  317. "created_at": {
  318. "name": "created_at",
  319. "type": "timestamp with time zone",
  320. "primaryKey": false,
  321. "notNull": true,
  322. "default": "now()"
  323. }
  324. },
  325. "indexes": {
  326. "audit_logs_project_created_idx": {
  327. "name": "audit_logs_project_created_idx",
  328. "columns": [
  329. {
  330. "expression": "project_id",
  331. "isExpression": false,
  332. "asc": true,
  333. "nulls": "last"
  334. },
  335. {
  336. "expression": "created_at",
  337. "isExpression": false,
  338. "asc": true,
  339. "nulls": "last"
  340. }
  341. ],
  342. "isUnique": false,
  343. "concurrently": false,
  344. "method": "btree",
  345. "with": {}
  346. },
  347. "audit_logs_actor_created_idx": {
  348. "name": "audit_logs_actor_created_idx",
  349. "columns": [
  350. {
  351. "expression": "actor_id",
  352. "isExpression": false,
  353. "asc": true,
  354. "nulls": "last"
  355. },
  356. {
  357. "expression": "created_at",
  358. "isExpression": false,
  359. "asc": true,
  360. "nulls": "last"
  361. }
  362. ],
  363. "isUnique": false,
  364. "concurrently": false,
  365. "method": "btree",
  366. "with": {}
  367. }
  368. },
  369. "foreignKeys": {
  370. "audit_logs_actor_id_users_id_fk": {
  371. "name": "audit_logs_actor_id_users_id_fk",
  372. "tableFrom": "audit_logs",
  373. "tableTo": "users",
  374. "columnsFrom": ["actor_id"],
  375. "columnsTo": ["id"],
  376. "onDelete": "no action",
  377. "onUpdate": "no action"
  378. },
  379. "audit_logs_project_id_projects_id_fk": {
  380. "name": "audit_logs_project_id_projects_id_fk",
  381. "tableFrom": "audit_logs",
  382. "tableTo": "projects",
  383. "columnsFrom": ["project_id"],
  384. "columnsTo": ["id"],
  385. "onDelete": "no action",
  386. "onUpdate": "no action"
  387. }
  388. },
  389. "compositePrimaryKeys": {},
  390. "uniqueConstraints": {},
  391. "policies": {},
  392. "checkConstraints": {},
  393. "isRLSEnabled": false
  394. },
  395. "public.deployments": {
  396. "name": "deployments",
  397. "schema": "",
  398. "columns": {
  399. "id": {
  400. "name": "id",
  401. "type": "text",
  402. "primaryKey": true,
  403. "notNull": true
  404. },
  405. "project_id": {
  406. "name": "project_id",
  407. "type": "text",
  408. "primaryKey": false,
  409. "notNull": true
  410. },
  411. "triggered_by": {
  412. "name": "triggered_by",
  413. "type": "text",
  414. "primaryKey": false,
  415. "notNull": false
  416. },
  417. "api_key_id": {
  418. "name": "api_key_id",
  419. "type": "text",
  420. "primaryKey": false,
  421. "notNull": false
  422. },
  423. "status": {
  424. "name": "status",
  425. "type": "text",
  426. "primaryKey": false,
  427. "notNull": true,
  428. "default": "'pending'"
  429. },
  430. "schema_diff_summary": {
  431. "name": "schema_diff_summary",
  432. "type": "jsonb",
  433. "primaryKey": false,
  434. "notNull": false
  435. },
  436. "schema_snapshot": {
  437. "name": "schema_snapshot",
  438. "type": "jsonb",
  439. "primaryKey": false,
  440. "notNull": false
  441. },
  442. "function_count": {
  443. "name": "function_count",
  444. "type": "varchar(12)",
  445. "primaryKey": false,
  446. "notNull": false
  447. },
  448. "function_names": {
  449. "name": "function_names",
  450. "type": "jsonb",
  451. "primaryKey": false,
  452. "notNull": false
  453. },
  454. "bundle": {
  455. "name": "bundle",
  456. "type": "jsonb",
  457. "primaryKey": false,
  458. "notNull": false
  459. },
  460. "error_code": {
  461. "name": "error_code",
  462. "type": "text",
  463. "primaryKey": false,
  464. "notNull": false
  465. },
  466. "error_message": {
  467. "name": "error_message",
  468. "type": "text",
  469. "primaryKey": false,
  470. "notNull": false
  471. },
  472. "started_at": {
  473. "name": "started_at",
  474. "type": "timestamp with time zone",
  475. "primaryKey": false,
  476. "notNull": false
  477. },
  478. "finished_at": {
  479. "name": "finished_at",
  480. "type": "timestamp with time zone",
  481. "primaryKey": false,
  482. "notNull": false
  483. },
  484. "created_at": {
  485. "name": "created_at",
  486. "type": "timestamp with time zone",
  487. "primaryKey": false,
  488. "notNull": true,
  489. "default": "now()"
  490. }
  491. },
  492. "indexes": {
  493. "deployments_project_created_idx": {
  494. "name": "deployments_project_created_idx",
  495. "columns": [
  496. {
  497. "expression": "project_id",
  498. "isExpression": false,
  499. "asc": true,
  500. "nulls": "last"
  501. },
  502. {
  503. "expression": "created_at",
  504. "isExpression": false,
  505. "asc": true,
  506. "nulls": "last"
  507. }
  508. ],
  509. "isUnique": false,
  510. "concurrently": false,
  511. "method": "btree",
  512. "with": {}
  513. },
  514. "deployments_status_idx": {
  515. "name": "deployments_status_idx",
  516. "columns": [
  517. {
  518. "expression": "status",
  519. "isExpression": false,
  520. "asc": true,
  521. "nulls": "last"
  522. }
  523. ],
  524. "isUnique": false,
  525. "concurrently": false,
  526. "method": "btree",
  527. "with": {}
  528. }
  529. },
  530. "foreignKeys": {
  531. "deployments_project_id_projects_id_fk": {
  532. "name": "deployments_project_id_projects_id_fk",
  533. "tableFrom": "deployments",
  534. "tableTo": "projects",
  535. "columnsFrom": ["project_id"],
  536. "columnsTo": ["id"],
  537. "onDelete": "cascade",
  538. "onUpdate": "no action"
  539. },
  540. "deployments_triggered_by_users_id_fk": {
  541. "name": "deployments_triggered_by_users_id_fk",
  542. "tableFrom": "deployments",
  543. "tableTo": "users",
  544. "columnsFrom": ["triggered_by"],
  545. "columnsTo": ["id"],
  546. "onDelete": "no action",
  547. "onUpdate": "no action"
  548. },
  549. "deployments_api_key_id_api_keys_id_fk": {
  550. "name": "deployments_api_key_id_api_keys_id_fk",
  551. "tableFrom": "deployments",
  552. "tableTo": "api_keys",
  553. "columnsFrom": ["api_key_id"],
  554. "columnsTo": ["id"],
  555. "onDelete": "no action",
  556. "onUpdate": "no action"
  557. }
  558. },
  559. "compositePrimaryKeys": {},
  560. "uniqueConstraints": {},
  561. "policies": {},
  562. "checkConstraints": {},
  563. "isRLSEnabled": false
  564. },
  565. "public.project_members": {
  566. "name": "project_members",
  567. "schema": "",
  568. "columns": {
  569. "project_id": {
  570. "name": "project_id",
  571. "type": "text",
  572. "primaryKey": false,
  573. "notNull": true
  574. },
  575. "user_id": {
  576. "name": "user_id",
  577. "type": "text",
  578. "primaryKey": false,
  579. "notNull": true
  580. },
  581. "role": {
  582. "name": "role",
  583. "type": "text",
  584. "primaryKey": false,
  585. "notNull": true,
  586. "default": "'developer'"
  587. },
  588. "created_at": {
  589. "name": "created_at",
  590. "type": "timestamp with time zone",
  591. "primaryKey": false,
  592. "notNull": true,
  593. "default": "now()"
  594. },
  595. "updated_at": {
  596. "name": "updated_at",
  597. "type": "timestamp with time zone",
  598. "primaryKey": false,
  599. "notNull": true,
  600. "default": "now()"
  601. }
  602. },
  603. "indexes": {},
  604. "foreignKeys": {
  605. "project_members_project_id_projects_id_fk": {
  606. "name": "project_members_project_id_projects_id_fk",
  607. "tableFrom": "project_members",
  608. "tableTo": "projects",
  609. "columnsFrom": ["project_id"],
  610. "columnsTo": ["id"],
  611. "onDelete": "cascade",
  612. "onUpdate": "no action"
  613. },
  614. "project_members_user_id_users_id_fk": {
  615. "name": "project_members_user_id_users_id_fk",
  616. "tableFrom": "project_members",
  617. "tableTo": "users",
  618. "columnsFrom": ["user_id"],
  619. "columnsTo": ["id"],
  620. "onDelete": "cascade",
  621. "onUpdate": "no action"
  622. }
  623. },
  624. "compositePrimaryKeys": {
  625. "project_members_project_id_user_id_pk": {
  626. "name": "project_members_project_id_user_id_pk",
  627. "columns": ["project_id", "user_id"]
  628. }
  629. },
  630. "uniqueConstraints": {},
  631. "policies": {},
  632. "checkConstraints": {},
  633. "isRLSEnabled": false
  634. },
  635. "public.projects": {
  636. "name": "projects",
  637. "schema": "",
  638. "columns": {
  639. "id": {
  640. "name": "id",
  641. "type": "text",
  642. "primaryKey": true,
  643. "notNull": true
  644. },
  645. "slug": {
  646. "name": "slug",
  647. "type": "text",
  648. "primaryKey": false,
  649. "notNull": true
  650. },
  651. "name": {
  652. "name": "name",
  653. "type": "text",
  654. "primaryKey": false,
  655. "notNull": true
  656. },
  657. "owner_id": {
  658. "name": "owner_id",
  659. "type": "text",
  660. "primaryKey": false,
  661. "notNull": true
  662. },
  663. "region": {
  664. "name": "region",
  665. "type": "text",
  666. "primaryKey": false,
  667. "notNull": true,
  668. "default": "'eu-west-1'"
  669. },
  670. "tier": {
  671. "name": "tier",
  672. "type": "text",
  673. "primaryKey": false,
  674. "notNull": true,
  675. "default": "'free'"
  676. },
  677. "shard_id": {
  678. "name": "shard_id",
  679. "type": "text",
  680. "primaryKey": false,
  681. "notNull": false
  682. },
  683. "created_at": {
  684. "name": "created_at",
  685. "type": "timestamp with time zone",
  686. "primaryKey": false,
  687. "notNull": true,
  688. "default": "now()"
  689. },
  690. "updated_at": {
  691. "name": "updated_at",
  692. "type": "timestamp with time zone",
  693. "primaryKey": false,
  694. "notNull": true,
  695. "default": "now()"
  696. },
  697. "deleted_at": {
  698. "name": "deleted_at",
  699. "type": "timestamp with time zone",
  700. "primaryKey": false,
  701. "notNull": false
  702. }
  703. },
  704. "indexes": {
  705. "projects_slug_idx": {
  706. "name": "projects_slug_idx",
  707. "columns": [
  708. {
  709. "expression": "slug",
  710. "isExpression": false,
  711. "asc": true,
  712. "nulls": "last"
  713. }
  714. ],
  715. "isUnique": true,
  716. "concurrently": false,
  717. "method": "btree",
  718. "with": {}
  719. },
  720. "projects_owner_idx": {
  721. "name": "projects_owner_idx",
  722. "columns": [
  723. {
  724. "expression": "owner_id",
  725. "isExpression": false,
  726. "asc": true,
  727. "nulls": "last"
  728. }
  729. ],
  730. "isUnique": false,
  731. "concurrently": false,
  732. "method": "btree",
  733. "with": {}
  734. }
  735. },
  736. "foreignKeys": {
  737. "projects_owner_id_users_id_fk": {
  738. "name": "projects_owner_id_users_id_fk",
  739. "tableFrom": "projects",
  740. "tableTo": "users",
  741. "columnsFrom": ["owner_id"],
  742. "columnsTo": ["id"],
  743. "onDelete": "no action",
  744. "onUpdate": "no action"
  745. }
  746. },
  747. "compositePrimaryKeys": {},
  748. "uniqueConstraints": {},
  749. "policies": {},
  750. "checkConstraints": {},
  751. "isRLSEnabled": false
  752. },
  753. "public.sessions": {
  754. "name": "sessions",
  755. "schema": "",
  756. "columns": {
  757. "id": {
  758. "name": "id",
  759. "type": "text",
  760. "primaryKey": true,
  761. "notNull": true
  762. },
  763. "user_id": {
  764. "name": "user_id",
  765. "type": "text",
  766. "primaryKey": false,
  767. "notNull": true
  768. },
  769. "token": {
  770. "name": "token",
  771. "type": "text",
  772. "primaryKey": false,
  773. "notNull": true
  774. },
  775. "expires_at": {
  776. "name": "expires_at",
  777. "type": "timestamp with time zone",
  778. "primaryKey": false,
  779. "notNull": true
  780. },
  781. "ip_address": {
  782. "name": "ip_address",
  783. "type": "text",
  784. "primaryKey": false,
  785. "notNull": false
  786. },
  787. "user_agent": {
  788. "name": "user_agent",
  789. "type": "text",
  790. "primaryKey": false,
  791. "notNull": false
  792. },
  793. "created_at": {
  794. "name": "created_at",
  795. "type": "timestamp with time zone",
  796. "primaryKey": false,
  797. "notNull": true,
  798. "default": "now()"
  799. },
  800. "updated_at": {
  801. "name": "updated_at",
  802. "type": "timestamp with time zone",
  803. "primaryKey": false,
  804. "notNull": true,
  805. "default": "now()"
  806. }
  807. },
  808. "indexes": {
  809. "sessions_token_idx": {
  810. "name": "sessions_token_idx",
  811. "columns": [
  812. {
  813. "expression": "token",
  814. "isExpression": false,
  815. "asc": true,
  816. "nulls": "last"
  817. }
  818. ],
  819. "isUnique": true,
  820. "concurrently": false,
  821. "method": "btree",
  822. "with": {}
  823. },
  824. "sessions_user_id_idx": {
  825. "name": "sessions_user_id_idx",
  826. "columns": [
  827. {
  828. "expression": "user_id",
  829. "isExpression": false,
  830. "asc": true,
  831. "nulls": "last"
  832. }
  833. ],
  834. "isUnique": false,
  835. "concurrently": false,
  836. "method": "btree",
  837. "with": {}
  838. }
  839. },
  840. "foreignKeys": {
  841. "sessions_user_id_users_id_fk": {
  842. "name": "sessions_user_id_users_id_fk",
  843. "tableFrom": "sessions",
  844. "tableTo": "users",
  845. "columnsFrom": ["user_id"],
  846. "columnsTo": ["id"],
  847. "onDelete": "cascade",
  848. "onUpdate": "no action"
  849. }
  850. },
  851. "compositePrimaryKeys": {},
  852. "uniqueConstraints": {},
  853. "policies": {},
  854. "checkConstraints": {},
  855. "isRLSEnabled": false
  856. },
  857. "public.users": {
  858. "name": "users",
  859. "schema": "",
  860. "columns": {
  861. "id": {
  862. "name": "id",
  863. "type": "text",
  864. "primaryKey": true,
  865. "notNull": true
  866. },
  867. "email": {
  868. "name": "email",
  869. "type": "text",
  870. "primaryKey": false,
  871. "notNull": true
  872. },
  873. "email_verified": {
  874. "name": "email_verified",
  875. "type": "boolean",
  876. "primaryKey": false,
  877. "notNull": true,
  878. "default": false
  879. },
  880. "name": {
  881. "name": "name",
  882. "type": "text",
  883. "primaryKey": false,
  884. "notNull": false
  885. },
  886. "image": {
  887. "name": "image",
  888. "type": "text",
  889. "primaryKey": false,
  890. "notNull": false
  891. },
  892. "created_at": {
  893. "name": "created_at",
  894. "type": "timestamp with time zone",
  895. "primaryKey": false,
  896. "notNull": true,
  897. "default": "now()"
  898. },
  899. "updated_at": {
  900. "name": "updated_at",
  901. "type": "timestamp with time zone",
  902. "primaryKey": false,
  903. "notNull": true,
  904. "default": "now()"
  905. },
  906. "deleted_at": {
  907. "name": "deleted_at",
  908. "type": "timestamp with time zone",
  909. "primaryKey": false,
  910. "notNull": false
  911. }
  912. },
  913. "indexes": {
  914. "users_email_idx": {
  915. "name": "users_email_idx",
  916. "columns": [
  917. {
  918. "expression": "email",
  919. "isExpression": false,
  920. "asc": true,
  921. "nulls": "last"
  922. }
  923. ],
  924. "isUnique": true,
  925. "concurrently": false,
  926. "method": "btree",
  927. "with": {}
  928. }
  929. },
  930. "foreignKeys": {},
  931. "compositePrimaryKeys": {},
  932. "uniqueConstraints": {},
  933. "policies": {},
  934. "checkConstraints": {},
  935. "isRLSEnabled": false
  936. },
  937. "public.verifications": {
  938. "name": "verifications",
  939. "schema": "",
  940. "columns": {
  941. "id": {
  942. "name": "id",
  943. "type": "text",
  944. "primaryKey": true,
  945. "notNull": true
  946. },
  947. "identifier": {
  948. "name": "identifier",
  949. "type": "text",
  950. "primaryKey": false,
  951. "notNull": true
  952. },
  953. "value": {
  954. "name": "value",
  955. "type": "text",
  956. "primaryKey": false,
  957. "notNull": true
  958. },
  959. "expires_at": {
  960. "name": "expires_at",
  961. "type": "timestamp with time zone",
  962. "primaryKey": false,
  963. "notNull": true
  964. },
  965. "created_at": {
  966. "name": "created_at",
  967. "type": "timestamp with time zone",
  968. "primaryKey": false,
  969. "notNull": true,
  970. "default": "now()"
  971. },
  972. "updated_at": {
  973. "name": "updated_at",
  974. "type": "timestamp with time zone",
  975. "primaryKey": false,
  976. "notNull": true,
  977. "default": "now()"
  978. }
  979. },
  980. "indexes": {
  981. "verifications_identifier_idx": {
  982. "name": "verifications_identifier_idx",
  983. "columns": [
  984. {
  985. "expression": "identifier",
  986. "isExpression": false,
  987. "asc": true,
  988. "nulls": "last"
  989. }
  990. ],
  991. "isUnique": false,
  992. "concurrently": false,
  993. "method": "btree",
  994. "with": {}
  995. }
  996. },
  997. "foreignKeys": {},
  998. "compositePrimaryKeys": {},
  999. "uniqueConstraints": {},
  1000. "policies": {},
  1001. "checkConstraints": {},
  1002. "isRLSEnabled": false
  1003. }
  1004. },
  1005. "enums": {},
  1006. "schemas": {},
  1007. "sequences": {},
  1008. "roles": {},
  1009. "policies": {},
  1010. "views": {},
  1011. "_meta": {
  1012. "columns": {},
  1013. "schemas": {},
  1014. "tables": {}
  1015. }
  1016. }