Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Fix docker publish (#697)

Brendan Allan8bd0aa58ce16
diff --git a/.github/workflows/docker-build-web.yml b/.github/workflows/docker-build-web.yml
index 41caf1f91..01c1ad294 100644
--- a/.github/workflows/docker-build-web.yml
+++ b/.github/workflows/docker-build-web.yml
@@ -11,8 +11,16 @@ on:
jobs:
build:
- name: Build Docker Image
- runs-on: ubuntu-latest
+ name: Build Docker Image (${{ matrix.platform }})
+ runs-on: ${{ matrix.runner }}
+ strategy:
+ matrix:
+ include:
+ - platform: amd64
+ runner: ubuntu-24.04
+ - platform: arm64
+ runner: ubuntu-24.04-arm
+ fail-fast: false
permissions:
contents: read
packages: write
@@ -39,25 +47,59 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Prepare Docker Metadata
- id: meta
- uses: docker/metadata-action@v5
- with:
- images: ghcr.io/capsoftware/cap-web
- tags: |
- type=raw,value=${{ inputs.tag || 'latest' }}
-
- - name: Build Docker Image
+ - name: Build and Push Platform Image
+ id: build
uses: docker/build-push-action@v5
with:
context: .
file: apps/web/Dockerfile
- platforms: linux/amd64,linux/arm64
- tags: ${{ steps.meta.outputs.tags }}
+ platforms: linux/${{ matrix.platform }}
push: true
- load: false
- cache-from: type=gha
- cache-to: type=gha,mode=max
+ outputs: type=image,name=ghcr.io/capsoftware/cap-web,push-by-digest=true
+ cache-from: type=gha,scope=buildx-${{ matrix.platform }}
+ cache-to: type=gha,mode=max,scope=buildx-${{ matrix.platform }}
+
+ - name: Export Digest
+ run: |
+ mkdir -p /tmp/digests
+ digest="${{ steps.build.outputs.digest }}"
+ touch "/tmp/digests/${digest#sha256:}"
+
+ - name: Upload Digest
+ uses: actions/upload-artifact@v4
+ with:
+ name: digests-${{ matrix.platform }}
+ path: /tmp/digests/*
+ if-no-files-found: error
+ retention-days: 1
+
+ merge:
+ name: Create Multi-Architecture Manifest
+ needs: build
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+
+ steps:
+ - name: Download Digests
+ uses: actions/download-artifact@v4
+ with:
+ path: /tmp/digests
+ pattern: digests-*
+ merge-multiple: true
- - name: Show Docker Images
- run: docker images
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v3
+
+ - name: Login to GitHub Container Registry
+ uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
+ - name: Create Image Manifest
+ run: |
+ docker buildx imagetools create -t ghcr.io/capsoftware/cap-web:${{ inputs.tag || 'latest' }} \
+ $(find /tmp/digests -type f -not -path "*/\.*" -exec basename {} \; | xargs -I {} echo "ghcr.io/capsoftware/cap-web@sha256:{}")
diff --git a/.github/workflows/validate-migration-journal.yml b/.github/workflows/validate-migration-journal.yml
new file mode 100644
index 000000000..300da0a8c
--- /dev/null
+++ b/.github/workflows/validate-migration-journal.yml
@@ -0,0 +1,76 @@
+name: Validate Migrations
+
+on:
+ pull_request:
+ paths:
+ - "packages/database/migrations/**"
+
+jobs:
+ validate-journal:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout PR branch
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Validate journal is append-only
+ run: |
+ JOURNAL_PATH="packages/database/migrations/meta/_journal.json"
+
+ # Get the journal from previous commit
+ git fetch origin
+
+ # Check if journal exists in previous commit
+ if git show 34cd664a1215:$JOURNAL_PATH > /dev/null 2>&1; then
+ git show 34cd664a1215:$JOURNAL_PATH > base.json
+ else
+ echo '{"version":"5","dialect":"mysql","entries":[]}' > base.json
+ fi
+
+ # Get current journal
+ cp $JOURNAL_PATH current.json
+
+ # Check version and dialect haven't changed
+ BASE_VERSION=$(jq -r '.version' base.json)
+ CURRENT_VERSION=$(jq -r '.version' current.json)
+ if [ "$BASE_VERSION" != "$CURRENT_VERSION" ]; then
+ echo "::error file=$JOURNAL_PATH,line=2,title=Version Changed::Migration journal version cannot be changed (was: $BASE_VERSION, now: $CURRENT_VERSION)"
+ exit 1
+ fi
+
+ BASE_DIALECT=$(jq -r '.dialect' base.json)
+ CURRENT_DIALECT=$(jq -r '.dialect' current.json)
+ if [ "$BASE_DIALECT" != "$CURRENT_DIALECT" ]; then
+ echo "::error file=$JOURNAL_PATH,line=3,title=Dialect Changed::Migration journal dialect cannot be changed (was: $BASE_DIALECT, now: $CURRENT_DIALECT)"
+ exit 1
+ fi
+
+ # Check that entries weren't removed
+ BASE_COUNT=$(jq '.entries | length' base.json)
+ CURRENT_COUNT=$(jq '.entries | length' current.json)
+ if [ "$CURRENT_COUNT" -lt "$BASE_COUNT" ]; then
+ echo "::error file=$JOURNAL_PATH,title=Entries Removed::Migration entries cannot be removed (base has $BASE_COUNT entries, current has $CURRENT_COUNT)"
+ exit 1
+ fi
+
+ # Extract and compare the overlapping entries
+ jq --argjson n "$BASE_COUNT" '.entries[:$n]' current.json > current_overlap.json
+ jq '.entries' base.json > base_entries.json
+
+ if ! diff -q base_entries.json current_overlap.json > /dev/null; then
+ echo "::error file=$JOURNAL_PATH,title=Existing Entries Modified::Existing migration entries have been modified. Migrations are append-only."
+
+ # Find which entry was modified using jq
+ for i in $(seq 0 $((BASE_COUNT - 1))); do
+ BASE_ENTRY=$(jq ".entries[$i]" base.json)
+ CURRENT_ENTRY=$(jq ".entries[$i]" current.json)
+ if [ "$BASE_ENTRY" != "$CURRENT_ENTRY" ]; then
+ TAG=$(echo "$BASE_ENTRY" | jq -r '.tag')
+ echo "::error file=$JOURNAL_PATH,title=Entry Modified::Migration entry '$TAG' (index $i) was modified"
+ fi
+ done
+ exit 1
+ fi
+
+ echo "::notice file=$JOURNAL_PATH,title=Journal Valid::✅ Migration journal validation passed! ($((CURRENT_COUNT - BASE_COUNT)) new entries added)"
diff --git a/packages/database/migrations/0002_zippy_rocket_raccoon.sql b/packages/database/migrations/0002_dusty_maginty.sql
similarity index 89%
rename from packages/database/migrations/0002_zippy_rocket_raccoon.sql
rename to packages/database/migrations/0002_dusty_maginty.sql
index dee9b47ff..48a070d20 100644
--- a/packages/database/migrations/0002_zippy_rocket_raccoon.sql
+++ b/packages/database/migrations/0002_dusty_maginty.sql
@@ -2,7 +2,7 @@ CREATE TABLE `space_members` (
`id` varchar(15) NOT NULL,
`spaceId` varchar(15) NOT NULL,
`userId` varchar(15) NOT NULL,
- `role` varchar(255) NOT NULL,
+ `role` varchar(255) NOT NULL DEFAULT 'member',
`createdAt` timestamp NOT NULL DEFAULT (now()),
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `space_members_id` PRIMARY KEY(`id`),
@@ -21,12 +21,15 @@ CREATE TABLE `space_videos` (
--> statement-breakpoint
CREATE TABLE `spaces` (
`id` varchar(15) NOT NULL,
+ `primary` boolean NOT NULL DEFAULT false,
`name` varchar(255) NOT NULL,
`organizationId` varchar(15) NOT NULL,
`createdById` varchar(15) NOT NULL,
+ `iconUrl` varchar(255),
`description` varchar(1000),
`createdAt` timestamp NOT NULL DEFAULT (now()),
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
+ `privacy` varchar(255) NOT NULL DEFAULT 'Private',
CONSTRAINT `spaces_id` PRIMARY KEY(`id`),
CONSTRAINT `spaces_id_unique` UNIQUE(`id`)
);
diff --git a/packages/database/migrations/0003_fat_krista_starr.sql b/packages/database/migrations/0003_fat_krista_starr.sql
deleted file mode 100644
index d33d1d99b..000000000
--- a/packages/database/migrations/0003_fat_krista_starr.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE `organizations` ADD `iconUrl` varchar(1024);
\ No newline at end of file
diff --git a/packages/database/migrations/0006_melted_paibok.sql b/packages/database/migrations/0006_melted_paibok.sql
deleted file mode 100644
index dee9b47ff..000000000
--- a/packages/database/migrations/0006_melted_paibok.sql
+++ /dev/null
@@ -1,42 +0,0 @@
-CREATE TABLE `space_members` (
- `id` varchar(15) NOT NULL,
- `spaceId` varchar(15) NOT NULL,
- `userId` varchar(15) NOT NULL,
- `role` varchar(255) NOT NULL,
- `createdAt` timestamp NOT NULL DEFAULT (now()),
- `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
- CONSTRAINT `space_members_id` PRIMARY KEY(`id`),
- CONSTRAINT `space_members_id_unique` UNIQUE(`id`)
-);
---> statement-breakpoint
-CREATE TABLE `space_videos` (
- `id` varchar(15) NOT NULL,
- `spaceId` varchar(15) NOT NULL,
- `videoId` varchar(15) NOT NULL,
- `addedById` varchar(15) NOT NULL,
- `addedAt` timestamp NOT NULL DEFAULT (now()),
- CONSTRAINT `space_videos_id` PRIMARY KEY(`id`),
- CONSTRAINT `space_videos_id_unique` UNIQUE(`id`)
-);
---> statement-breakpoint
-CREATE TABLE `spaces` (
- `id` varchar(15) NOT NULL,
- `name` varchar(255) NOT NULL,
- `organizationId` varchar(15) NOT NULL,
- `createdById` varchar(15) NOT NULL,
- `description` varchar(1000),
- `createdAt` timestamp NOT NULL DEFAULT (now()),
- `updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
- CONSTRAINT `spaces_id` PRIMARY KEY(`id`),
- CONSTRAINT `spaces_id_unique` UNIQUE(`id`)
-);
---> statement-breakpoint
-CREATE INDEX `space_id_idx` ON `space_members` (`spaceId`);--> statement-breakpoint
-CREATE INDEX `user_id_idx` ON `space_members` (`userId`);--> statement-breakpoint
-CREATE INDEX `space_id_user_id_idx` ON `space_members` (`spaceId`,`userId`);--> statement-breakpoint
-CREATE INDEX `space_id_idx` ON `space_videos` (`spaceId`);--> statement-breakpoint
-CREATE INDEX `video_id_idx` ON `space_videos` (`videoId`);--> statement-breakpoint
-CREATE INDEX `added_by_id_idx` ON `space_videos` (`addedById`);--> statement-breakpoint
-CREATE INDEX `space_id_video_id_idx` ON `space_videos` (`spaceId`,`videoId`);--> statement-breakpoint
-CREATE INDEX `organization_id_idx` ON `spaces` (`organizationId`);--> statement-breakpoint
-CREATE INDEX `created_by_id_idx` ON `spaces` (`createdById`);
\ No newline at end of file
diff --git a/packages/database/migrations/0007_outgoing_tiger_shark.sql b/packages/database/migrations/0007_outgoing_tiger_shark.sql
deleted file mode 100644
index 76cd31d95..000000000
--- a/packages/database/migrations/0007_outgoing_tiger_shark.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE `spaces` ADD `iconUrl` varchar(255);
\ No newline at end of file
diff --git a/packages/database/migrations/0008_absent_skaar.sql b/packages/database/migrations/0008_absent_skaar.sql
deleted file mode 100644
index 10f1c4cf3..000000000
--- a/packages/database/migrations/0008_absent_skaar.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE `spaces` ADD `role` varchar(255) NOT NULL;
\ No newline at end of file
diff --git a/packages/database/migrations/0009_messy_shen.sql b/packages/database/migrations/0009_messy_shen.sql
deleted file mode 100644
index 634cb889e..000000000
--- a/packages/database/migrations/0009_messy_shen.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE `spaces` MODIFY COLUMN `role` varchar(255) NOT NULL DEFAULT 'Owner';
\ No newline at end of file
diff --git a/packages/database/migrations/0010_lean_terror.sql b/packages/database/migrations/0010_lean_terror.sql
deleted file mode 100644
index 57a58de13..000000000
--- a/packages/database/migrations/0010_lean_terror.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE `spaces` ADD `primary` boolean DEFAULT false NOT NULL;--> statement-breakpoint
-ALTER TABLE `spaces` ADD `privacy` varchar(255) DEFAULT 'Private' NOT NULL;
\ No newline at end of file
diff --git a/packages/database/migrations/0011_deep_multiple_man.sql b/packages/database/migrations/0011_deep_multiple_man.sql
deleted file mode 100644
index 6b5ef19d6..000000000
--- a/packages/database/migrations/0011_deep_multiple_man.sql
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE `space_members` DROP COLUMN `role`;--> statement-breakpoint
-ALTER TABLE `spaces` DROP COLUMN `role`;
\ No newline at end of file
diff --git a/packages/database/migrations/0012_add_role_to_space_members.sql b/packages/database/migrations/0012_add_role_to_space_members.sql
deleted file mode 100644
index 035c83c6d..000000000
--- a/packages/database/migrations/0012_add_role_to_space_members.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE `space_members` ADD COLUMN `role` varchar(255) NOT NULL DEFAULT 'member';
diff --git a/packages/database/migrations/0012_first_power_man.sql b/packages/database/migrations/0012_first_power_man.sql
deleted file mode 100644
index e1525b07c..000000000
--- a/packages/database/migrations/0012_first_power_man.sql
+++ /dev/null
@@ -1 +0,0 @@
-ALTER TABLE `space_members` ADD `role` varchar(255) DEFAULT 'member' NOT NULL;
\ No newline at end of file
diff --git a/packages/database/migrations/meta/0002_snapshot.json b/packages/database/migrations/meta/0002_snapshot.json
index 318f7535d..fdce4c8af 100644
--- a/packages/database/migrations/meta/0002_snapshot.json
+++ b/packages/database/migrations/meta/0002_snapshot.json
@@ -1,8 +1,8 @@
{
"version": "5",
"dialect": "mysql",
- "id": "7fa85e98-38f6-4126-bb02-8edc9b64801d",
- "prevId": "94acb4a1-1de9-4bcf-bb06-5aeae407cd92",
+ "id": "34547a7f-467f-4213-af17-84b26feef022",
+ "prevId": "b5bc5676-a4a0-47e2-9d59-1ee12ab6a9c2",
"tables": {
"accounts": {
"name": "accounts",
@@ -151,6 +151,52 @@
},
"checkConstraint": {}
},
+ "auth_api_keys": {
+ "name": "auth_api_keys",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "varchar(36)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "userId": {
+ "name": "userId",
+ "type": "varchar(15)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "createdAt": {
+ "name": "createdAt",
+ "type": "timestamp",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "(now())"
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {
+ "auth_api_keys_id": {
+ "name": "auth_api_keys_id",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "uniqueConstraints": {
+ "auth_api_keys_id_unique": {
+ "name": "auth_api_keys_id_unique",
+ "columns": [
+ "id"
+ ]
+ }
+ },
+ "checkConstraint": {}
+ },
"comments": {
"name": "comments",
"columns": {
@@ -527,6 +573,13 @@
"notNull": false,
"autoincrement": false
},
+ "iconUrl": {
+ "name": "iconUrl",
+ "type": "varchar(1024)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
"createdAt": {
"name": "createdAt",
"type": "timestamp",
@@ -884,7 +937,8 @@
"type": "varchar(255)",
"primaryKey": false,
"notNull": true,
- "autoincrement": false
+ "autoincrement": false,
+ "default": "'member'"
},
"createdAt": {
"name": "createdAt",
@@ -1047,6 +1101,14 @@
"notNull": true,
"autoincrement": false
},
+ "primary": {
+ "name": "primary",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": false
+ },
"name": {
"name": "name",
"type": "varchar(255)",
@@ -1068,6 +1130,13 @@
"notNull": true,
"autoincrement": false
},
+ "iconUrl": {
+ "name": "iconUrl",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
"description": {
"name": "description",
"type": "varchar(1000)",
@@ -1091,6 +1160,14 @@
"autoincrement": false,
"onUpdate": true,
"default": "(now())"
+ },
+ "privacy": {
+ "name": "privacy",
+ "type": "varchar(255)",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false,
+ "default": "'Private'"
}
},
"indexes": {
@@ -1412,6 +1489,13 @@
"autoincrement": false,
"default": true
},
+ "password": {
+ "name": "password",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
"videoStartTime": {
"name": "videoStartTime",
"type": "varchar(255)",
diff --git a/packages/database/migrations/meta/0006_snapshot.json b/packages/database/migrations/meta/0006_snapshot.json
deleted file mode 100644
index 80cdb7469..000000000
--- a/packages/database/migrations/meta/0006_snapshot.json
+++ /dev/null
@@ -1,1612 +0,0 @@
-{
- "version": "5",
- "dialect": "mysql",
- "id": "a6babd87-22c7-4473-952d-69fc012355aa",
- "prevId": "db818ca1-e79f-4d6b-9c28-4d29eb8771ab",
- "tables": {
- "accounts": {
- "name": "accounts",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "providerAccountId": {
- "name": "providerAccountId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "access_token": {
- "name": "access_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "expires_in": {
- "name": "expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "id_token": {
- "name": "id_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token": {
- "name": "refresh_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token_expires_in": {
- "name": "refresh_token_expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "scope": {
- "name": "scope",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "token_type": {
- "name": "token_type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "tempColumn": {
- "name": "tempColumn",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "provider_account_id_idx": {
- "name": "provider_account_id_idx",
- "columns": [
- "providerAccountId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "accounts_id": {
- "name": "accounts_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "accounts_id_unique": {
- "name": "accounts_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "auth_api_keys": {
- "name": "auth_api_keys",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(36)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "auth_api_keys_id": {
- "name": "auth_api_keys_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "auth_api_keys_id_unique": {
- "name": "auth_api_keys_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "comments": {
- "name": "comments",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(6)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "content": {
- "name": "content",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "timestamp": {
- "name": "timestamp",
- "type": "float",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "authorId": {
- "name": "authorId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "parentCommentId": {
- "name": "parentCommentId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "author_id_idx": {
- "name": "author_id_idx",
- "columns": [
- "authorId"
- ],
- "isUnique": false
- },
- "parent_comment_id_idx": {
- "name": "parent_comment_id_idx",
- "columns": [
- "parentCommentId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "comments_id": {
- "name": "comments_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "comments_id_unique": {
- "name": "comments_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_invites": {
- "name": "organization_invites",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedEmail": {
- "name": "invitedEmail",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedByUserId": {
- "name": "invitedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "status": {
- "name": "status",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'pending'"
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "expiresAt": {
- "name": "expiresAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "invited_email_idx": {
- "name": "invited_email_idx",
- "columns": [
- "invitedEmail"
- ],
- "isUnique": false
- },
- "invited_by_user_id_idx": {
- "name": "invited_by_user_id_idx",
- "columns": [
- "invitedByUserId"
- ],
- "isUnique": false
- },
- "status_idx": {
- "name": "status_idx",
- "columns": [
- "status"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_invites_id": {
- "name": "organization_invites_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_invites_id_unique": {
- "name": "organization_invites_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_members": {
- "name": "organization_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "user_id_organization_id_idx": {
- "name": "user_id_organization_id_idx",
- "columns": [
- "userId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_members_id": {
- "name": "organization_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_members_id_unique": {
- "name": "organization_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organizations": {
- "name": "organizations",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "allowedEmailDomain": {
- "name": "allowedEmailDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customDomain": {
- "name": "customDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "domainVerified": {
- "name": "domainVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(1024)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "workosOrganizationId": {
- "name": "workosOrganizationId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "workosConnectionId": {
- "name": "workosConnectionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "custom_domain_idx": {
- "name": "custom_domain_idx",
- "columns": [
- "customDomain"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organizations_id": {
- "name": "organizations_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organizations_id_unique": {
- "name": "organizations_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "s3_buckets": {
- "name": "s3_buckets",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "region": {
- "name": "region",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "endpoint": {
- "name": "endpoint",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucketName": {
- "name": "bucketName",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "accessKeyId": {
- "name": "accessKeyId",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "secretAccessKey": {
- "name": "secretAccessKey",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('aws')"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "s3_buckets_id": {
- "name": "s3_buckets_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "s3_buckets_id_unique": {
- "name": "s3_buckets_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "sessions": {
- "name": "sessions",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sessionToken": {
- "name": "sessionToken",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "session_token_idx": {
- "name": "session_token_idx",
- "columns": [
- "sessionToken"
- ],
- "isUnique": true
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "sessions_id": {
- "name": "sessions_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "sessions_id_unique": {
- "name": "sessions_id_unique",
- "columns": [
- "id"
- ]
- },
- "sessions_sessionToken_unique": {
- "name": "sessions_sessionToken_unique",
- "columns": [
- "sessionToken"
- ]
- }
- },
- "checkConstraint": {}
- },
- "shared_videos": {
- "name": "shared_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedByUserId": {
- "name": "sharedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedAt": {
- "name": "sharedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "shared_by_user_id_idx": {
- "name": "shared_by_user_id_idx",
- "columns": [
- "sharedByUserId"
- ],
- "isUnique": false
- },
- "video_id_organization_id_idx": {
- "name": "video_id_organization_id_idx",
- "columns": [
- "videoId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "shared_videos_id": {
- "name": "shared_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "shared_videos_id_unique": {
- "name": "shared_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_members": {
- "name": "space_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "space_id_user_id_idx": {
- "name": "space_id_user_id_idx",
- "columns": [
- "spaceId",
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_members_id": {
- "name": "space_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_members_id_unique": {
- "name": "space_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_videos": {
- "name": "space_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedById": {
- "name": "addedById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedAt": {
- "name": "addedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "added_by_id_idx": {
- "name": "added_by_id_idx",
- "columns": [
- "addedById"
- ],
- "isUnique": false
- },
- "space_id_video_id_idx": {
- "name": "space_id_video_id_idx",
- "columns": [
- "spaceId",
- "videoId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_videos_id": {
- "name": "space_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_videos_id_unique": {
- "name": "space_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "spaces": {
- "name": "spaces",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdById": {
- "name": "createdById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "description": {
- "name": "description",
- "type": "varchar(1000)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "created_by_id_idx": {
- "name": "created_by_id_idx",
- "columns": [
- "createdById"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "spaces_id": {
- "name": "spaces_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "spaces_id_unique": {
- "name": "spaces_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "users": {
- "name": "users",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "lastName": {
- "name": "lastName",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "email": {
- "name": "email",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "emailVerified": {
- "name": "emailVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "image": {
- "name": "image",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeCustomerId": {
- "name": "stripeCustomerId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionId": {
- "name": "stripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "thirdPartyStripeSubscriptionId": {
- "name": "thirdPartyStripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionStatus": {
- "name": "stripeSubscriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionPriceId": {
- "name": "stripeSubscriptionPriceId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "activeOrganizationId": {
- "name": "activeOrganizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "onboarding_completed_at": {
- "name": "onboarding_completed_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customBucket": {
- "name": "customBucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "inviteQuota": {
- "name": "inviteQuota",
- "type": "int",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": 1
- }
- },
- "indexes": {
- "email_idx": {
- "name": "email_idx",
- "columns": [
- "email"
- ],
- "isUnique": true
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "users_id": {
- "name": "users_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "users_id_unique": {
- "name": "users_id_unique",
- "columns": [
- "id"
- ]
- },
- "users_email_unique": {
- "name": "users_email_unique",
- "columns": [
- "email"
- ]
- }
- },
- "checkConstraint": {}
- },
- "verification_tokens": {
- "name": "verification_tokens",
- "columns": {
- "identifier": {
- "name": "identifier",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "token": {
- "name": "token",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "verification_tokens_identifier": {
- "name": "verification_tokens_identifier",
- "columns": [
- "identifier"
- ]
- }
- },
- "uniqueConstraints": {
- "verification_tokens_token_unique": {
- "name": "verification_tokens_token_unique",
- "columns": [
- "token"
- ]
- }
- },
- "checkConstraint": {}
- },
- "videos": {
- "name": "videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'My Video'"
- },
- "awsRegion": {
- "name": "awsRegion",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "awsBucket": {
- "name": "awsBucket",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucket": {
- "name": "bucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "public": {
- "name": "public",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": true
- },
- "password": {
- "name": "password",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "videoStartTime": {
- "name": "videoStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "audioStartTime": {
- "name": "audioStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "xStreamInfo": {
- "name": "xStreamInfo",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobId": {
- "name": "jobId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobStatus": {
- "name": "jobStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "isScreenshot": {
- "name": "isScreenshot",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "skipProcessing": {
- "name": "skipProcessing",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "transcriptionStatus": {
- "name": "transcriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "source": {
- "name": "source",
- "type": "json",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('{\"type\":\"MediaConvert\"}')"
- }
- },
- "indexes": {
- "id_idx": {
- "name": "id_idx",
- "columns": [
- "id"
- ],
- "isUnique": false
- },
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "is_public_idx": {
- "name": "is_public_idx",
- "columns": [
- "public"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "videos_id": {
- "name": "videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "videos_id_unique": {
- "name": "videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- }
- },
- "views": {},
- "_meta": {
- "schemas": {},
- "tables": {},
- "columns": {}
- },
- "internal": {
- "tables": {},
- "indexes": {}
- }
-}
\ No newline at end of file
diff --git a/packages/database/migrations/meta/0007_snapshot.json b/packages/database/migrations/meta/0007_snapshot.json
deleted file mode 100644
index a397c84b3..000000000
--- a/packages/database/migrations/meta/0007_snapshot.json
+++ /dev/null
@@ -1,1619 +0,0 @@
-{
- "version": "5",
- "dialect": "mysql",
- "id": "484d301f-5437-4d42-a0e7-0ca6d2f26de3",
- "prevId": "a6babd87-22c7-4473-952d-69fc012355aa",
- "tables": {
- "accounts": {
- "name": "accounts",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "providerAccountId": {
- "name": "providerAccountId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "access_token": {
- "name": "access_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "expires_in": {
- "name": "expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "id_token": {
- "name": "id_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token": {
- "name": "refresh_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token_expires_in": {
- "name": "refresh_token_expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "scope": {
- "name": "scope",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "token_type": {
- "name": "token_type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "tempColumn": {
- "name": "tempColumn",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "provider_account_id_idx": {
- "name": "provider_account_id_idx",
- "columns": [
- "providerAccountId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "accounts_id": {
- "name": "accounts_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "accounts_id_unique": {
- "name": "accounts_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "auth_api_keys": {
- "name": "auth_api_keys",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(36)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "auth_api_keys_id": {
- "name": "auth_api_keys_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "auth_api_keys_id_unique": {
- "name": "auth_api_keys_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "comments": {
- "name": "comments",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(6)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "content": {
- "name": "content",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "timestamp": {
- "name": "timestamp",
- "type": "float",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "authorId": {
- "name": "authorId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "parentCommentId": {
- "name": "parentCommentId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "author_id_idx": {
- "name": "author_id_idx",
- "columns": [
- "authorId"
- ],
- "isUnique": false
- },
- "parent_comment_id_idx": {
- "name": "parent_comment_id_idx",
- "columns": [
- "parentCommentId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "comments_id": {
- "name": "comments_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "comments_id_unique": {
- "name": "comments_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_invites": {
- "name": "organization_invites",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedEmail": {
- "name": "invitedEmail",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedByUserId": {
- "name": "invitedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "status": {
- "name": "status",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'pending'"
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "expiresAt": {
- "name": "expiresAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "invited_email_idx": {
- "name": "invited_email_idx",
- "columns": [
- "invitedEmail"
- ],
- "isUnique": false
- },
- "invited_by_user_id_idx": {
- "name": "invited_by_user_id_idx",
- "columns": [
- "invitedByUserId"
- ],
- "isUnique": false
- },
- "status_idx": {
- "name": "status_idx",
- "columns": [
- "status"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_invites_id": {
- "name": "organization_invites_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_invites_id_unique": {
- "name": "organization_invites_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_members": {
- "name": "organization_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "user_id_organization_id_idx": {
- "name": "user_id_organization_id_idx",
- "columns": [
- "userId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_members_id": {
- "name": "organization_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_members_id_unique": {
- "name": "organization_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organizations": {
- "name": "organizations",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "allowedEmailDomain": {
- "name": "allowedEmailDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customDomain": {
- "name": "customDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "domainVerified": {
- "name": "domainVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(1024)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "workosOrganizationId": {
- "name": "workosOrganizationId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "workosConnectionId": {
- "name": "workosConnectionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "custom_domain_idx": {
- "name": "custom_domain_idx",
- "columns": [
- "customDomain"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organizations_id": {
- "name": "organizations_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organizations_id_unique": {
- "name": "organizations_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "s3_buckets": {
- "name": "s3_buckets",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "region": {
- "name": "region",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "endpoint": {
- "name": "endpoint",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucketName": {
- "name": "bucketName",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "accessKeyId": {
- "name": "accessKeyId",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "secretAccessKey": {
- "name": "secretAccessKey",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('aws')"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "s3_buckets_id": {
- "name": "s3_buckets_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "s3_buckets_id_unique": {
- "name": "s3_buckets_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "sessions": {
- "name": "sessions",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sessionToken": {
- "name": "sessionToken",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "session_token_idx": {
- "name": "session_token_idx",
- "columns": [
- "sessionToken"
- ],
- "isUnique": true
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "sessions_id": {
- "name": "sessions_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "sessions_id_unique": {
- "name": "sessions_id_unique",
- "columns": [
- "id"
- ]
- },
- "sessions_sessionToken_unique": {
- "name": "sessions_sessionToken_unique",
- "columns": [
- "sessionToken"
- ]
- }
- },
- "checkConstraint": {}
- },
- "shared_videos": {
- "name": "shared_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedByUserId": {
- "name": "sharedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedAt": {
- "name": "sharedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "shared_by_user_id_idx": {
- "name": "shared_by_user_id_idx",
- "columns": [
- "sharedByUserId"
- ],
- "isUnique": false
- },
- "video_id_organization_id_idx": {
- "name": "video_id_organization_id_idx",
- "columns": [
- "videoId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "shared_videos_id": {
- "name": "shared_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "shared_videos_id_unique": {
- "name": "shared_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_members": {
- "name": "space_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "space_id_user_id_idx": {
- "name": "space_id_user_id_idx",
- "columns": [
- "spaceId",
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_members_id": {
- "name": "space_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_members_id_unique": {
- "name": "space_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_videos": {
- "name": "space_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedById": {
- "name": "addedById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedAt": {
- "name": "addedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "added_by_id_idx": {
- "name": "added_by_id_idx",
- "columns": [
- "addedById"
- ],
- "isUnique": false
- },
- "space_id_video_id_idx": {
- "name": "space_id_video_id_idx",
- "columns": [
- "spaceId",
- "videoId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_videos_id": {
- "name": "space_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_videos_id_unique": {
- "name": "space_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "spaces": {
- "name": "spaces",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdById": {
- "name": "createdById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "description": {
- "name": "description",
- "type": "varchar(1000)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "created_by_id_idx": {
- "name": "created_by_id_idx",
- "columns": [
- "createdById"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "spaces_id": {
- "name": "spaces_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "spaces_id_unique": {
- "name": "spaces_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "users": {
- "name": "users",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "lastName": {
- "name": "lastName",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "email": {
- "name": "email",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "emailVerified": {
- "name": "emailVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "image": {
- "name": "image",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeCustomerId": {
- "name": "stripeCustomerId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionId": {
- "name": "stripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "thirdPartyStripeSubscriptionId": {
- "name": "thirdPartyStripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionStatus": {
- "name": "stripeSubscriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionPriceId": {
- "name": "stripeSubscriptionPriceId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "activeOrganizationId": {
- "name": "activeOrganizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "onboarding_completed_at": {
- "name": "onboarding_completed_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customBucket": {
- "name": "customBucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "inviteQuota": {
- "name": "inviteQuota",
- "type": "int",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": 1
- }
- },
- "indexes": {
- "email_idx": {
- "name": "email_idx",
- "columns": [
- "email"
- ],
- "isUnique": true
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "users_id": {
- "name": "users_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "users_id_unique": {
- "name": "users_id_unique",
- "columns": [
- "id"
- ]
- },
- "users_email_unique": {
- "name": "users_email_unique",
- "columns": [
- "email"
- ]
- }
- },
- "checkConstraint": {}
- },
- "verification_tokens": {
- "name": "verification_tokens",
- "columns": {
- "identifier": {
- "name": "identifier",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "token": {
- "name": "token",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "verification_tokens_identifier": {
- "name": "verification_tokens_identifier",
- "columns": [
- "identifier"
- ]
- }
- },
- "uniqueConstraints": {
- "verification_tokens_token_unique": {
- "name": "verification_tokens_token_unique",
- "columns": [
- "token"
- ]
- }
- },
- "checkConstraint": {}
- },
- "videos": {
- "name": "videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'My Video'"
- },
- "awsRegion": {
- "name": "awsRegion",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "awsBucket": {
- "name": "awsBucket",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucket": {
- "name": "bucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "public": {
- "name": "public",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": true
- },
- "password": {
- "name": "password",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "videoStartTime": {
- "name": "videoStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "audioStartTime": {
- "name": "audioStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "xStreamInfo": {
- "name": "xStreamInfo",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobId": {
- "name": "jobId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobStatus": {
- "name": "jobStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "isScreenshot": {
- "name": "isScreenshot",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "skipProcessing": {
- "name": "skipProcessing",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "transcriptionStatus": {
- "name": "transcriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "source": {
- "name": "source",
- "type": "json",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('{\"type\":\"MediaConvert\"}')"
- }
- },
- "indexes": {
- "id_idx": {
- "name": "id_idx",
- "columns": [
- "id"
- ],
- "isUnique": false
- },
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "is_public_idx": {
- "name": "is_public_idx",
- "columns": [
- "public"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "videos_id": {
- "name": "videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "videos_id_unique": {
- "name": "videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- }
- },
- "views": {},
- "_meta": {
- "schemas": {},
- "tables": {},
- "columns": {}
- },
- "internal": {
- "tables": {},
- "indexes": {}
- }
-}
\ No newline at end of file
diff --git a/packages/database/migrations/meta/0008_snapshot.json b/packages/database/migrations/meta/0008_snapshot.json
deleted file mode 100644
index 6f70727af..000000000
--- a/packages/database/migrations/meta/0008_snapshot.json
+++ /dev/null
@@ -1,1626 +0,0 @@
-{
- "version": "5",
- "dialect": "mysql",
- "id": "492287c1-7233-446f-8d67-4580a97390f5",
- "prevId": "484d301f-5437-4d42-a0e7-0ca6d2f26de3",
- "tables": {
- "accounts": {
- "name": "accounts",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "providerAccountId": {
- "name": "providerAccountId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "access_token": {
- "name": "access_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "expires_in": {
- "name": "expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "id_token": {
- "name": "id_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token": {
- "name": "refresh_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token_expires_in": {
- "name": "refresh_token_expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "scope": {
- "name": "scope",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "token_type": {
- "name": "token_type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "tempColumn": {
- "name": "tempColumn",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "provider_account_id_idx": {
- "name": "provider_account_id_idx",
- "columns": [
- "providerAccountId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "accounts_id": {
- "name": "accounts_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "accounts_id_unique": {
- "name": "accounts_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "auth_api_keys": {
- "name": "auth_api_keys",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(36)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "auth_api_keys_id": {
- "name": "auth_api_keys_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "auth_api_keys_id_unique": {
- "name": "auth_api_keys_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "comments": {
- "name": "comments",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(6)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "content": {
- "name": "content",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "timestamp": {
- "name": "timestamp",
- "type": "float",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "authorId": {
- "name": "authorId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "parentCommentId": {
- "name": "parentCommentId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "author_id_idx": {
- "name": "author_id_idx",
- "columns": [
- "authorId"
- ],
- "isUnique": false
- },
- "parent_comment_id_idx": {
- "name": "parent_comment_id_idx",
- "columns": [
- "parentCommentId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "comments_id": {
- "name": "comments_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "comments_id_unique": {
- "name": "comments_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_invites": {
- "name": "organization_invites",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedEmail": {
- "name": "invitedEmail",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedByUserId": {
- "name": "invitedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "status": {
- "name": "status",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'pending'"
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "expiresAt": {
- "name": "expiresAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "invited_email_idx": {
- "name": "invited_email_idx",
- "columns": [
- "invitedEmail"
- ],
- "isUnique": false
- },
- "invited_by_user_id_idx": {
- "name": "invited_by_user_id_idx",
- "columns": [
- "invitedByUserId"
- ],
- "isUnique": false
- },
- "status_idx": {
- "name": "status_idx",
- "columns": [
- "status"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_invites_id": {
- "name": "organization_invites_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_invites_id_unique": {
- "name": "organization_invites_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_members": {
- "name": "organization_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "user_id_organization_id_idx": {
- "name": "user_id_organization_id_idx",
- "columns": [
- "userId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_members_id": {
- "name": "organization_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_members_id_unique": {
- "name": "organization_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organizations": {
- "name": "organizations",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "allowedEmailDomain": {
- "name": "allowedEmailDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customDomain": {
- "name": "customDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "domainVerified": {
- "name": "domainVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(1024)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "workosOrganizationId": {
- "name": "workosOrganizationId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "workosConnectionId": {
- "name": "workosConnectionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "custom_domain_idx": {
- "name": "custom_domain_idx",
- "columns": [
- "customDomain"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organizations_id": {
- "name": "organizations_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organizations_id_unique": {
- "name": "organizations_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "s3_buckets": {
- "name": "s3_buckets",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "region": {
- "name": "region",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "endpoint": {
- "name": "endpoint",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucketName": {
- "name": "bucketName",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "accessKeyId": {
- "name": "accessKeyId",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "secretAccessKey": {
- "name": "secretAccessKey",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('aws')"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "s3_buckets_id": {
- "name": "s3_buckets_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "s3_buckets_id_unique": {
- "name": "s3_buckets_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "sessions": {
- "name": "sessions",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sessionToken": {
- "name": "sessionToken",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "session_token_idx": {
- "name": "session_token_idx",
- "columns": [
- "sessionToken"
- ],
- "isUnique": true
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "sessions_id": {
- "name": "sessions_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "sessions_id_unique": {
- "name": "sessions_id_unique",
- "columns": [
- "id"
- ]
- },
- "sessions_sessionToken_unique": {
- "name": "sessions_sessionToken_unique",
- "columns": [
- "sessionToken"
- ]
- }
- },
- "checkConstraint": {}
- },
- "shared_videos": {
- "name": "shared_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedByUserId": {
- "name": "sharedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedAt": {
- "name": "sharedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "shared_by_user_id_idx": {
- "name": "shared_by_user_id_idx",
- "columns": [
- "sharedByUserId"
- ],
- "isUnique": false
- },
- "video_id_organization_id_idx": {
- "name": "video_id_organization_id_idx",
- "columns": [
- "videoId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "shared_videos_id": {
- "name": "shared_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "shared_videos_id_unique": {
- "name": "shared_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_members": {
- "name": "space_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "space_id_user_id_idx": {
- "name": "space_id_user_id_idx",
- "columns": [
- "spaceId",
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_members_id": {
- "name": "space_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_members_id_unique": {
- "name": "space_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_videos": {
- "name": "space_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedById": {
- "name": "addedById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedAt": {
- "name": "addedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "added_by_id_idx": {
- "name": "added_by_id_idx",
- "columns": [
- "addedById"
- ],
- "isUnique": false
- },
- "space_id_video_id_idx": {
- "name": "space_id_video_id_idx",
- "columns": [
- "spaceId",
- "videoId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_videos_id": {
- "name": "space_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_videos_id_unique": {
- "name": "space_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "spaces": {
- "name": "spaces",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdById": {
- "name": "createdById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "description": {
- "name": "description",
- "type": "varchar(1000)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "created_by_id_idx": {
- "name": "created_by_id_idx",
- "columns": [
- "createdById"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "spaces_id": {
- "name": "spaces_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "spaces_id_unique": {
- "name": "spaces_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "users": {
- "name": "users",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "lastName": {
- "name": "lastName",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "email": {
- "name": "email",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "emailVerified": {
- "name": "emailVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "image": {
- "name": "image",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeCustomerId": {
- "name": "stripeCustomerId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionId": {
- "name": "stripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "thirdPartyStripeSubscriptionId": {
- "name": "thirdPartyStripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionStatus": {
- "name": "stripeSubscriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionPriceId": {
- "name": "stripeSubscriptionPriceId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "activeOrganizationId": {
- "name": "activeOrganizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "onboarding_completed_at": {
- "name": "onboarding_completed_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customBucket": {
- "name": "customBucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "inviteQuota": {
- "name": "inviteQuota",
- "type": "int",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": 1
- }
- },
- "indexes": {
- "email_idx": {
- "name": "email_idx",
- "columns": [
- "email"
- ],
- "isUnique": true
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "users_id": {
- "name": "users_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "users_id_unique": {
- "name": "users_id_unique",
- "columns": [
- "id"
- ]
- },
- "users_email_unique": {
- "name": "users_email_unique",
- "columns": [
- "email"
- ]
- }
- },
- "checkConstraint": {}
- },
- "verification_tokens": {
- "name": "verification_tokens",
- "columns": {
- "identifier": {
- "name": "identifier",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "token": {
- "name": "token",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "verification_tokens_identifier": {
- "name": "verification_tokens_identifier",
- "columns": [
- "identifier"
- ]
- }
- },
- "uniqueConstraints": {
- "verification_tokens_token_unique": {
- "name": "verification_tokens_token_unique",
- "columns": [
- "token"
- ]
- }
- },
- "checkConstraint": {}
- },
- "videos": {
- "name": "videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'My Video'"
- },
- "awsRegion": {
- "name": "awsRegion",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "awsBucket": {
- "name": "awsBucket",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucket": {
- "name": "bucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "public": {
- "name": "public",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": true
- },
- "password": {
- "name": "password",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "videoStartTime": {
- "name": "videoStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "audioStartTime": {
- "name": "audioStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "xStreamInfo": {
- "name": "xStreamInfo",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobId": {
- "name": "jobId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobStatus": {
- "name": "jobStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "isScreenshot": {
- "name": "isScreenshot",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "skipProcessing": {
- "name": "skipProcessing",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "transcriptionStatus": {
- "name": "transcriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "source": {
- "name": "source",
- "type": "json",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('{\"type\":\"MediaConvert\"}')"
- }
- },
- "indexes": {
- "id_idx": {
- "name": "id_idx",
- "columns": [
- "id"
- ],
- "isUnique": false
- },
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "is_public_idx": {
- "name": "is_public_idx",
- "columns": [
- "public"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "videos_id": {
- "name": "videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "videos_id_unique": {
- "name": "videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- }
- },
- "views": {},
- "_meta": {
- "schemas": {},
- "tables": {},
- "columns": {}
- },
- "internal": {
- "tables": {},
- "indexes": {}
- }
-}
\ No newline at end of file
diff --git a/packages/database/migrations/meta/0009_snapshot.json b/packages/database/migrations/meta/0009_snapshot.json
deleted file mode 100644
index 9e6e3618c..000000000
--- a/packages/database/migrations/meta/0009_snapshot.json
+++ /dev/null
@@ -1,1627 +0,0 @@
-{
- "version": "5",
- "dialect": "mysql",
- "id": "f5b17f91-ed40-43e2-853c-5c5f09e34525",
- "prevId": "492287c1-7233-446f-8d67-4580a97390f5",
- "tables": {
- "accounts": {
- "name": "accounts",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "providerAccountId": {
- "name": "providerAccountId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "access_token": {
- "name": "access_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "expires_in": {
- "name": "expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "id_token": {
- "name": "id_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token": {
- "name": "refresh_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token_expires_in": {
- "name": "refresh_token_expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "scope": {
- "name": "scope",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "token_type": {
- "name": "token_type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "tempColumn": {
- "name": "tempColumn",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "provider_account_id_idx": {
- "name": "provider_account_id_idx",
- "columns": [
- "providerAccountId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "accounts_id": {
- "name": "accounts_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "accounts_id_unique": {
- "name": "accounts_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "auth_api_keys": {
- "name": "auth_api_keys",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(36)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "auth_api_keys_id": {
- "name": "auth_api_keys_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "auth_api_keys_id_unique": {
- "name": "auth_api_keys_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "comments": {
- "name": "comments",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(6)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "content": {
- "name": "content",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "timestamp": {
- "name": "timestamp",
- "type": "float",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "authorId": {
- "name": "authorId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "parentCommentId": {
- "name": "parentCommentId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "author_id_idx": {
- "name": "author_id_idx",
- "columns": [
- "authorId"
- ],
- "isUnique": false
- },
- "parent_comment_id_idx": {
- "name": "parent_comment_id_idx",
- "columns": [
- "parentCommentId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "comments_id": {
- "name": "comments_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "comments_id_unique": {
- "name": "comments_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_invites": {
- "name": "organization_invites",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedEmail": {
- "name": "invitedEmail",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedByUserId": {
- "name": "invitedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "status": {
- "name": "status",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'pending'"
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "expiresAt": {
- "name": "expiresAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "invited_email_idx": {
- "name": "invited_email_idx",
- "columns": [
- "invitedEmail"
- ],
- "isUnique": false
- },
- "invited_by_user_id_idx": {
- "name": "invited_by_user_id_idx",
- "columns": [
- "invitedByUserId"
- ],
- "isUnique": false
- },
- "status_idx": {
- "name": "status_idx",
- "columns": [
- "status"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_invites_id": {
- "name": "organization_invites_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_invites_id_unique": {
- "name": "organization_invites_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_members": {
- "name": "organization_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "user_id_organization_id_idx": {
- "name": "user_id_organization_id_idx",
- "columns": [
- "userId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_members_id": {
- "name": "organization_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_members_id_unique": {
- "name": "organization_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organizations": {
- "name": "organizations",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "allowedEmailDomain": {
- "name": "allowedEmailDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customDomain": {
- "name": "customDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "domainVerified": {
- "name": "domainVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(1024)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "workosOrganizationId": {
- "name": "workosOrganizationId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "workosConnectionId": {
- "name": "workosConnectionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "custom_domain_idx": {
- "name": "custom_domain_idx",
- "columns": [
- "customDomain"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organizations_id": {
- "name": "organizations_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organizations_id_unique": {
- "name": "organizations_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "s3_buckets": {
- "name": "s3_buckets",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "region": {
- "name": "region",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "endpoint": {
- "name": "endpoint",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucketName": {
- "name": "bucketName",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "accessKeyId": {
- "name": "accessKeyId",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "secretAccessKey": {
- "name": "secretAccessKey",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('aws')"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "s3_buckets_id": {
- "name": "s3_buckets_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "s3_buckets_id_unique": {
- "name": "s3_buckets_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "sessions": {
- "name": "sessions",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sessionToken": {
- "name": "sessionToken",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "session_token_idx": {
- "name": "session_token_idx",
- "columns": [
- "sessionToken"
- ],
- "isUnique": true
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "sessions_id": {
- "name": "sessions_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "sessions_id_unique": {
- "name": "sessions_id_unique",
- "columns": [
- "id"
- ]
- },
- "sessions_sessionToken_unique": {
- "name": "sessions_sessionToken_unique",
- "columns": [
- "sessionToken"
- ]
- }
- },
- "checkConstraint": {}
- },
- "shared_videos": {
- "name": "shared_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedByUserId": {
- "name": "sharedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedAt": {
- "name": "sharedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "shared_by_user_id_idx": {
- "name": "shared_by_user_id_idx",
- "columns": [
- "sharedByUserId"
- ],
- "isUnique": false
- },
- "video_id_organization_id_idx": {
- "name": "video_id_organization_id_idx",
- "columns": [
- "videoId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "shared_videos_id": {
- "name": "shared_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "shared_videos_id_unique": {
- "name": "shared_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_members": {
- "name": "space_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "space_id_user_id_idx": {
- "name": "space_id_user_id_idx",
- "columns": [
- "spaceId",
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_members_id": {
- "name": "space_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_members_id_unique": {
- "name": "space_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_videos": {
- "name": "space_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedById": {
- "name": "addedById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedAt": {
- "name": "addedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "added_by_id_idx": {
- "name": "added_by_id_idx",
- "columns": [
- "addedById"
- ],
- "isUnique": false
- },
- "space_id_video_id_idx": {
- "name": "space_id_video_id_idx",
- "columns": [
- "spaceId",
- "videoId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_videos_id": {
- "name": "space_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_videos_id_unique": {
- "name": "space_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "spaces": {
- "name": "spaces",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdById": {
- "name": "createdById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'Owner'"
- },
- "description": {
- "name": "description",
- "type": "varchar(1000)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "created_by_id_idx": {
- "name": "created_by_id_idx",
- "columns": [
- "createdById"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "spaces_id": {
- "name": "spaces_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "spaces_id_unique": {
- "name": "spaces_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "users": {
- "name": "users",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "lastName": {
- "name": "lastName",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "email": {
- "name": "email",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "emailVerified": {
- "name": "emailVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "image": {
- "name": "image",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeCustomerId": {
- "name": "stripeCustomerId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionId": {
- "name": "stripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "thirdPartyStripeSubscriptionId": {
- "name": "thirdPartyStripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionStatus": {
- "name": "stripeSubscriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionPriceId": {
- "name": "stripeSubscriptionPriceId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "activeOrganizationId": {
- "name": "activeOrganizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "onboarding_completed_at": {
- "name": "onboarding_completed_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customBucket": {
- "name": "customBucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "inviteQuota": {
- "name": "inviteQuota",
- "type": "int",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": 1
- }
- },
- "indexes": {
- "email_idx": {
- "name": "email_idx",
- "columns": [
- "email"
- ],
- "isUnique": true
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "users_id": {
- "name": "users_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "users_id_unique": {
- "name": "users_id_unique",
- "columns": [
- "id"
- ]
- },
- "users_email_unique": {
- "name": "users_email_unique",
- "columns": [
- "email"
- ]
- }
- },
- "checkConstraint": {}
- },
- "verification_tokens": {
- "name": "verification_tokens",
- "columns": {
- "identifier": {
- "name": "identifier",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "token": {
- "name": "token",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "verification_tokens_identifier": {
- "name": "verification_tokens_identifier",
- "columns": [
- "identifier"
- ]
- }
- },
- "uniqueConstraints": {
- "verification_tokens_token_unique": {
- "name": "verification_tokens_token_unique",
- "columns": [
- "token"
- ]
- }
- },
- "checkConstraint": {}
- },
- "videos": {
- "name": "videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'My Video'"
- },
- "awsRegion": {
- "name": "awsRegion",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "awsBucket": {
- "name": "awsBucket",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucket": {
- "name": "bucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "public": {
- "name": "public",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": true
- },
- "password": {
- "name": "password",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "videoStartTime": {
- "name": "videoStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "audioStartTime": {
- "name": "audioStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "xStreamInfo": {
- "name": "xStreamInfo",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobId": {
- "name": "jobId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobStatus": {
- "name": "jobStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "isScreenshot": {
- "name": "isScreenshot",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "skipProcessing": {
- "name": "skipProcessing",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "transcriptionStatus": {
- "name": "transcriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "source": {
- "name": "source",
- "type": "json",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('{\"type\":\"MediaConvert\"}')"
- }
- },
- "indexes": {
- "id_idx": {
- "name": "id_idx",
- "columns": [
- "id"
- ],
- "isUnique": false
- },
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "is_public_idx": {
- "name": "is_public_idx",
- "columns": [
- "public"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "videos_id": {
- "name": "videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "videos_id_unique": {
- "name": "videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- }
- },
- "views": {},
- "_meta": {
- "schemas": {},
- "tables": {},
- "columns": {}
- },
- "internal": {
- "tables": {},
- "indexes": {}
- }
-}
\ No newline at end of file
diff --git a/packages/database/migrations/meta/0010_snapshot.json b/packages/database/migrations/meta/0010_snapshot.json
deleted file mode 100644
index d7b1dc24f..000000000
--- a/packages/database/migrations/meta/0010_snapshot.json
+++ /dev/null
@@ -1,1643 +0,0 @@
-{
- "version": "5",
- "dialect": "mysql",
- "id": "39a2ea97-168f-4276-a6c1-431fed67aa33",
- "prevId": "f5b17f91-ed40-43e2-853c-5c5f09e34525",
- "tables": {
- "accounts": {
- "name": "accounts",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "providerAccountId": {
- "name": "providerAccountId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "access_token": {
- "name": "access_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "expires_in": {
- "name": "expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "id_token": {
- "name": "id_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token": {
- "name": "refresh_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token_expires_in": {
- "name": "refresh_token_expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "scope": {
- "name": "scope",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "token_type": {
- "name": "token_type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "tempColumn": {
- "name": "tempColumn",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "provider_account_id_idx": {
- "name": "provider_account_id_idx",
- "columns": [
- "providerAccountId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "accounts_id": {
- "name": "accounts_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "accounts_id_unique": {
- "name": "accounts_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "auth_api_keys": {
- "name": "auth_api_keys",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(36)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "auth_api_keys_id": {
- "name": "auth_api_keys_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "auth_api_keys_id_unique": {
- "name": "auth_api_keys_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "comments": {
- "name": "comments",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(6)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "content": {
- "name": "content",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "timestamp": {
- "name": "timestamp",
- "type": "float",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "authorId": {
- "name": "authorId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "parentCommentId": {
- "name": "parentCommentId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "author_id_idx": {
- "name": "author_id_idx",
- "columns": [
- "authorId"
- ],
- "isUnique": false
- },
- "parent_comment_id_idx": {
- "name": "parent_comment_id_idx",
- "columns": [
- "parentCommentId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "comments_id": {
- "name": "comments_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "comments_id_unique": {
- "name": "comments_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_invites": {
- "name": "organization_invites",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedEmail": {
- "name": "invitedEmail",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedByUserId": {
- "name": "invitedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "status": {
- "name": "status",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'pending'"
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "expiresAt": {
- "name": "expiresAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "invited_email_idx": {
- "name": "invited_email_idx",
- "columns": [
- "invitedEmail"
- ],
- "isUnique": false
- },
- "invited_by_user_id_idx": {
- "name": "invited_by_user_id_idx",
- "columns": [
- "invitedByUserId"
- ],
- "isUnique": false
- },
- "status_idx": {
- "name": "status_idx",
- "columns": [
- "status"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_invites_id": {
- "name": "organization_invites_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_invites_id_unique": {
- "name": "organization_invites_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_members": {
- "name": "organization_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "user_id_organization_id_idx": {
- "name": "user_id_organization_id_idx",
- "columns": [
- "userId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_members_id": {
- "name": "organization_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_members_id_unique": {
- "name": "organization_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organizations": {
- "name": "organizations",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "allowedEmailDomain": {
- "name": "allowedEmailDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customDomain": {
- "name": "customDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "domainVerified": {
- "name": "domainVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(1024)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "workosOrganizationId": {
- "name": "workosOrganizationId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "workosConnectionId": {
- "name": "workosConnectionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "custom_domain_idx": {
- "name": "custom_domain_idx",
- "columns": [
- "customDomain"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organizations_id": {
- "name": "organizations_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organizations_id_unique": {
- "name": "organizations_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "s3_buckets": {
- "name": "s3_buckets",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "region": {
- "name": "region",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "endpoint": {
- "name": "endpoint",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucketName": {
- "name": "bucketName",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "accessKeyId": {
- "name": "accessKeyId",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "secretAccessKey": {
- "name": "secretAccessKey",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('aws')"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "s3_buckets_id": {
- "name": "s3_buckets_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "s3_buckets_id_unique": {
- "name": "s3_buckets_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "sessions": {
- "name": "sessions",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sessionToken": {
- "name": "sessionToken",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "session_token_idx": {
- "name": "session_token_idx",
- "columns": [
- "sessionToken"
- ],
- "isUnique": true
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "sessions_id": {
- "name": "sessions_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "sessions_id_unique": {
- "name": "sessions_id_unique",
- "columns": [
- "id"
- ]
- },
- "sessions_sessionToken_unique": {
- "name": "sessions_sessionToken_unique",
- "columns": [
- "sessionToken"
- ]
- }
- },
- "checkConstraint": {}
- },
- "shared_videos": {
- "name": "shared_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedByUserId": {
- "name": "sharedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedAt": {
- "name": "sharedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "shared_by_user_id_idx": {
- "name": "shared_by_user_id_idx",
- "columns": [
- "sharedByUserId"
- ],
- "isUnique": false
- },
- "video_id_organization_id_idx": {
- "name": "video_id_organization_id_idx",
- "columns": [
- "videoId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "shared_videos_id": {
- "name": "shared_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "shared_videos_id_unique": {
- "name": "shared_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_members": {
- "name": "space_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "space_id_user_id_idx": {
- "name": "space_id_user_id_idx",
- "columns": [
- "spaceId",
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_members_id": {
- "name": "space_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_members_id_unique": {
- "name": "space_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_videos": {
- "name": "space_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedById": {
- "name": "addedById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedAt": {
- "name": "addedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "added_by_id_idx": {
- "name": "added_by_id_idx",
- "columns": [
- "addedById"
- ],
- "isUnique": false
- },
- "space_id_video_id_idx": {
- "name": "space_id_video_id_idx",
- "columns": [
- "spaceId",
- "videoId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_videos_id": {
- "name": "space_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_videos_id_unique": {
- "name": "space_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "spaces": {
- "name": "spaces",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "primary": {
- "name": "primary",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdById": {
- "name": "createdById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'Owner'"
- },
- "description": {
- "name": "description",
- "type": "varchar(1000)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "privacy": {
- "name": "privacy",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'Private'"
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "created_by_id_idx": {
- "name": "created_by_id_idx",
- "columns": [
- "createdById"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "spaces_id": {
- "name": "spaces_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "spaces_id_unique": {
- "name": "spaces_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "users": {
- "name": "users",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "lastName": {
- "name": "lastName",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "email": {
- "name": "email",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "emailVerified": {
- "name": "emailVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "image": {
- "name": "image",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeCustomerId": {
- "name": "stripeCustomerId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionId": {
- "name": "stripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "thirdPartyStripeSubscriptionId": {
- "name": "thirdPartyStripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionStatus": {
- "name": "stripeSubscriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionPriceId": {
- "name": "stripeSubscriptionPriceId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "activeOrganizationId": {
- "name": "activeOrganizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "onboarding_completed_at": {
- "name": "onboarding_completed_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customBucket": {
- "name": "customBucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "inviteQuota": {
- "name": "inviteQuota",
- "type": "int",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": 1
- }
- },
- "indexes": {
- "email_idx": {
- "name": "email_idx",
- "columns": [
- "email"
- ],
- "isUnique": true
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "users_id": {
- "name": "users_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "users_id_unique": {
- "name": "users_id_unique",
- "columns": [
- "id"
- ]
- },
- "users_email_unique": {
- "name": "users_email_unique",
- "columns": [
- "email"
- ]
- }
- },
- "checkConstraint": {}
- },
- "verification_tokens": {
- "name": "verification_tokens",
- "columns": {
- "identifier": {
- "name": "identifier",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "token": {
- "name": "token",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "verification_tokens_identifier": {
- "name": "verification_tokens_identifier",
- "columns": [
- "identifier"
- ]
- }
- },
- "uniqueConstraints": {
- "verification_tokens_token_unique": {
- "name": "verification_tokens_token_unique",
- "columns": [
- "token"
- ]
- }
- },
- "checkConstraint": {}
- },
- "videos": {
- "name": "videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'My Video'"
- },
- "awsRegion": {
- "name": "awsRegion",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "awsBucket": {
- "name": "awsBucket",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucket": {
- "name": "bucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "public": {
- "name": "public",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": true
- },
- "password": {
- "name": "password",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "videoStartTime": {
- "name": "videoStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "audioStartTime": {
- "name": "audioStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "xStreamInfo": {
- "name": "xStreamInfo",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobId": {
- "name": "jobId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobStatus": {
- "name": "jobStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "isScreenshot": {
- "name": "isScreenshot",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "skipProcessing": {
- "name": "skipProcessing",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "transcriptionStatus": {
- "name": "transcriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "source": {
- "name": "source",
- "type": "json",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('{\"type\":\"MediaConvert\"}')"
- }
- },
- "indexes": {
- "id_idx": {
- "name": "id_idx",
- "columns": [
- "id"
- ],
- "isUnique": false
- },
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "is_public_idx": {
- "name": "is_public_idx",
- "columns": [
- "public"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "videos_id": {
- "name": "videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "videos_id_unique": {
- "name": "videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- }
- },
- "views": {},
- "_meta": {
- "schemas": {},
- "tables": {},
- "columns": {}
- },
- "internal": {
- "tables": {},
- "indexes": {}
- }
-}
\ No newline at end of file
diff --git a/packages/database/migrations/meta/0011_snapshot.json b/packages/database/migrations/meta/0011_snapshot.json
deleted file mode 100644
index bfed1fc0c..000000000
--- a/packages/database/migrations/meta/0011_snapshot.json
+++ /dev/null
@@ -1,1628 +0,0 @@
-{
- "version": "5",
- "dialect": "mysql",
- "id": "b959019d-7dc8-461a-977a-e3b80e73391f",
- "prevId": "39a2ea97-168f-4276-a6c1-431fed67aa33",
- "tables": {
- "accounts": {
- "name": "accounts",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "providerAccountId": {
- "name": "providerAccountId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "access_token": {
- "name": "access_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "expires_in": {
- "name": "expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "id_token": {
- "name": "id_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token": {
- "name": "refresh_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token_expires_in": {
- "name": "refresh_token_expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "scope": {
- "name": "scope",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "token_type": {
- "name": "token_type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "tempColumn": {
- "name": "tempColumn",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "provider_account_id_idx": {
- "name": "provider_account_id_idx",
- "columns": [
- "providerAccountId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "accounts_id": {
- "name": "accounts_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "accounts_id_unique": {
- "name": "accounts_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "auth_api_keys": {
- "name": "auth_api_keys",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(36)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "auth_api_keys_id": {
- "name": "auth_api_keys_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "auth_api_keys_id_unique": {
- "name": "auth_api_keys_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "comments": {
- "name": "comments",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(6)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "content": {
- "name": "content",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "timestamp": {
- "name": "timestamp",
- "type": "float",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "authorId": {
- "name": "authorId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "parentCommentId": {
- "name": "parentCommentId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "author_id_idx": {
- "name": "author_id_idx",
- "columns": [
- "authorId"
- ],
- "isUnique": false
- },
- "parent_comment_id_idx": {
- "name": "parent_comment_id_idx",
- "columns": [
- "parentCommentId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "comments_id": {
- "name": "comments_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "comments_id_unique": {
- "name": "comments_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_invites": {
- "name": "organization_invites",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedEmail": {
- "name": "invitedEmail",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedByUserId": {
- "name": "invitedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "status": {
- "name": "status",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'pending'"
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "expiresAt": {
- "name": "expiresAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "invited_email_idx": {
- "name": "invited_email_idx",
- "columns": [
- "invitedEmail"
- ],
- "isUnique": false
- },
- "invited_by_user_id_idx": {
- "name": "invited_by_user_id_idx",
- "columns": [
- "invitedByUserId"
- ],
- "isUnique": false
- },
- "status_idx": {
- "name": "status_idx",
- "columns": [
- "status"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_invites_id": {
- "name": "organization_invites_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_invites_id_unique": {
- "name": "organization_invites_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_members": {
- "name": "organization_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "user_id_organization_id_idx": {
- "name": "user_id_organization_id_idx",
- "columns": [
- "userId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_members_id": {
- "name": "organization_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_members_id_unique": {
- "name": "organization_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organizations": {
- "name": "organizations",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "allowedEmailDomain": {
- "name": "allowedEmailDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customDomain": {
- "name": "customDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "domainVerified": {
- "name": "domainVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(1024)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "workosOrganizationId": {
- "name": "workosOrganizationId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "workosConnectionId": {
- "name": "workosConnectionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "custom_domain_idx": {
- "name": "custom_domain_idx",
- "columns": [
- "customDomain"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organizations_id": {
- "name": "organizations_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organizations_id_unique": {
- "name": "organizations_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "s3_buckets": {
- "name": "s3_buckets",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "region": {
- "name": "region",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "endpoint": {
- "name": "endpoint",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucketName": {
- "name": "bucketName",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "accessKeyId": {
- "name": "accessKeyId",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "secretAccessKey": {
- "name": "secretAccessKey",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('aws')"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "s3_buckets_id": {
- "name": "s3_buckets_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "s3_buckets_id_unique": {
- "name": "s3_buckets_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "sessions": {
- "name": "sessions",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sessionToken": {
- "name": "sessionToken",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "session_token_idx": {
- "name": "session_token_idx",
- "columns": [
- "sessionToken"
- ],
- "isUnique": true
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "sessions_id": {
- "name": "sessions_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "sessions_id_unique": {
- "name": "sessions_id_unique",
- "columns": [
- "id"
- ]
- },
- "sessions_sessionToken_unique": {
- "name": "sessions_sessionToken_unique",
- "columns": [
- "sessionToken"
- ]
- }
- },
- "checkConstraint": {}
- },
- "shared_videos": {
- "name": "shared_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedByUserId": {
- "name": "sharedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedAt": {
- "name": "sharedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "shared_by_user_id_idx": {
- "name": "shared_by_user_id_idx",
- "columns": [
- "sharedByUserId"
- ],
- "isUnique": false
- },
- "video_id_organization_id_idx": {
- "name": "video_id_organization_id_idx",
- "columns": [
- "videoId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "shared_videos_id": {
- "name": "shared_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "shared_videos_id_unique": {
- "name": "shared_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_members": {
- "name": "space_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "space_id_user_id_idx": {
- "name": "space_id_user_id_idx",
- "columns": [
- "spaceId",
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_members_id": {
- "name": "space_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_members_id_unique": {
- "name": "space_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_videos": {
- "name": "space_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedById": {
- "name": "addedById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedAt": {
- "name": "addedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "added_by_id_idx": {
- "name": "added_by_id_idx",
- "columns": [
- "addedById"
- ],
- "isUnique": false
- },
- "space_id_video_id_idx": {
- "name": "space_id_video_id_idx",
- "columns": [
- "spaceId",
- "videoId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_videos_id": {
- "name": "space_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_videos_id_unique": {
- "name": "space_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "spaces": {
- "name": "spaces",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "primary": {
- "name": "primary",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdById": {
- "name": "createdById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "description": {
- "name": "description",
- "type": "varchar(1000)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "privacy": {
- "name": "privacy",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'Private'"
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "created_by_id_idx": {
- "name": "created_by_id_idx",
- "columns": [
- "createdById"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "spaces_id": {
- "name": "spaces_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "spaces_id_unique": {
- "name": "spaces_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "users": {
- "name": "users",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "lastName": {
- "name": "lastName",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "email": {
- "name": "email",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "emailVerified": {
- "name": "emailVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "image": {
- "name": "image",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeCustomerId": {
- "name": "stripeCustomerId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionId": {
- "name": "stripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "thirdPartyStripeSubscriptionId": {
- "name": "thirdPartyStripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionStatus": {
- "name": "stripeSubscriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionPriceId": {
- "name": "stripeSubscriptionPriceId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "activeOrganizationId": {
- "name": "activeOrganizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "onboarding_completed_at": {
- "name": "onboarding_completed_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customBucket": {
- "name": "customBucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "inviteQuota": {
- "name": "inviteQuota",
- "type": "int",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": 1
- }
- },
- "indexes": {
- "email_idx": {
- "name": "email_idx",
- "columns": [
- "email"
- ],
- "isUnique": true
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "users_id": {
- "name": "users_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "users_id_unique": {
- "name": "users_id_unique",
- "columns": [
- "id"
- ]
- },
- "users_email_unique": {
- "name": "users_email_unique",
- "columns": [
- "email"
- ]
- }
- },
- "checkConstraint": {}
- },
- "verification_tokens": {
- "name": "verification_tokens",
- "columns": {
- "identifier": {
- "name": "identifier",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "token": {
- "name": "token",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "verification_tokens_identifier": {
- "name": "verification_tokens_identifier",
- "columns": [
- "identifier"
- ]
- }
- },
- "uniqueConstraints": {
- "verification_tokens_token_unique": {
- "name": "verification_tokens_token_unique",
- "columns": [
- "token"
- ]
- }
- },
- "checkConstraint": {}
- },
- "videos": {
- "name": "videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'My Video'"
- },
- "awsRegion": {
- "name": "awsRegion",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "awsBucket": {
- "name": "awsBucket",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucket": {
- "name": "bucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "public": {
- "name": "public",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": true
- },
- "password": {
- "name": "password",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "videoStartTime": {
- "name": "videoStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "audioStartTime": {
- "name": "audioStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "xStreamInfo": {
- "name": "xStreamInfo",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobId": {
- "name": "jobId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobStatus": {
- "name": "jobStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "isScreenshot": {
- "name": "isScreenshot",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "skipProcessing": {
- "name": "skipProcessing",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "transcriptionStatus": {
- "name": "transcriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "source": {
- "name": "source",
- "type": "json",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('{\"type\":\"MediaConvert\"}')"
- }
- },
- "indexes": {
- "id_idx": {
- "name": "id_idx",
- "columns": [
- "id"
- ],
- "isUnique": false
- },
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "is_public_idx": {
- "name": "is_public_idx",
- "columns": [
- "public"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "videos_id": {
- "name": "videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "videos_id_unique": {
- "name": "videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- }
- },
- "views": {},
- "_meta": {
- "schemas": {},
- "tables": {},
- "columns": {}
- },
- "internal": {
- "tables": {},
- "indexes": {}
- }
-}
\ No newline at end of file
diff --git a/packages/database/migrations/meta/0012_snapshot.json b/packages/database/migrations/meta/0012_snapshot.json
deleted file mode 100644
index 8de7c6972..000000000
--- a/packages/database/migrations/meta/0012_snapshot.json
+++ /dev/null
@@ -1,1636 +0,0 @@
-{
- "version": "5",
- "dialect": "mysql",
- "id": "52bcc14b-b062-4adb-b24f-d85b5b153e79",
- "prevId": "b959019d-7dc8-461a-977a-e3b80e73391f",
- "tables": {
- "accounts": {
- "name": "accounts",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "providerAccountId": {
- "name": "providerAccountId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "access_token": {
- "name": "access_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "expires_in": {
- "name": "expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "id_token": {
- "name": "id_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token": {
- "name": "refresh_token",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "refresh_token_expires_in": {
- "name": "refresh_token_expires_in",
- "type": "int",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "scope": {
- "name": "scope",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "token_type": {
- "name": "token_type",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "tempColumn": {
- "name": "tempColumn",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "provider_account_id_idx": {
- "name": "provider_account_id_idx",
- "columns": [
- "providerAccountId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "accounts_id": {
- "name": "accounts_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "accounts_id_unique": {
- "name": "accounts_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "auth_api_keys": {
- "name": "auth_api_keys",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(36)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "auth_api_keys_id": {
- "name": "auth_api_keys_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "auth_api_keys_id_unique": {
- "name": "auth_api_keys_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "comments": {
- "name": "comments",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "type": {
- "name": "type",
- "type": "varchar(6)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "content": {
- "name": "content",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "timestamp": {
- "name": "timestamp",
- "type": "float",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "authorId": {
- "name": "authorId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "parentCommentId": {
- "name": "parentCommentId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "author_id_idx": {
- "name": "author_id_idx",
- "columns": [
- "authorId"
- ],
- "isUnique": false
- },
- "parent_comment_id_idx": {
- "name": "parent_comment_id_idx",
- "columns": [
- "parentCommentId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "comments_id": {
- "name": "comments_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "comments_id_unique": {
- "name": "comments_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_invites": {
- "name": "organization_invites",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedEmail": {
- "name": "invitedEmail",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "invitedByUserId": {
- "name": "invitedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "status": {
- "name": "status",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'pending'"
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "expiresAt": {
- "name": "expiresAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "invited_email_idx": {
- "name": "invited_email_idx",
- "columns": [
- "invitedEmail"
- ],
- "isUnique": false
- },
- "invited_by_user_id_idx": {
- "name": "invited_by_user_id_idx",
- "columns": [
- "invitedByUserId"
- ],
- "isUnique": false
- },
- "status_idx": {
- "name": "status_idx",
- "columns": [
- "status"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_invites_id": {
- "name": "organization_invites_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_invites_id_unique": {
- "name": "organization_invites_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organization_members": {
- "name": "organization_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "user_id_organization_id_idx": {
- "name": "user_id_organization_id_idx",
- "columns": [
- "userId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organization_members_id": {
- "name": "organization_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organization_members_id_unique": {
- "name": "organization_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "organizations": {
- "name": "organizations",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "allowedEmailDomain": {
- "name": "allowedEmailDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customDomain": {
- "name": "customDomain",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "domainVerified": {
- "name": "domainVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(1024)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "workosOrganizationId": {
- "name": "workosOrganizationId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "workosConnectionId": {
- "name": "workosConnectionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- }
- },
- "indexes": {
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "custom_domain_idx": {
- "name": "custom_domain_idx",
- "columns": [
- "customDomain"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "organizations_id": {
- "name": "organizations_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "organizations_id_unique": {
- "name": "organizations_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "s3_buckets": {
- "name": "s3_buckets",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "region": {
- "name": "region",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "endpoint": {
- "name": "endpoint",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucketName": {
- "name": "bucketName",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "accessKeyId": {
- "name": "accessKeyId",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "secretAccessKey": {
- "name": "secretAccessKey",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "provider": {
- "name": "provider",
- "type": "text",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('aws')"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "s3_buckets_id": {
- "name": "s3_buckets_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "s3_buckets_id_unique": {
- "name": "s3_buckets_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "sessions": {
- "name": "sessions",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sessionToken": {
- "name": "sessionToken",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "session_token_idx": {
- "name": "session_token_idx",
- "columns": [
- "sessionToken"
- ],
- "isUnique": true
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "sessions_id": {
- "name": "sessions_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "sessions_id_unique": {
- "name": "sessions_id_unique",
- "columns": [
- "id"
- ]
- },
- "sessions_sessionToken_unique": {
- "name": "sessions_sessionToken_unique",
- "columns": [
- "sessionToken"
- ]
- }
- },
- "checkConstraint": {}
- },
- "shared_videos": {
- "name": "shared_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedByUserId": {
- "name": "sharedByUserId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "sharedAt": {
- "name": "sharedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "shared_by_user_id_idx": {
- "name": "shared_by_user_id_idx",
- "columns": [
- "sharedByUserId"
- ],
- "isUnique": false
- },
- "video_id_organization_id_idx": {
- "name": "video_id_organization_id_idx",
- "columns": [
- "videoId",
- "organizationId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "shared_videos_id": {
- "name": "shared_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "shared_videos_id_unique": {
- "name": "shared_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_members": {
- "name": "space_members",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "userId": {
- "name": "userId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "role": {
- "name": "role",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'member'"
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "user_id_idx": {
- "name": "user_id_idx",
- "columns": [
- "userId"
- ],
- "isUnique": false
- },
- "space_id_user_id_idx": {
- "name": "space_id_user_id_idx",
- "columns": [
- "spaceId",
- "userId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_members_id": {
- "name": "space_members_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_members_id_unique": {
- "name": "space_members_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "space_videos": {
- "name": "space_videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "spaceId": {
- "name": "spaceId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "videoId": {
- "name": "videoId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedById": {
- "name": "addedById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "addedAt": {
- "name": "addedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- }
- },
- "indexes": {
- "space_id_idx": {
- "name": "space_id_idx",
- "columns": [
- "spaceId"
- ],
- "isUnique": false
- },
- "video_id_idx": {
- "name": "video_id_idx",
- "columns": [
- "videoId"
- ],
- "isUnique": false
- },
- "added_by_id_idx": {
- "name": "added_by_id_idx",
- "columns": [
- "addedById"
- ],
- "isUnique": false
- },
- "space_id_video_id_idx": {
- "name": "space_id_video_id_idx",
- "columns": [
- "spaceId",
- "videoId"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "space_videos_id": {
- "name": "space_videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "space_videos_id_unique": {
- "name": "space_videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "spaces": {
- "name": "spaces",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "primary": {
- "name": "primary",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "organizationId": {
- "name": "organizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "createdById": {
- "name": "createdById",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "iconUrl": {
- "name": "iconUrl",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "description": {
- "name": "description",
- "type": "varchar(1000)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "privacy": {
- "name": "privacy",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'Private'"
- }
- },
- "indexes": {
- "organization_id_idx": {
- "name": "organization_id_idx",
- "columns": [
- "organizationId"
- ],
- "isUnique": false
- },
- "created_by_id_idx": {
- "name": "created_by_id_idx",
- "columns": [
- "createdById"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "spaces_id": {
- "name": "spaces_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "spaces_id_unique": {
- "name": "spaces_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- },
- "users": {
- "name": "users",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "lastName": {
- "name": "lastName",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "email": {
- "name": "email",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "emailVerified": {
- "name": "emailVerified",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "image": {
- "name": "image",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeCustomerId": {
- "name": "stripeCustomerId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionId": {
- "name": "stripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "thirdPartyStripeSubscriptionId": {
- "name": "thirdPartyStripeSubscriptionId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionStatus": {
- "name": "stripeSubscriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "stripeSubscriptionPriceId": {
- "name": "stripeSubscriptionPriceId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "activeOrganizationId": {
- "name": "activeOrganizationId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "onboarding_completed_at": {
- "name": "onboarding_completed_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "customBucket": {
- "name": "customBucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "inviteQuota": {
- "name": "inviteQuota",
- "type": "int",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": 1
- }
- },
- "indexes": {
- "email_idx": {
- "name": "email_idx",
- "columns": [
- "email"
- ],
- "isUnique": true
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "users_id": {
- "name": "users_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "users_id_unique": {
- "name": "users_id_unique",
- "columns": [
- "id"
- ]
- },
- "users_email_unique": {
- "name": "users_email_unique",
- "columns": [
- "email"
- ]
- }
- },
- "checkConstraint": {}
- },
- "verification_tokens": {
- "name": "verification_tokens",
- "columns": {
- "identifier": {
- "name": "identifier",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "token": {
- "name": "token",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "expires": {
- "name": "expires",
- "type": "datetime",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "created_at": {
- "name": "created_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updated_at": {
- "name": "updated_at",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- }
- },
- "indexes": {},
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "verification_tokens_identifier": {
- "name": "verification_tokens_identifier",
- "columns": [
- "identifier"
- ]
- }
- },
- "uniqueConstraints": {
- "verification_tokens_token_unique": {
- "name": "verification_tokens_token_unique",
- "columns": [
- "token"
- ]
- }
- },
- "checkConstraint": {}
- },
- "videos": {
- "name": "videos",
- "columns": {
- "id": {
- "name": "id",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "ownerId": {
- "name": "ownerId",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false
- },
- "name": {
- "name": "name",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "'My Video'"
- },
- "awsRegion": {
- "name": "awsRegion",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "awsBucket": {
- "name": "awsBucket",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "bucket": {
- "name": "bucket",
- "type": "varchar(15)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "metadata": {
- "name": "metadata",
- "type": "json",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "public": {
- "name": "public",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": true
- },
- "password": {
- "name": "password",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "videoStartTime": {
- "name": "videoStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "audioStartTime": {
- "name": "audioStartTime",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "xStreamInfo": {
- "name": "xStreamInfo",
- "type": "text",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobId": {
- "name": "jobId",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "jobStatus": {
- "name": "jobStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "isScreenshot": {
- "name": "isScreenshot",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "skipProcessing": {
- "name": "skipProcessing",
- "type": "boolean",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": false
- },
- "transcriptionStatus": {
- "name": "transcriptionStatus",
- "type": "varchar(255)",
- "primaryKey": false,
- "notNull": false,
- "autoincrement": false
- },
- "createdAt": {
- "name": "createdAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "(now())"
- },
- "updatedAt": {
- "name": "updatedAt",
- "type": "timestamp",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "onUpdate": true,
- "default": "(now())"
- },
- "source": {
- "name": "source",
- "type": "json",
- "primaryKey": false,
- "notNull": true,
- "autoincrement": false,
- "default": "('{\"type\":\"MediaConvert\"}')"
- }
- },
- "indexes": {
- "id_idx": {
- "name": "id_idx",
- "columns": [
- "id"
- ],
- "isUnique": false
- },
- "owner_id_idx": {
- "name": "owner_id_idx",
- "columns": [
- "ownerId"
- ],
- "isUnique": false
- },
- "is_public_idx": {
- "name": "is_public_idx",
- "columns": [
- "public"
- ],
- "isUnique": false
- }
- },
- "foreignKeys": {},
- "compositePrimaryKeys": {
- "videos_id": {
- "name": "videos_id",
- "columns": [
- "id"
- ]
- }
- },
- "uniqueConstraints": {
- "videos_id_unique": {
- "name": "videos_id_unique",
- "columns": [
- "id"
- ]
- }
- },
- "checkConstraint": {}
- }
- },
- "views": {},
- "_meta": {
- "schemas": {},
- "tables": {},
- "columns": {}
- },
- "internal": {
- "tables": {},
- "indexes": {}
- }
-}
\ No newline at end of file
diff --git a/packages/database/migrations/meta/_journal.json b/packages/database/migrations/meta/_journal.json
index de8926404..15c834fb8 100644
--- a/packages/database/migrations/meta/_journal.json
+++ b/packages/database/migrations/meta/_journal.json
@@ -12,92 +12,15 @@
{
"idx": 1,
"version": "5",
- "when": 1745977344716,
- "tag": "0001_eager_the_order",
+ "when": 1749268354138,
+ "tag": "0001_white_young_avengers",
"breakpoints": true
},
{
"idx": 2,
"version": "5",
- "when": 1746321555631,
- "tag": "0002_zippy_rocket_raccoon",
- "breakpoints": true
- },
- {
- "idx": 3,
- "version": "5",
- "when": 1747510299391,
- "tag": "0003_fat_krista_starr",
- "breakpoints": true
- },
- {
- "idx": 3,
- "version": "5",
- "when": 1747912232644,
- "tag": "0003_small_chamber",
- "breakpoints": true
- },
- {
- "idx": 4,
- "version": "5",
- "when": 1747923172570,
- "tag": "0004_good_microbe",
- "breakpoints": true
- },
- {
- "idx": 5,
- "version": "5",
- "when": 1748207569898,
- "tag": "0005_jazzy_brood",
- "breakpoints": true
- },
- {
- "idx": 6,
- "version": "5",
- "when": 1748949964461,
- "tag": "0006_melted_paibok",
- "breakpoints": true
- },
- {
- "idx": 7,
- "version": "5",
- "when": 1749038954593,
- "tag": "0007_outgoing_tiger_shark",
- "breakpoints": true
- },
- {
- "idx": 8,
- "version": "5",
- "when": 1749133253563,
- "tag": "0008_absent_skaar",
- "breakpoints": true
- },
- {
- "idx": 9,
- "version": "5",
- "when": 1749133398237,
- "tag": "0009_messy_shen",
- "breakpoints": true
- },
- {
- "idx": 10,
- "version": "5",
- "when": 1749138359928,
- "tag": "0010_lean_terror",
- "breakpoints": true
- },
- {
- "idx": 11,
- "version": "5",
- "when": 1749461060162,
- "tag": "0011_deep_multiple_man",
- "breakpoints": true
- },
- {
- "idx": 12,
- "version": "5",
- "when": 1749473788316,
- "tag": "0012_first_power_man",
+ "when": 1750935538683,
+ "tag": "0002_dusty_maginty",
"breakpoints": true
}
]
diff --git a/packages/database/package.json b/packages/database/package.json
index d8dd405b1..a0191ab31 100644
--- a/packages/database/package.json
+++ b/packages/database/package.json
@@ -9,7 +9,9 @@
"db:check": "drizzle-kit check:mysql --config=drizzle.config.ts",
"db:up": "drizzle-kit up:mysql --config=drizzle.config.ts",
"db:drop": "drizzle-kit drop --config=drizzle.config.ts",
- "db:studio": "drizzle-kit studio --config=drizzle.config.ts"
+ "db:studio": "drizzle-kit studio --config=drizzle.config.ts",
+ "db:check-integrity": "node scripts/check-migration-integrity.js",
+ "drizzle-kit": "pnpm dotenv -e ../../.env drizzle-kit --config=drizzle.config.ts"
},
"dependencies": {
"@cap/env": "workspace:*",
diff --git a/turbo.json b/turbo.json
index 70fedba45..c0b66e8c3 100644
--- a/turbo.json
+++ b/turbo.json
@@ -1,57 +1,22 @@
{
"$schema": "https://turbo.build/schema.json",
- "globalDependencies": [
- ".env",
- ".env"
- ],
- "globalEnv": [
- "*"
- ],
+ "globalDependencies": [".env", ".env"],
+ "globalEnv": ["*"],
"tasks": {
"build": {
- "inputs": [
- "**/*.ts",
- "**/*.tsx",
- "!src-tauri/**",
- "!node_modules/**"
- ],
- "dependsOn": [
- "^build"
- ],
- "outputs": [
- ".next/**",
- "!.next/cache/**"
- ]
+ "inputs": ["**/*.ts", "**/*.tsx", "!src-tauri/**", "!node_modules/**"],
+ "dependsOn": ["^build"],
+ "outputs": [".next/**", "!.next/cache/**"]
},
"build:web:docker": {
- "inputs": [
- "**/*.ts",
- "**/*.tsx",
- "!src-tauri/**",
- "!node_modules/**"
- ],
- "dependsOn": [
- "^build"
- ],
- "outputs": [
- ".next/**",
- "!.next/cache/**"
- ]
+ "inputs": ["**/*.ts", "**/*.tsx", "!src-tauri/**", "!node_modules/**"],
+ "dependsOn": ["^build"],
+ "outputs": [".next/**", "!.next/cache/**"]
},
"build:web": {
- "inputs": [
- "**/*.ts",
- "**/*.tsx",
- "!src-tauri/**",
- "!node_modules/**"
- ],
- "dependsOn": [
- "^build"
- ],
- "outputs": [
- ".next/**",
- "!.next/cache/**"
- ]
+ "inputs": ["**/*.ts", "**/*.tsx", "!src-tauri/**", "!node_modules/**"],
+ "dependsOn": ["^build"],
+ "outputs": [".next/**", "!.next/cache/**"]
},
"lint": {
"cache": false
@@ -73,12 +38,9 @@
"cache": false
},
"dev": {
- "dependsOn": [
- "db:push",
- "db:generate"
- ],
+ "dependsOn": ["db:push"],
"cache": false,
"persistent": true
}
}
-}
\ No newline at end of file
+}