0000_snapshot.json79 lines, 1.8 KB
| 1 | { |
| 2 | "id": "dd50efd4-b4bf-423f-bdc2-62e66c5ee770", |
| 3 | "prevId": "00000000-0000-0000-0000-000000000000", |
| 4 | "version": "7", |
| 5 | "dialect": "postgresql", |
| 6 | "tables": { |
| 7 | "public.urls": { |
| 8 | "name": "urls", |
| 9 | "schema": "", |
| 10 | "columns": { |
| 11 | "id": { |
| 12 | "name": "id", |
| 13 | "type": "serial", |
| 14 | "primaryKey": true, |
| 15 | "notNull": true |
| 16 | }, |
| 17 | "original_url": { |
| 18 | "name": "original_url", |
| 19 | "type": "varchar(2000)", |
| 20 | "primaryKey": false, |
| 21 | "notNull": true |
| 22 | }, |
| 23 | "short_code": { |
| 24 | "name": "short_code", |
| 25 | "type": "varchar(10)", |
| 26 | "primaryKey": false, |
| 27 | "notNull": true |
| 28 | }, |
| 29 | "created_at": { |
| 30 | "name": "created_at", |
| 31 | "type": "timestamp", |
| 32 | "primaryKey": false, |
| 33 | "notNull": true, |
| 34 | "default": "now()" |
| 35 | }, |
| 36 | "updated_at": { |
| 37 | "name": "updated_at", |
| 38 | "type": "timestamp", |
| 39 | "primaryKey": false, |
| 40 | "notNull": true, |
| 41 | "default": "now()" |
| 42 | }, |
| 43 | "clicks": { |
| 44 | "name": "clicks", |
| 45 | "type": "integer", |
| 46 | "primaryKey": false, |
| 47 | "notNull": true, |
| 48 | "default": 0 |
| 49 | } |
| 50 | }, |
| 51 | "indexes": {}, |
| 52 | "foreignKeys": {}, |
| 53 | "compositePrimaryKeys": {}, |
| 54 | "uniqueConstraints": { |
| 55 | "urls_short_code_unique": { |
| 56 | "name": "urls_short_code_unique", |
| 57 | "nullsNotDistinct": false, |
| 58 | "columns": [ |
| 59 | "short_code" |
| 60 | ] |
| 61 | } |
| 62 | }, |
| 63 | "policies": {}, |
| 64 | "checkConstraints": {}, |
| 65 | "isRLSEnabled": false |
| 66 | } |
| 67 | }, |
| 68 | "enums": {}, |
| 69 | "schemas": {}, |
| 70 | "sequences": {}, |
| 71 | "roles": {}, |
| 72 | "policies": {}, |
| 73 | "views": {}, |
| 74 | "_meta": { |
| 75 | "columns": {}, |
| 76 | "schemas": {}, |
| 77 | "tables": {} |
| 78 | } |
| 79 | } |