2
0

0000_snapshot.json 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929
  1. {
  2. "id": "13008e39-9fe5-4b0a-ba5f-dfa116406751",
  3. "prevId": "00000000-0000-0000-0000-000000000000",
  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. "provider_chain": {
  196. "name": "provider_chain",
  197. "type": "jsonb",
  198. "primaryKey": false,
  199. "notNull": false
  200. },
  201. "status_code": {
  202. "name": "status_code",
  203. "type": "integer",
  204. "primaryKey": false,
  205. "notNull": false
  206. },
  207. "api_type": {
  208. "name": "api_type",
  209. "type": "varchar(20)",
  210. "primaryKey": false,
  211. "notNull": false
  212. },
  213. "input_tokens": {
  214. "name": "input_tokens",
  215. "type": "integer",
  216. "primaryKey": false,
  217. "notNull": false
  218. },
  219. "output_tokens": {
  220. "name": "output_tokens",
  221. "type": "integer",
  222. "primaryKey": false,
  223. "notNull": false
  224. },
  225. "cache_creation_input_tokens": {
  226. "name": "cache_creation_input_tokens",
  227. "type": "integer",
  228. "primaryKey": false,
  229. "notNull": false
  230. },
  231. "cache_read_input_tokens": {
  232. "name": "cache_read_input_tokens",
  233. "type": "integer",
  234. "primaryKey": false,
  235. "notNull": false
  236. },
  237. "error_message": {
  238. "name": "error_message",
  239. "type": "text",
  240. "primaryKey": false,
  241. "notNull": false
  242. },
  243. "created_at": {
  244. "name": "created_at",
  245. "type": "timestamp with time zone",
  246. "primaryKey": false,
  247. "notNull": false,
  248. "default": "now()"
  249. },
  250. "updated_at": {
  251. "name": "updated_at",
  252. "type": "timestamp with time zone",
  253. "primaryKey": false,
  254. "notNull": false,
  255. "default": "now()"
  256. },
  257. "deleted_at": {
  258. "name": "deleted_at",
  259. "type": "timestamp with time zone",
  260. "primaryKey": false,
  261. "notNull": false
  262. }
  263. },
  264. "indexes": {
  265. "idx_message_request_user_date_cost": {
  266. "name": "idx_message_request_user_date_cost",
  267. "columns": [
  268. {
  269. "expression": "user_id",
  270. "isExpression": false,
  271. "asc": true,
  272. "nulls": "last"
  273. },
  274. {
  275. "expression": "created_at",
  276. "isExpression": false,
  277. "asc": true,
  278. "nulls": "last"
  279. },
  280. {
  281. "expression": "cost_usd",
  282. "isExpression": false,
  283. "asc": true,
  284. "nulls": "last"
  285. }
  286. ],
  287. "isUnique": false,
  288. "where": "\"message_request\".\"deleted_at\" IS NULL",
  289. "concurrently": false,
  290. "method": "btree",
  291. "with": {}
  292. },
  293. "idx_message_request_user_query": {
  294. "name": "idx_message_request_user_query",
  295. "columns": [
  296. {
  297. "expression": "user_id",
  298. "isExpression": false,
  299. "asc": true,
  300. "nulls": "last"
  301. },
  302. {
  303. "expression": "created_at",
  304. "isExpression": false,
  305. "asc": true,
  306. "nulls": "last"
  307. }
  308. ],
  309. "isUnique": false,
  310. "where": "\"message_request\".\"deleted_at\" IS NULL",
  311. "concurrently": false,
  312. "method": "btree",
  313. "with": {}
  314. },
  315. "idx_message_request_provider_id": {
  316. "name": "idx_message_request_provider_id",
  317. "columns": [
  318. {
  319. "expression": "provider_id",
  320. "isExpression": false,
  321. "asc": true,
  322. "nulls": "last"
  323. }
  324. ],
  325. "isUnique": false,
  326. "concurrently": false,
  327. "method": "btree",
  328. "with": {}
  329. },
  330. "idx_message_request_user_id": {
  331. "name": "idx_message_request_user_id",
  332. "columns": [
  333. {
  334. "expression": "user_id",
  335. "isExpression": false,
  336. "asc": true,
  337. "nulls": "last"
  338. }
  339. ],
  340. "isUnique": false,
  341. "concurrently": false,
  342. "method": "btree",
  343. "with": {}
  344. },
  345. "idx_message_request_key": {
  346. "name": "idx_message_request_key",
  347. "columns": [
  348. {
  349. "expression": "key",
  350. "isExpression": false,
  351. "asc": true,
  352. "nulls": "last"
  353. }
  354. ],
  355. "isUnique": false,
  356. "concurrently": false,
  357. "method": "btree",
  358. "with": {}
  359. },
  360. "idx_message_request_created_at": {
  361. "name": "idx_message_request_created_at",
  362. "columns": [
  363. {
  364. "expression": "created_at",
  365. "isExpression": false,
  366. "asc": true,
  367. "nulls": "last"
  368. }
  369. ],
  370. "isUnique": false,
  371. "concurrently": false,
  372. "method": "btree",
  373. "with": {}
  374. },
  375. "idx_message_request_deleted_at": {
  376. "name": "idx_message_request_deleted_at",
  377. "columns": [
  378. {
  379. "expression": "deleted_at",
  380. "isExpression": false,
  381. "asc": true,
  382. "nulls": "last"
  383. }
  384. ],
  385. "isUnique": false,
  386. "concurrently": false,
  387. "method": "btree",
  388. "with": {}
  389. }
  390. },
  391. "foreignKeys": {},
  392. "compositePrimaryKeys": {},
  393. "uniqueConstraints": {},
  394. "policies": {},
  395. "checkConstraints": {},
  396. "isRLSEnabled": false
  397. },
  398. "public.model_prices": {
  399. "name": "model_prices",
  400. "schema": "",
  401. "columns": {
  402. "id": {
  403. "name": "id",
  404. "type": "serial",
  405. "primaryKey": true,
  406. "notNull": true
  407. },
  408. "model_name": {
  409. "name": "model_name",
  410. "type": "varchar",
  411. "primaryKey": false,
  412. "notNull": true
  413. },
  414. "price_data": {
  415. "name": "price_data",
  416. "type": "jsonb",
  417. "primaryKey": false,
  418. "notNull": true
  419. },
  420. "created_at": {
  421. "name": "created_at",
  422. "type": "timestamp with time zone",
  423. "primaryKey": false,
  424. "notNull": false,
  425. "default": "now()"
  426. },
  427. "updated_at": {
  428. "name": "updated_at",
  429. "type": "timestamp with time zone",
  430. "primaryKey": false,
  431. "notNull": false,
  432. "default": "now()"
  433. }
  434. },
  435. "indexes": {
  436. "idx_model_prices_latest": {
  437. "name": "idx_model_prices_latest",
  438. "columns": [
  439. {
  440. "expression": "model_name",
  441. "isExpression": false,
  442. "asc": true,
  443. "nulls": "last"
  444. },
  445. {
  446. "expression": "created_at",
  447. "isExpression": false,
  448. "asc": false,
  449. "nulls": "last"
  450. }
  451. ],
  452. "isUnique": false,
  453. "concurrently": false,
  454. "method": "btree",
  455. "with": {}
  456. },
  457. "idx_model_prices_model_name": {
  458. "name": "idx_model_prices_model_name",
  459. "columns": [
  460. {
  461. "expression": "model_name",
  462. "isExpression": false,
  463. "asc": true,
  464. "nulls": "last"
  465. }
  466. ],
  467. "isUnique": false,
  468. "concurrently": false,
  469. "method": "btree",
  470. "with": {}
  471. },
  472. "idx_model_prices_created_at": {
  473. "name": "idx_model_prices_created_at",
  474. "columns": [
  475. {
  476. "expression": "created_at",
  477. "isExpression": false,
  478. "asc": false,
  479. "nulls": "last"
  480. }
  481. ],
  482. "isUnique": false,
  483. "concurrently": false,
  484. "method": "btree",
  485. "with": {}
  486. }
  487. },
  488. "foreignKeys": {},
  489. "compositePrimaryKeys": {},
  490. "uniqueConstraints": {},
  491. "policies": {},
  492. "checkConstraints": {},
  493. "isRLSEnabled": false
  494. },
  495. "public.providers": {
  496. "name": "providers",
  497. "schema": "",
  498. "columns": {
  499. "id": {
  500. "name": "id",
  501. "type": "serial",
  502. "primaryKey": true,
  503. "notNull": true
  504. },
  505. "name": {
  506. "name": "name",
  507. "type": "varchar",
  508. "primaryKey": false,
  509. "notNull": true
  510. },
  511. "description": {
  512. "name": "description",
  513. "type": "text",
  514. "primaryKey": false,
  515. "notNull": false
  516. },
  517. "url": {
  518. "name": "url",
  519. "type": "varchar",
  520. "primaryKey": false,
  521. "notNull": true
  522. },
  523. "key": {
  524. "name": "key",
  525. "type": "varchar",
  526. "primaryKey": false,
  527. "notNull": true
  528. },
  529. "is_enabled": {
  530. "name": "is_enabled",
  531. "type": "boolean",
  532. "primaryKey": false,
  533. "notNull": true,
  534. "default": true
  535. },
  536. "weight": {
  537. "name": "weight",
  538. "type": "integer",
  539. "primaryKey": false,
  540. "notNull": true,
  541. "default": 1
  542. },
  543. "priority": {
  544. "name": "priority",
  545. "type": "integer",
  546. "primaryKey": false,
  547. "notNull": true,
  548. "default": 0
  549. },
  550. "cost_multiplier": {
  551. "name": "cost_multiplier",
  552. "type": "numeric(10, 4)",
  553. "primaryKey": false,
  554. "notNull": false,
  555. "default": "'1.0'"
  556. },
  557. "group_tag": {
  558. "name": "group_tag",
  559. "type": "varchar(50)",
  560. "primaryKey": false,
  561. "notNull": false
  562. },
  563. "provider_type": {
  564. "name": "provider_type",
  565. "type": "varchar(20)",
  566. "primaryKey": false,
  567. "notNull": true,
  568. "default": "'claude'"
  569. },
  570. "model_redirects": {
  571. "name": "model_redirects",
  572. "type": "jsonb",
  573. "primaryKey": false,
  574. "notNull": false
  575. },
  576. "limit_5h_usd": {
  577. "name": "limit_5h_usd",
  578. "type": "numeric(10, 2)",
  579. "primaryKey": false,
  580. "notNull": false
  581. },
  582. "limit_weekly_usd": {
  583. "name": "limit_weekly_usd",
  584. "type": "numeric(10, 2)",
  585. "primaryKey": false,
  586. "notNull": false
  587. },
  588. "limit_monthly_usd": {
  589. "name": "limit_monthly_usd",
  590. "type": "numeric(10, 2)",
  591. "primaryKey": false,
  592. "notNull": false
  593. },
  594. "limit_concurrent_sessions": {
  595. "name": "limit_concurrent_sessions",
  596. "type": "integer",
  597. "primaryKey": false,
  598. "notNull": false,
  599. "default": 0
  600. },
  601. "tpm": {
  602. "name": "tpm",
  603. "type": "integer",
  604. "primaryKey": false,
  605. "notNull": false,
  606. "default": 0
  607. },
  608. "rpm": {
  609. "name": "rpm",
  610. "type": "integer",
  611. "primaryKey": false,
  612. "notNull": false,
  613. "default": 0
  614. },
  615. "rpd": {
  616. "name": "rpd",
  617. "type": "integer",
  618. "primaryKey": false,
  619. "notNull": false,
  620. "default": 0
  621. },
  622. "cc": {
  623. "name": "cc",
  624. "type": "integer",
  625. "primaryKey": false,
  626. "notNull": false,
  627. "default": 0
  628. },
  629. "created_at": {
  630. "name": "created_at",
  631. "type": "timestamp with time zone",
  632. "primaryKey": false,
  633. "notNull": false,
  634. "default": "now()"
  635. },
  636. "updated_at": {
  637. "name": "updated_at",
  638. "type": "timestamp with time zone",
  639. "primaryKey": false,
  640. "notNull": false,
  641. "default": "now()"
  642. },
  643. "deleted_at": {
  644. "name": "deleted_at",
  645. "type": "timestamp with time zone",
  646. "primaryKey": false,
  647. "notNull": false
  648. }
  649. },
  650. "indexes": {
  651. "idx_providers_enabled_priority": {
  652. "name": "idx_providers_enabled_priority",
  653. "columns": [
  654. {
  655. "expression": "is_enabled",
  656. "isExpression": false,
  657. "asc": true,
  658. "nulls": "last"
  659. },
  660. {
  661. "expression": "priority",
  662. "isExpression": false,
  663. "asc": true,
  664. "nulls": "last"
  665. },
  666. {
  667. "expression": "weight",
  668. "isExpression": false,
  669. "asc": true,
  670. "nulls": "last"
  671. }
  672. ],
  673. "isUnique": false,
  674. "where": "\"providers\".\"deleted_at\" IS NULL",
  675. "concurrently": false,
  676. "method": "btree",
  677. "with": {}
  678. },
  679. "idx_providers_group": {
  680. "name": "idx_providers_group",
  681. "columns": [
  682. {
  683. "expression": "group_tag",
  684. "isExpression": false,
  685. "asc": true,
  686. "nulls": "last"
  687. }
  688. ],
  689. "isUnique": false,
  690. "where": "\"providers\".\"deleted_at\" IS NULL",
  691. "concurrently": false,
  692. "method": "btree",
  693. "with": {}
  694. },
  695. "idx_providers_created_at": {
  696. "name": "idx_providers_created_at",
  697. "columns": [
  698. {
  699. "expression": "created_at",
  700. "isExpression": false,
  701. "asc": true,
  702. "nulls": "last"
  703. }
  704. ],
  705. "isUnique": false,
  706. "concurrently": false,
  707. "method": "btree",
  708. "with": {}
  709. },
  710. "idx_providers_deleted_at": {
  711. "name": "idx_providers_deleted_at",
  712. "columns": [
  713. {
  714. "expression": "deleted_at",
  715. "isExpression": false,
  716. "asc": true,
  717. "nulls": "last"
  718. }
  719. ],
  720. "isUnique": false,
  721. "concurrently": false,
  722. "method": "btree",
  723. "with": {}
  724. }
  725. },
  726. "foreignKeys": {},
  727. "compositePrimaryKeys": {},
  728. "uniqueConstraints": {},
  729. "policies": {},
  730. "checkConstraints": {},
  731. "isRLSEnabled": false
  732. },
  733. "public.system_settings": {
  734. "name": "system_settings",
  735. "schema": "",
  736. "columns": {
  737. "id": {
  738. "name": "id",
  739. "type": "serial",
  740. "primaryKey": true,
  741. "notNull": true
  742. },
  743. "site_title": {
  744. "name": "site_title",
  745. "type": "varchar(128)",
  746. "primaryKey": false,
  747. "notNull": true,
  748. "default": "'Claude Code Hub'"
  749. },
  750. "allow_global_usage_view": {
  751. "name": "allow_global_usage_view",
  752. "type": "boolean",
  753. "primaryKey": false,
  754. "notNull": true,
  755. "default": true
  756. },
  757. "created_at": {
  758. "name": "created_at",
  759. "type": "timestamp with time zone",
  760. "primaryKey": false,
  761. "notNull": false,
  762. "default": "now()"
  763. },
  764. "updated_at": {
  765. "name": "updated_at",
  766. "type": "timestamp with time zone",
  767. "primaryKey": false,
  768. "notNull": false,
  769. "default": "now()"
  770. }
  771. },
  772. "indexes": {},
  773. "foreignKeys": {},
  774. "compositePrimaryKeys": {},
  775. "uniqueConstraints": {},
  776. "policies": {},
  777. "checkConstraints": {},
  778. "isRLSEnabled": false
  779. },
  780. "public.users": {
  781. "name": "users",
  782. "schema": "",
  783. "columns": {
  784. "id": {
  785. "name": "id",
  786. "type": "serial",
  787. "primaryKey": true,
  788. "notNull": true
  789. },
  790. "name": {
  791. "name": "name",
  792. "type": "varchar",
  793. "primaryKey": false,
  794. "notNull": true
  795. },
  796. "description": {
  797. "name": "description",
  798. "type": "text",
  799. "primaryKey": false,
  800. "notNull": false
  801. },
  802. "role": {
  803. "name": "role",
  804. "type": "varchar",
  805. "primaryKey": false,
  806. "notNull": false,
  807. "default": "'user'"
  808. },
  809. "rpm_limit": {
  810. "name": "rpm_limit",
  811. "type": "integer",
  812. "primaryKey": false,
  813. "notNull": false,
  814. "default": 60
  815. },
  816. "daily_limit_usd": {
  817. "name": "daily_limit_usd",
  818. "type": "numeric(10, 2)",
  819. "primaryKey": false,
  820. "notNull": false,
  821. "default": "'100.00'"
  822. },
  823. "provider_group": {
  824. "name": "provider_group",
  825. "type": "varchar(50)",
  826. "primaryKey": false,
  827. "notNull": false
  828. },
  829. "created_at": {
  830. "name": "created_at",
  831. "type": "timestamp with time zone",
  832. "primaryKey": false,
  833. "notNull": false,
  834. "default": "now()"
  835. },
  836. "updated_at": {
  837. "name": "updated_at",
  838. "type": "timestamp with time zone",
  839. "primaryKey": false,
  840. "notNull": false,
  841. "default": "now()"
  842. },
  843. "deleted_at": {
  844. "name": "deleted_at",
  845. "type": "timestamp with time zone",
  846. "primaryKey": false,
  847. "notNull": false
  848. }
  849. },
  850. "indexes": {
  851. "idx_users_active_role_sort": {
  852. "name": "idx_users_active_role_sort",
  853. "columns": [
  854. {
  855. "expression": "deleted_at",
  856. "isExpression": false,
  857. "asc": true,
  858. "nulls": "last"
  859. },
  860. {
  861. "expression": "role",
  862. "isExpression": false,
  863. "asc": true,
  864. "nulls": "last"
  865. },
  866. {
  867. "expression": "id",
  868. "isExpression": false,
  869. "asc": true,
  870. "nulls": "last"
  871. }
  872. ],
  873. "isUnique": false,
  874. "where": "\"users\".\"deleted_at\" IS NULL",
  875. "concurrently": false,
  876. "method": "btree",
  877. "with": {}
  878. },
  879. "idx_users_created_at": {
  880. "name": "idx_users_created_at",
  881. "columns": [
  882. {
  883. "expression": "created_at",
  884. "isExpression": false,
  885. "asc": true,
  886. "nulls": "last"
  887. }
  888. ],
  889. "isUnique": false,
  890. "concurrently": false,
  891. "method": "btree",
  892. "with": {}
  893. },
  894. "idx_users_deleted_at": {
  895. "name": "idx_users_deleted_at",
  896. "columns": [
  897. {
  898. "expression": "deleted_at",
  899. "isExpression": false,
  900. "asc": true,
  901. "nulls": "last"
  902. }
  903. ],
  904. "isUnique": false,
  905. "concurrently": false,
  906. "method": "btree",
  907. "with": {}
  908. }
  909. },
  910. "foreignKeys": {},
  911. "compositePrimaryKeys": {},
  912. "uniqueConstraints": {},
  913. "policies": {},
  914. "checkConstraints": {},
  915. "isRLSEnabled": false
  916. }
  917. },
  918. "enums": {},
  919. "schemas": {},
  920. "sequences": {},
  921. "roles": {},
  922. "policies": {},
  923. "views": {},
  924. "_meta": {
  925. "columns": {},
  926. "schemas": {},
  927. "tables": {}
  928. }
  929. }