{ "id": "9a3733db-b0ef-4744-b0bf-f69e9b03917c", "prevId": "8f8ae49c-43bf-4e07-a30d-383e2b767524", "version": "5", "dialect": "pg", "tables": { "project": { "name": "project", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "uuid": { "name": "uuid", "type": "uuid", "primaryKey": false, "notNull": false, "default": "gen_random_uuid()" }, "name": { "name": "name", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "integer", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "session": { "name": "session", "schema": "", "columns": { "token": { "name": "token", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "user_id": { "name": "user_id", "type": "integer", "primaryKey": false, "notNull": true }, "expires": { "name": "expires", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "shortener": { "name": "shortener", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "link": { "name": "link", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "code": { "name": "code", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "user_id": { "name": "user_id", "type": "integer", "primaryKey": false, "notNull": true }, "project_id": { "name": "project_id", "type": "integer", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} }, "user": { "name": "user", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "uuid": { "name": "uuid", "type": "uuid", "primaryKey": false, "notNull": false, "default": "gen_random_uuid()" }, "email": { "name": "email", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "username": { "name": "username", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "password": { "name": "password", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "user_email_unique": { "name": "user_email_unique", "nullsNotDistinct": false, "columns": [ "email" ] } } }, "visitor": { "name": "visitor", "schema": "", "columns": { "id": { "name": "id", "type": "serial", "primaryKey": true, "notNull": true }, "shortener_id": { "name": "shortener_id", "type": "integer", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "country_code": { "name": "country_code", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "country": { "name": "country", "type": "varchar(255)", "primaryKey": false, "notNull": true }, "city": { "name": "city", "type": "varchar(255)", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} } }, "enums": {}, "schemas": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} } }