0002_snapshot.json 25 KB

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