{ "id": "41b90ddc-497c-47fb-8870-16e1ad9b492b", "prevId": "6fa088cf-5f05-40aa-bb38-94848c4feb92", "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": {} }, "setting": { "name": "setting", "schema": "", "columns": { "user_id": { "name": "user_id", "type": "integer", "primaryKey": false, "notNull": true }, "qr_background": { "name": "qr_background", "type": "varchar(7)", "primaryKey": false, "notNull": false }, "qr_foreground": { "name": "qr_foreground", "type": "varchar(7)", "primaryKey": false, "notNull": false } }, "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 }, "device_type": { "name": "device_type", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "device_vendor": { "name": "device_vendor", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "os": { "name": "os", "type": "varchar(255)", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {} } }, "enums": {}, "schemas": {}, "_meta": { "schemas": {}, "tables": {}, "columns": {} } }