{
  "id": "dbe99c19-b436-46dd-af9d-2d3f7f33c0bd",
  "prevId": "cc527753-148c-4459-ab86-7a6c95be8151",
  "version": "7",
  "dialect": "postgresql",
  "tables": {
    "public.email_verification_token": {
      "name": "email_verification_token",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(255)",
          "primaryKey": true,
          "notNull": true
        },
        "user_id": {
          "name": "user_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "email": {
          "name": "email",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {}
    },
    "public.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
        },
        "qr_background": {
          "name": "qr_background",
          "type": "varchar(7)",
          "primaryKey": false,
          "notNull": true,
          "default": "'#ffffff'"
        },
        "qr_foreground": {
          "name": "qr_foreground",
          "type": "varchar(7)",
          "primaryKey": false,
          "notNull": true,
          "default": "'#000000'"
        },
        "domain_status": {
          "name": "domain_status",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "default": "'verified'"
        },
        "enable_custom_domain": {
          "name": "enable_custom_domain",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "custom_ip": {
          "name": "custom_ip",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "custom_domain_id": {
          "name": "custom_domain_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "custom_domain": {
          "name": "custom_domain",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "qr_corner_square_style": {
          "name": "qr_corner_square_style",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true,
          "default": "'square'"
        },
        "qr_dot_style": {
          "name": "qr_dot_style",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true,
          "default": "'square'"
        },
        "qr_image_base64": {
          "name": "qr_image_base64",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {}
    },
    "public.session": {
      "name": "session",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "varchar(255)",
          "primaryKey": true,
          "notNull": true
        },
        "user_id": {
          "name": "user_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "expires_at": {
          "name": "expires_at",
          "type": "timestamp with time zone",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {}
    },
    "public.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": {}
    },
    "public.shortener": {
      "name": "shortener",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "link": {
          "name": "link",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true
        },
        "ios": {
          "name": "ios",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "ios_link": {
          "name": "ios_link",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "android": {
          "name": "android",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "android_link": {
          "name": "android_link",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "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
        },
        "active": {
          "name": "active",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": true
        },
        "project_id": {
          "name": "project_id",
          "type": "integer",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "shortener_code_unique": {
          "name": "shortener_code_unique",
          "columns": [
            "code"
          ],
          "nullsNotDistinct": false
        }
      }
    },
    "public.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_verified": {
          "name": "email_verified",
          "type": "boolean",
          "primaryKey": false,
          "notNull": true,
          "default": false
        },
        "email": {
          "name": "email",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true
        },
        "google_id": {
          "name": "google_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "username": {
          "name": "username",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "password": {
          "name": "password",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "created_at": {
          "name": "created_at",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true,
          "default": "now()"
        },
        "plan": {
          "name": "plan",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "default": "'free'"
        },
        "stripe_customer_id": {
          "name": "stripe_customer_id",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": false
        },
        "qr_background": {
          "name": "qr_background",
          "type": "varchar(7)",
          "primaryKey": false,
          "notNull": true,
          "default": "'#fff'"
        },
        "qr_foreground": {
          "name": "qr_foreground",
          "type": "varchar(7)",
          "primaryKey": false,
          "notNull": true,
          "default": "'#000'"
        },
        "qr_corner_square_style": {
          "name": "qr_corner_square_style",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true,
          "default": "'square'"
        },
        "qr_dot_style": {
          "name": "qr_dot_style",
          "type": "varchar",
          "primaryKey": false,
          "notNull": true,
          "default": "'square'"
        },
        "qr_image_base64": {
          "name": "qr_image_base64",
          "type": "text",
          "primaryKey": false,
          "notNull": false
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {
        "user_email_unique": {
          "name": "user_email_unique",
          "columns": [
            "email"
          ],
          "nullsNotDistinct": false
        }
      }
    },
    "public.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": true,
          "default": "''"
        },
        "device_vendor": {
          "name": "device_vendor",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "default": "''"
        },
        "os": {
          "name": "os",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "default": "''"
        },
        "browser": {
          "name": "browser",
          "type": "varchar(255)",
          "primaryKey": false,
          "notNull": true,
          "default": "''"
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {}
    }
  },
  "enums": {},
  "schemas": {},
  "sequences": {},
  "_meta": {
    "columns": {},
    "schemas": {},
    "tables": {}
  }
}