Skip to content

Database diagrams editor that allows you to visualize and design your DB with a single query.

fix(templates): add Five more templates (bouncer, cabot, feedbin, Pythonic, flarum, freescout) (#441)

Jonathan Fishnereaa067814fd9
diff --git a/src/assets/templates/bouncer-db-dark.png b/src/assets/templates/bouncer-db-dark.png
new file mode 100644
index 00000000..69e8cfaf
Binary files /dev/null and b/src/assets/templates/bouncer-db-dark.png differ
diff --git a/src/assets/templates/bouncer-db.png b/src/assets/templates/bouncer-db.png
new file mode 100644
index 00000000..9bb3dd98
Binary files /dev/null and b/src/assets/templates/bouncer-db.png differ
diff --git a/src/assets/templates/cabot-db-dark.png b/src/assets/templates/cabot-db-dark.png
new file mode 100644
index 00000000..7839af9a
Binary files /dev/null and b/src/assets/templates/cabot-db-dark.png differ
diff --git a/src/assets/templates/cabot-db.png b/src/assets/templates/cabot-db.png
new file mode 100644
index 00000000..ad3b18b6
Binary files /dev/null and b/src/assets/templates/cabot-db.png differ
diff --git a/src/assets/templates/feedbin-db-dark.png b/src/assets/templates/feedbin-db-dark.png
new file mode 100644
index 00000000..b37dd3ea
Binary files /dev/null and b/src/assets/templates/feedbin-db-dark.png differ
diff --git a/src/assets/templates/feedbin-db.png b/src/assets/templates/feedbin-db.png
new file mode 100644
index 00000000..9562b8c1
Binary files /dev/null and b/src/assets/templates/feedbin-db.png differ
diff --git a/src/assets/templates/flarum-db-dark.png b/src/assets/templates/flarum-db-dark.png
new file mode 100644
index 00000000..23a84bb6
Binary files /dev/null and b/src/assets/templates/flarum-db-dark.png differ
diff --git a/src/assets/templates/flarum-db.png b/src/assets/templates/flarum-db.png
new file mode 100644
index 00000000..e34df21f
Binary files /dev/null and b/src/assets/templates/flarum-db.png differ
diff --git a/src/assets/templates/freescout-db-dark.png b/src/assets/templates/freescout-db-dark.png
new file mode 100644
index 00000000..fa1d8f29
Binary files /dev/null and b/src/assets/templates/freescout-db-dark.png differ
diff --git a/src/assets/templates/freescout-db.png b/src/assets/templates/freescout-db.png
new file mode 100644
index 00000000..4b235813
Binary files /dev/null and b/src/assets/templates/freescout-db.png differ
diff --git a/src/assets/templates/hacker-news-db-dark.png b/src/assets/templates/hacker-news-db-dark.png
new file mode 100644
index 00000000..677f1f21
Binary files /dev/null and b/src/assets/templates/hacker-news-db-dark.png differ
diff --git a/src/assets/templates/hacker-news-db.png b/src/assets/templates/hacker-news-db.png
new file mode 100644
index 00000000..c8c7ec21
Binary files /dev/null and b/src/assets/templates/hacker-news-db.png differ
diff --git a/src/templates-data/templates-data.ts b/src/templates-data/templates-data.ts
index 80f4f85a..a3b92f21 100644
--- a/src/templates-data/templates-data.ts
+++ b/src/templates-data/templates-data.ts
@@ -25,6 +25,12 @@ import { monicaDb } from './templates/monica-db';
import { attendizeDb } from './templates/attendize-db';
import { saasPegasusDb } from './templates/saas-pegasus-db';
import { bookstackDb } from './templates/bookstack-db';
+import { bouncerDb } from './templates/bouncer-db';
+import { cabotDb } from './templates/cabot-db';
+import { feedbinDb } from './templates/feedbin-db';
+import { freescoutDb } from './templates/freescout-db';
+import { hackerNewsDb } from './templates/hacker-news-db';
+import { flarumDb } from './templates/flarum-db';
export interface Template {
slug: string;
name: string;
@@ -65,4 +71,10 @@ export const templates: Template[] = [
attendizeDb,
saasPegasusDb,
bookstackDb,
+ bouncerDb,
+ cabotDb,
+ feedbinDb,
+ freescoutDb,
+ hackerNewsDb,
+ flarumDb,
];
diff --git a/src/templates-data/templates/bouncer-db.ts b/src/templates-data/templates/bouncer-db.ts
new file mode 100644
index 00000000..7052a96e
--- /dev/null
+++ b/src/templates-data/templates/bouncer-db.ts
@@ -0,0 +1,983 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/bouncer-db.png';
+import imageDark from '@/assets/templates/bouncer-db-dark.png';
+
+export const bouncerDb: Template = {
+ slug: 'bouncer-database',
+ name: 'Bouncer',
+ shortDescription: 'Laravel Eloquent roles and abilities',
+ description:
+ 'framework-agnostic approach to managing roles and abilities for any app using Eloquent models.',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Laravel', 'PHP'],
+ featured: false,
+ url: 'https://github.com/JosephSilber/bouncer',
+ diagram: {
+ id: 'bouncer_db',
+ name: 'bouncer-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '1ecviq82pwny6e5qsftqqv85t',
+ name: 'roles',
+ schema: 'public',
+ x: 900,
+ y: 100,
+ fields: [
+ {
+ id: '6dgpy48ulwwj4la0v9qyasacn',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g8j0s94za7lstfgqpu0rjv30q',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mt51mbyv77zhhlxo6aoqtdrvb',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r0kdjfscr4qrxug9lltz8ff05',
+ name: 'level',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8pc8xntbm3ie0to59grej0hi0',
+ name: 'scope',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r1bpa7kr06tlijcc5g6ozhyi1',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fcghi02e6v8ituzvhxcqvry5s',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '5ozix6ibq6b8ifaqvpazqsd4e',
+ name: 'roles_pkey',
+ unique: true,
+ fieldIds: ['6dgpy48ulwwj4la0v9qyasacn'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vb8w5m8rtwigvffo0hza1cnq5',
+ name: 'roles_name_scope_unique',
+ unique: true,
+ fieldIds: [
+ 'g8j0s94za7lstfgqpu0rjv30q',
+ '8pc8xntbm3ie0to59grej0hi0',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'us1nbhilpzrzzdz20ee8b2yz5',
+ name: 'roles_scope_index',
+ unique: false,
+ fieldIds: ['8pc8xntbm3ie0to59grej0hi0'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2dk2y86w5uwob2walqmzpvd38',
+ name: 'permissions',
+ schema: 'public',
+ x: 500,
+ y: 100,
+ fields: [
+ {
+ id: 'dw9wefm90272eqrtdzc0kija2',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dln78b8156xss9vmtzufiyq89',
+ name: 'ability_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aybk9y71s2rkghsn2fpze24bc',
+ name: 'entity_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6jy0ziy0307k43itxl9syi36d',
+ name: 'entity_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'os6d10ohhct1tftf3ddpzplgl',
+ name: 'forbidden',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o6zy8fbod1pojyclv43hpnzyq',
+ name: 'scope',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'dmuc2cgc1fsf7ex8848yfvf51',
+ name: 'permissions_pkey',
+ unique: true,
+ fieldIds: ['dw9wefm90272eqrtdzc0kija2'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zauknvtjvcvv8s9kzmpcbidmq',
+ name: 'permissions_entity_id_entity_type_scope_index',
+ unique: false,
+ fieldIds: [
+ 'aybk9y71s2rkghsn2fpze24bc',
+ '6jy0ziy0307k43itxl9syi36d',
+ 'o6zy8fbod1pojyclv43hpnzyq',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm9h7f90dxevidzoel423z84pq',
+ name: 'permissions_ability_id_index',
+ unique: false,
+ fieldIds: ['dln78b8156xss9vmtzufiyq89'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e25jukkbmmmgtbux5mprd5c2t',
+ name: 'permissions_scope_index',
+ unique: false,
+ fieldIds: ['o6zy8fbod1pojyclv43hpnzyq'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cv6gzut9xl6vi18h1uipfszse',
+ name: 'abilities',
+ schema: 'public',
+ x: 100,
+ y: 100,
+ fields: [
+ {
+ id: '5klow3heh0h4wyysvvlolrd3k',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b5fkxgkqocrav6gdjw5u8qna9',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p9ein9lspzmrtrcgxnwcu4jtr',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o7iqp8jvekbqmufkriravzd14',
+ name: 'entity_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z6347t0nenn6l7zfckobbkwky',
+ name: 'entity_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a42we94njfh5wfe40tzshz7yy',
+ name: 'only_owned',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ot976a09yh5xjnidymxl4bvx7',
+ name: 'options',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sd6tn5b4dhrezroc5deefct22',
+ name: 'scope',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7ei2ayl775rt4anar8we426b7',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9frp78uwm48o3rehdgi8zfgwe',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '3tgypga0ix9jhfn7bed3lg3zf',
+ name: 'abilities_pkey',
+ unique: true,
+ fieldIds: ['5klow3heh0h4wyysvvlolrd3k'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd4sskhldtbn57htxwc3qobpwp',
+ name: 'abilities_scope_index',
+ unique: false,
+ fieldIds: ['sd6tn5b4dhrezroc5deefct22'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e5a0uhiuu982vjhbujvd40klh',
+ name: 'model_has_abilities',
+ schema: 'public',
+ x: 583.14307105074,
+ y: 757.4824496551473,
+ fields: [
+ {
+ id: '7wir8w7knt9jwjkc4ttsl0vn6',
+ name: 'ability_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ojer4wzhyne7fdrgw9qy47x12',
+ name: 'model_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dzak2cn4sxwh0i85qpxxwnkz9',
+ name: 'model_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's6asnly67otxpgpvsfu0u4du5',
+ name: 'scope',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'lrsg01t8cmwyaezp5uamrjoto',
+ name: 'model_has_abilities_pkey',
+ unique: true,
+ fieldIds: [
+ '7wir8w7knt9jwjkc4ttsl0vn6',
+ 'ojer4wzhyne7fdrgw9qy47x12',
+ 'dzak2cn4sxwh0i85qpxxwnkz9',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ftblbz8shvhibeyenqw2j66og',
+ name: 'tenants',
+ schema: 'public',
+ x: 900,
+ y: 600,
+ fields: [
+ {
+ id: 'rilheq75e61ukzvoovax5dww5',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hdvep6n3x5mpyize0poffmi8x',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2zvadpju6k7472brqxnjwc25y',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0a7ypts0qu8p8xdgmx973r0j2',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'k6kmwfu8adxag9bzlvk0rfihc',
+ name: 'tenants_pkey',
+ unique: true,
+ fieldIds: ['rilheq75e61ukzvoovax5dww5'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lyw5j25p9jijopmxeg9wh21wt',
+ name: 'assigned_roles',
+ schema: 'public',
+ x: 1300,
+ y: 100,
+ fields: [
+ {
+ id: 'md1pv885295zlruqjf3bc2cn4',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wg9z61qv2m6gmqulnfrozpp0f',
+ name: 'role_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mr6hxkrpypz2vdsfidw3ilvzh',
+ name: 'entity_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g7u6a5onmfgzgm7qb528koa6w',
+ name: 'entity_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gvlv2hj10lgelg9cn3366sslu',
+ name: 'restricted_to_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1devmagh0xrj16ynyxvas28b4',
+ name: 'restricted_to_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '27rz618ufyo31x2v9tqmv7bf9',
+ name: 'scope',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'v5jrok6ayblrkll3rj4opwb0v',
+ name: 'assigned_roles_entity_id_entity_type_scope_index',
+ unique: false,
+ fieldIds: [
+ 'mr6hxkrpypz2vdsfidw3ilvzh',
+ 'g7u6a5onmfgzgm7qb528koa6w',
+ '27rz618ufyo31x2v9tqmv7bf9',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ngfkhhz8p8qd1in8jfp3m33dh',
+ name: 'assigned_roles_role_id_index',
+ unique: false,
+ fieldIds: ['wg9z61qv2m6gmqulnfrozpp0f'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dmqwn02z4vxbyajgx9a85o9z4',
+ name: 'assigned_roles_scope_index',
+ unique: false,
+ fieldIds: ['27rz618ufyo31x2v9tqmv7bf9'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eanj0487n1x5r3kbf3asm1sgg',
+ name: 'assigned_roles_pkey',
+ unique: true,
+ fieldIds: ['md1pv885295zlruqjf3bc2cn4'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mcsql3yipul3bvoa8zp2z6xhm',
+ name: 'model_has_roles',
+ schema: 'public',
+ x: 1192.3806696641184,
+ y: 462.2441187492435,
+ fields: [
+ {
+ id: 'nmzyqbvbie1q6u0qdj2bx0ejk',
+ name: 'role_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dv9059syivzdb1lq2ibqhu0rf',
+ name: 'model_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tg1p3nusig09vpso36nv4cqsm',
+ name: 'model_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1ak37xnicelk5z4tpekrdhrcn',
+ name: 'scope',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '1pnpzmyhlhs32qwtcwz1po9ja',
+ name: 'model_has_roles_pkey',
+ unique: true,
+ fieldIds: [
+ 'nmzyqbvbie1q6u0qdj2bx0ejk',
+ 'dv9059syivzdb1lq2ibqhu0rf',
+ 'tg1p3nusig09vpso36nv4cqsm',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oy09nzysvqt9q38z38qdop5ky',
+ name: 'users',
+ schema: 'public',
+ x: 598.0705987070124,
+ y: 389.1233352248536,
+ fields: [
+ {
+ id: 'y13z863nrqq2jx88humld1c8l',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ki90zf8yhg9cr4qa58hoi4mhh',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8qm8ms9bgwz5hhlaq5l36hnm1',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vyso7h7t0wc441lj7zo51n5wd',
+ name: 'password',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8tmf7j5sga201ll66tufvruiu',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5l5z4tzttk5f1xff7cot9aoxl',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'nzc8rmf6y2cz9xjqnc90c4klf',
+ name: 'users_pkey',
+ unique: true,
+ fieldIds: ['y13z863nrqq2jx88humld1c8l'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rk4mh3tnvjgx2olpm5nu317g9',
+ name: 'activity_logs',
+ schema: 'public',
+ x: 225.9858576165807,
+ y: 561.8413654216401,
+ fields: [
+ {
+ id: '78k97fv3zqmnhqlygy10lq7oy',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ulzkft5ohumvi9faj4ha0r1rn',
+ name: 'loggable_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r7utet2eq51fiqks56uird3ut',
+ name: 'loggable_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '73nnegxjwq3fpccbqzxhmhgfp',
+ name: 'action',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vav8txgj5835e0w3g86be4ozi',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nopldofnpy5yhlx2qcy92j3ix',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'izfr3v00bqcrzcac5d745eztx',
+ name: 'activity_logs_pkey',
+ unique: true,
+ fieldIds: ['78k97fv3zqmnhqlygy10lq7oy'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: 'ikg1ovyjpye234c8zfhumhr6h',
+ name: 'permissions_ability_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '2dk2y86w5uwob2walqmzpvd38',
+ targetTableId: 'cv6gzut9xl6vi18h1uipfszse',
+ sourceFieldId: 'dln78b8156xss9vmtzufiyq89',
+ targetFieldId: '5klow3heh0h4wyysvvlolrd3k',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wkembgjtz8w9fau09ngjlxa8v',
+ name: 'assigned_roles_role_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'lyw5j25p9jijopmxeg9wh21wt',
+ targetTableId: '1ecviq82pwny6e5qsftqqv85t',
+ sourceFieldId: 'wg9z61qv2m6gmqulnfrozpp0f',
+ targetFieldId: '6dgpy48ulwwj4la0v9qyasacn',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/cabot-db.ts b/src/templates-data/templates/cabot-db.ts
new file mode 100644
index 00000000..71f23c80
--- /dev/null
+++ b/src/templates-data/templates/cabot-db.ts
@@ -0,0 +1,2891 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/cabot-db.png';
+import imageDark from '@/assets/templates/cabot-db-dark.png';
+
+export const cabotDb: Template = {
+ slug: 'cabot-database',
+ name: 'Cabot',
+ shortDescription: 'Monitoring and alerts service',
+ description:
+ 'Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty.',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Python', 'Django'],
+ featured: false,
+ url: 'https://github.com/arachnys/cabot',
+ diagram: {
+ id: 'cabot_db',
+ name: 'cabot-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '289m0pav8pj7g7tfvu4uf1p6n',
+ name: 'instance_status_snapshot',
+ schema: 'public',
+ x: 234.69806809737793,
+ y: 1485.1476659188327,
+ fields: [
+ {
+ id: 'ffg7cgh3d4tzcfkdxpbiwgvv9',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2r2cnnbeqhyux66sg5bkny39s',
+ name: 'time',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6wl4lm63u9hz6we757ghokj3g',
+ name: 'num_checks_active',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qaot6vldsaanl7ll3es8sumb0',
+ name: 'num_checks_passing',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kdbblg6j4dq54zqyyznjm8jp5',
+ name: 'num_checks_failing',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '48bg1kecwo2bfw73088ff1iv4',
+ name: 'overall_status',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2oxndze8gbufgfq1ry6tb2swy',
+ name: 'did_send_alert',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v8s1vno4mwfm7ihefn0tyk64i',
+ name: 'instance_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'miwdf3bmkda84ne3cr5pcry4o',
+ name: 'instance_status_snapshot_pkey',
+ unique: true,
+ fieldIds: ['ffg7cgh3d4tzcfkdxpbiwgvv9'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2g5a37ob099bhsuieq9ab929o',
+ name: 'service_status_check',
+ schema: 'public',
+ x: 1511.091270347399,
+ y: 1442.6321096634754,
+ fields: [
+ {
+ id: 'qn00uqdnd8ogrw364tidyjbxk',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd01n6izgorbu9uvstne0y3u1x',
+ name: 'service_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dth8p4sc3de0ejikckptooqc9',
+ name: 'status_check_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'hj962r7via6yzdtdwd2tf81s8',
+ name: 'service_status_check_pkey',
+ unique: true,
+ fieldIds: ['qn00uqdnd8ogrw364tidyjbxk'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2ghbyz6qz80jg3clggsq2fwy9',
+ name: 'instance_status_check',
+ schema: 'public',
+ x: -288.9087296526011,
+ y: 559.619407771256,
+ fields: [
+ {
+ id: 'z0qaexmm21uen0z5ddqimv12n',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7titj5v9ih6rgj9gwy0suaojd',
+ name: 'status_check_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'apcysjrim5wq83p8vx0tsgwxh',
+ name: 'instance_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 't8hwh3n0mhe755q6oncpjyywz',
+ name: 'instance_status_check_pkey',
+ unique: true,
+ fieldIds: ['z0qaexmm21uen0z5ddqimv12n'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'acyynxu05uajz4kegsv252ph9',
+ name: 'alert_plugin_service',
+ schema: 'public',
+ x: 1311.091270347399,
+ y: 1009.619407771256,
+ fields: [
+ {
+ id: 'wwhwjf7iizrzhghyrbqex4z2w',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g3cs00ub96ophp4zk2wxy8wdx',
+ name: 'alert_plugin_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j3i65nsbpfp9u45tmg4jmp6pc',
+ name: 'service_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'fiy084zejs1477ws60osptkgx',
+ name: 'alert_plugin_service_pkey',
+ unique: true,
+ fieldIds: ['wwhwjf7iizrzhghyrbqex4z2w'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'adepxg04z9rk1yxale4m0pu8z',
+ name: 'alert_plugin_instance',
+ schema: 'public',
+ x: 511.0912703473989,
+ y: 1009.619407771256,
+ fields: [
+ {
+ id: 'ie9mcbcvvexv52jw6vs050doh',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uby6hrs70gtws67wwthlaz1if',
+ name: 'alert_plugin_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ojgqs3fbjexpre4yazvztuals',
+ name: 'instance_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'el9xhcx9sd6b50utal5kyzv4f',
+ name: 'alert_plugin_instance_pkey',
+ unique: true,
+ fieldIds: ['ie9mcbcvvexv52jw6vs050doh'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b26phz0szmrtpu3xukpp0afcv',
+ name: 'user',
+ schema: 'public',
+ x: 2511.0912703473987,
+ y: 1009.619407771256,
+ fields: [
+ {
+ id: '8apkn00up0ucg3r4dwcmu8plg',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vg4c0zy1k30w9apkujb13frbz',
+ name: 'username',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9fh7zixbq92yu42te3ckkcn16',
+ name: 'first_name',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1rjf68w2fmkx7ksny0dbtgukj',
+ name: 'last_name',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'it5cv2y8r5le5s2la1bskrtz2',
+ name: 'email',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd1nbxak6lk5dj5yfl13s8lngp',
+ name: 'password',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's24ogodllxi4ob2nwvcf32o1z',
+ name: 'is_staff',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jwzm8nxzuvcg5g724mwwmc94q',
+ name: 'is_active',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qlkk5aenwu5lmfff4rx8k8b85',
+ name: 'is_superuser',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5pzb6ei7suoxmvytkvuu9a9rf',
+ name: 'last_login',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uzu0gf6jmv7ng9igvkyvnnd6g',
+ name: 'date_joined',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '6a5k6hi45dmarwn2rnttwyeav',
+ name: 'user_pkey',
+ unique: true,
+ fieldIds: ['8apkn00up0ucg3r4dwcmu8plg'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dkxb5j0xwpxd7m8sld626yikf',
+ name: 'icmp_status_check',
+ schema: 'public',
+ x: 100.00000000000003,
+ y: 600,
+ fields: [
+ {
+ id: 'soe2o9gdqveztta1wmbjmr59t',
+ name: 'statuscheck_ptr_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gp4pc5wz39hav0p9vgijnuoa6',
+ name: 'endpoint',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c9nlkxqlogouurre9599rfj87',
+ name: 'timeout',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'pxbg44dz2hqs7hhpq8rt9xtfa',
+ name: 'icmp_status_check_pkey',
+ unique: true,
+ fieldIds: ['soe2o9gdqveztta1wmbjmr59t'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'erpxfyf9b0nn0b8ruuezd7nnt',
+ name: 'alert_plugin_user_data',
+ schema: 'public',
+ x: 2511.0912703473987,
+ y: 559.6194077712561,
+ fields: [
+ {
+ id: 'v5hdctjhcetf31b0itn7nky1p',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q9atbq7csij46qs7snwbmw677',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ssmv81aewvc261ud8a72atacj',
+ name: 'polymorphic_ctype',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o0c93op0gwm4piux9j5ucdnuy',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'wuzbqly6npzacpketosqizyan',
+ name: 'alert_plugin_user_data_title_user_id_unique',
+ unique: true,
+ fieldIds: [
+ 'q9atbq7csij46qs7snwbmw677',
+ 'o0c93op0gwm4piux9j5ucdnuy',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2tva3wbf9mzr8ex1l5qv6hnr1',
+ name: 'alert_plugin_user_data_pkey',
+ unique: true,
+ fieldIds: ['v5hdctjhcetf31b0itn7nky1p'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gwgd7y6e3gvkwlxcnbzvorgh1',
+ name: 'jenkins_config',
+ schema: 'public',
+ x: 99.99999999999991,
+ y: -349.99999999999994,
+ fields: [
+ {
+ id: 'b14pj3k6c2e6al6vki0b1elca',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iaw1nst78z6yeba21hcffzfdn',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bu38eh2hip801hd13upjw2fi3',
+ name: 'jenkins_api',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q5r6911ccvfoklejpl8wu6fom',
+ name: 'jenkins_user',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '77apnla5xb3sk7mqfx9xm8jlg',
+ name: 'jenkins_pass',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '11s226ymyodkta4pefovgbwhq',
+ name: 'jenkins_config_pkey',
+ unique: true,
+ fieldIds: ['b14pj3k6c2e6al6vki0b1elca'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h5qj5g52zspl2tszk24110nev',
+ name: 'service_user',
+ schema: 'public',
+ x: 2711.0912703473987,
+ y: 1442.6321096634751,
+ fields: [
+ {
+ id: 'onnmsci24vqisx39msw4labp4',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'stzg5a3ltgiybqhyu68vzgkp3',
+ name: 'service_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nvatz1cfhk8kopcpeahp1zkh5',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '2a7u7tjqf7jmwo7s35vtc7rsi',
+ name: 'service_user_pkey',
+ unique: true,
+ fieldIds: ['onnmsci24vqisx39msw4labp4'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hmw4ezzrg10e6080h4p54qi4m',
+ name: 'status_check',
+ schema: 'public',
+ x: 100,
+ y: 100,
+ fields: [
+ {
+ id: '7zypig7cu0jo1kufq0nu9g9xe',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't8r1t9xetnci09exb2pqibbgu',
+ name: 'name',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f7zah30nbrutvnt2jzwq9f1ts',
+ name: 'active',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rgpugt8b7ojgtm47kuqom4zfy',
+ name: 'importance',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0wthdjk9www61bra07lognmo7',
+ name: 'frequency',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ze1t6xwmzgpby0we8v9u0rfw5',
+ name: 'debounce',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kfrnei2y38udimsjconza7nz8',
+ name: 'calculated_status',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4uq736kai6k8i3mvcxw7wxd2b',
+ name: 'last_run',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'grhptktoweczo1r30u2tmdy3z',
+ name: 'cached_health',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ixih12xwofuj86ydhwrscpcu4',
+ name: 'metric',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4i0kx5z3sz2p9vrygcb8dbfun',
+ name: 'check_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5yonoa5bok9g4xsl1bh6i66xa',
+ name: 'value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dz0rbo912655vei5dbl7vyjsy',
+ name: 'expected_num_hosts',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '56zqi49jquj3r7158kvfxq32l',
+ name: 'allowed_num_failures',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'veascaebxv35c0ncl5u6kojce',
+ name: 'endpoint',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6udbu1ikbhp6yvr1baps3xxrl',
+ name: 'username',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vo1pk8o993t7w1s98zify6ym8',
+ name: 'password',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm3otp201bzx8ojt2xfs732emf',
+ name: 'text_match',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j50ontr5ra84xgmujduce0sqq',
+ name: 'status_code',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'saydfqolyrftrdpsk6w48bjd6',
+ name: 'timeout',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3021drapgyviauqziuyu1qrca',
+ name: 'verify_ssl_certificate',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's4zd8fm5cy70wel5oktf3t1xf',
+ name: 'max_queued_build_time',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0fkna6qy8yr3zbfr8rr44dogu',
+ name: 'created_by',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'kdzsbpwp9trxg865flb1tfm8w',
+ name: 'status_check_pkey',
+ unique: true,
+ fieldIds: ['7zypig7cu0jo1kufq0nu9g9xe'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ihd99d2agwucv4szocruel4il',
+ name: 'jenkins_status_check',
+ schema: 'public',
+ x: -300,
+ y: 100.00000000000006,
+ fields: [
+ {
+ id: 'o5m53rxstoj07ot5lxkgki8ur',
+ name: 'statuscheck_ptr_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3smw558f4t2azn6fz3ixhrdjt',
+ name: 'jenkins_config_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'k2n9qz4ktuoj8jer8lb7g8rtj',
+ name: 'jenkins_status_check_pkey',
+ unique: true,
+ fieldIds: ['o5m53rxstoj07ot5lxkgki8ur'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k9nq8pb1s0vtvi676huizdeac',
+ name: 'instance_service',
+ schema: 'public',
+ x: 1911.091270347399,
+ y: 1442.6321096634751,
+ fields: [
+ {
+ id: '8ly2x5z0ygws9rz47xxmaztwt',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ho6gwfsp2h9o402atokdi14bn',
+ name: 'instance_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '39rolyh0m57c3caizwnod8j1n',
+ name: 'service_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'w7ujcightouup2u3byfesv91f',
+ name: 'instance_service_pkey',
+ unique: true,
+ fieldIds: ['8ly2x5z0ygws9rz47xxmaztwt'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm2n2pgaz6i329c06oreesemhj',
+ name: 'instance_users',
+ schema: 'public',
+ x: 2911.0912703473987,
+ y: 1009.619407771256,
+ fields: [
+ {
+ id: '2bdf3hpo6grtec53tnogewu9y',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uf8obr3vrnue7ogg8xyuly3li',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dnlp6rac6kxsrqat8sg1fflmo',
+ name: 'instance_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '2ianvdxoi2871kohtyexct47l',
+ name: 'instance_users_pkey',
+ unique: true,
+ fieldIds: ['2bdf3hpo6grtec53tnogewu9y'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ogwixfufu9zxpakbxxqyb3viq',
+ name: 'instance',
+ schema: 'public',
+ x: 111.09127034739893,
+ y: 1009.619407771256,
+ fields: [
+ {
+ id: '7w7zi9jfsf8ttxkw2hgzppwkf',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ro15p478wm4qqsqmbdqzrc1xg',
+ name: 'name',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hgfhi0bi1n6i43mjtrlm5puvr',
+ name: 'alerts_enabled',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ngkxp7sabuv0aq2z3x5o6t2xl',
+ name: 'last_alert_sent',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ucoghjrrs2g8sk0pclvfk3wmb',
+ name: 'email_alert',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5oa2hyprnbj3ni5cjh0b88gaa',
+ name: 'hipchat_alert',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fmng66ujr96g0g3c0t90343xp',
+ name: 'sms_alert',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h8qniszk0jrx73emrqgvj9ds7',
+ name: 'telephone_alert',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5negnbzs245jss752ies2r998',
+ name: 'overall_status',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i4kls5hvmkv5eao8t7zgycqj9',
+ name: 'old_overall_status',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yvcrgrplm1s6wpkwcblbjsrml',
+ name: 'hackpad_id',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fons8opzz4zlrw3ubaayeodhy',
+ name: 'runbook_link',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7u8ook85e9pwrxn63abkclgf6',
+ name: 'address',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'daqmlme5pquyz54xu5d42chz7',
+ name: 'alerts',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'jqhx4lpeq6jc24zngk1x7k3j7',
+ name: 'instance_pkey',
+ unique: true,
+ fieldIds: ['7w7zi9jfsf8ttxkw2hgzppwkf'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ovnwer9a3ie8kfv1h9rfdp278',
+ name: 'graphite_status_check',
+ schema: 'public',
+ x: 500,
+ y: 100,
+ fields: [
+ {
+ id: '96mgizk5xa787xkpensbr2dye',
+ name: 'statuscheck_ptr_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hk1r2copv8uara4xworqe40ue',
+ name: 'metric',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xdisxsc299xbvcvkl49c8kx60',
+ name: 'check_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ts79mqj9x7dysm7gfozbvc3p3',
+ name: 'value',
+ type: {
+ id: 'double_precision',
+ name: 'double precision',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yxq88l5umx54lioifunhzkrm2',
+ name: 'expected_num_hosts',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qpoytl6n1mo0r57n12c2neabd',
+ name: 'allowed_num_failures',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '052g61lnrh4y1kke1g1gdyqzo',
+ name: 'graphite_status_check_pkey',
+ unique: true,
+ fieldIds: ['96mgizk5xa787xkpensbr2dye'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p16q7p1q8j9p3ud529lwtrss7',
+ name: 'alert_acknowledgement',
+ schema: 'public',
+ x: 2111.0912703473987,
+ y: 1009.619407771256,
+ fields: [
+ {
+ id: '6f69ubh5rpdk9entbq6782hkz',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wnjd1fdb127pr56zx3keicr6o',
+ name: 'time',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ngzreixxzgzn3rb6uvinoq6lj',
+ name: 'cancelled_time',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j4tmnkco7uhsnpfcfwzz4crbg',
+ name: 'cancelled_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rc55akr0tj6sf7jubuo5p70l7',
+ name: 'service_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3y3lumb16v7asidckv27lqzhc',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'qg4aoy1d9f4rcfqwgdj1mm9rl',
+ name: 'alert_acknowledgement_pkey',
+ unique: true,
+ fieldIds: ['6f69ubh5rpdk9entbq6782hkz'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qb1s1uv828fkercy98l9aqm0n',
+ name: 'shift',
+ schema: 'public',
+ x: 2311.0912703473987,
+ y: 1442.6321096634754,
+ fields: [
+ {
+ id: 'fwx7pk5a5g9zhl79qrrm70mfv',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ab7aymxm4t3mdxmxganiu5wsu',
+ name: 'start',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8m09odhicfxjjwb5y2iclene4',
+ name: 'end',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nnnvjd1g0zforflqjc69q3c6p',
+ name: 'uid',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kdqd46xfpkixpwzizsp8dxiq1',
+ name: 'last_modified',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mq2vpnevaznggtq6jawjzs631',
+ name: 'deleted',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ojz1lp63052z0xhorqorl9xtv',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'kv2nti4g09htdktv58yjhf622',
+ name: 'shift_pkey',
+ unique: true,
+ fieldIds: ['fwx7pk5a5g9zhl79qrrm70mfv'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r99f8hhi0dlvoyj64vweu0ba6',
+ name: 'status_check_result',
+ schema: 'public',
+ x: -288.9087296526012,
+ y: -359.61940777125585,
+ fields: [
+ {
+ id: '1xgnw2ml9ho5ebak2tjueljef',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pf92vncoeowbghzbpsdtxe1tm',
+ name: 'time',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lfj6izi97abq2mooaz6on5xv9',
+ name: 'time_complete',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4yrlcmqrlao4xhwf8s1dhwjvj',
+ name: 'raw_data',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8ccszwn2a2xyffyart9480f2c',
+ name: 'succeeded',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lu49y640z7hrnftkw51lh14tj',
+ name: 'error',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9hy1jyx5z1ozyrem7sdxm8o74',
+ name: 'job_number',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bevyt1y4xxhoojpq3sw8f7sty',
+ name: 'status_check_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q69vdd82hemmt8dezlvl628sw',
+ name: 'consecutive_failures',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'h0d5vtzkg3hbxs4e6e64pb5g0',
+ name: 'status_check_result_status_check_id_id_index',
+ unique: false,
+ fieldIds: [
+ 'bevyt1y4xxhoojpq3sw8f7sty',
+ '1xgnw2ml9ho5ebak2tjueljef',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i1ozz684afv7jieuslvtac4ua',
+ name: 'status_check_result_status_check_id_time_complete_index',
+ unique: false,
+ fieldIds: [
+ 'bevyt1y4xxhoojpq3sw8f7sty',
+ 'lfj6izi97abq2mooaz6on5xv9',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o9y40kx1cswrsbvpnqcjbjq3f',
+ name: 'status_check_result_pkey',
+ unique: true,
+ fieldIds: ['1xgnw2ml9ho5ebak2tjueljef'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's5btmt2a3k5fbn5nivbotb63y',
+ name: 'alert_plugin',
+ schema: 'public',
+ x: 911.0912703473989,
+ y: 1009.619407771256,
+ fields: [
+ {
+ id: '54ypudmdos0gh9zt45v4dlg44',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nrlgbn2rc22iiqsylycpz3hqz',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fn4bepjnta313q6oirc0d49o7',
+ name: 'enabled',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '07brcfef8p9z45umqa31qd16m',
+ name: 'polumorphic_ctype',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'twy9qeflbgm3puilj4vplc5ze',
+ name: 'alert_plugin_pkey',
+ unique: true,
+ fieldIds: ['54ypudmdos0gh9zt45v4dlg44'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '6dxfk6azl4bkvffup18er26pb',
+ name: 'alert_plugin_title_unique',
+ unique: true,
+ fieldIds: ['nrlgbn2rc22iiqsylycpz3hqz'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'snty6zszcj35lqom3xr5l1w9l',
+ name: 'service',
+ schema: 'public',
+ x: 1711.091270347399,
+ y: 1009.619407771256,
+ fields: [
+ {
+ id: 'nlm46bzo6jaaq10dvqgmxkugb',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tb1wf1z7p189oaao5xq4mxjay',
+ name: 'name',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a7f3eyybm52i55ir3xmeyxknf',
+ name: 'alerts_enabled',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qo29qqqg86f2q4pdsllczrwlw',
+ name: 'last_alert_sent',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'thubom65c0m2fv73h54lpqpuc',
+ name: 'email_alert',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5sqvqysig5h7s4r2vx6bajhg6',
+ name: 'hipchat_alert',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dhk00492pbzbaps1srv8bsa3f',
+ name: 'sms_alert',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ainy01vnu7zggetwrr2co1qpg',
+ name: 'telephone_alert',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cqbyoq7zcnxt9k7npyy1xr93f',
+ name: 'overall_status',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'funagoza5ak3mx7f6ayhh9ga5',
+ name: 'old_overall_status',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1cmwrcod33fvr90uhntporj0a',
+ name: 'hackpad_id',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '55nlhf43trkj5oao5q8rr7jps',
+ name: 'runbook_link',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cj93y2b3xzsfrz7jao9j14174',
+ name: 'url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8x3spwrmv8jess8bkdx7ynkkx',
+ name: 'alerts',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ebr6xvkab9wtd5a28jzpyzjvf',
+ name: 'instances',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ge7qik8ahl3n8sk7a8has1en5',
+ name: 'is_public',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'v1go1054dzsueo5dj1n0kay97',
+ name: 'service_pkey',
+ unique: true,
+ fieldIds: ['nlm46bzo6jaaq10dvqgmxkugb'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sw5x2x57xh3f7pbdas1ngqcl2',
+ name: 'user_profile',
+ schema: 'public',
+ x: 2111.0912703473987,
+ y: 559.6194077712561,
+ fields: [
+ {
+ id: 'aje7zj82cpxn68d3yrz7kidm4',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'akad3j3w1intr80wji4mr27m3',
+ name: 'mobile_number',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gogrb86l7xdnmjskjpll9361r',
+ name: 'hipchat_alias',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '27rbdru8cv1izg8u9igxozbh9',
+ name: 'fallback_alert_user',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'di3phup16zvmxc368a2g7r01k',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'n0055y9i8biltiu789b166njk',
+ name: 'user_profile_pkey',
+ unique: true,
+ fieldIds: ['aje7zj82cpxn68d3yrz7kidm4'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xgbea63bte2hpv60z8pldw43a',
+ name: 'service_status_snapshot',
+ schema: 'public',
+ x: 1311.091270347399,
+ y: 559.6194077712561,
+ fields: [
+ {
+ id: 'jxpfsv0jsj00ft5ah03rzzuzr',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eai0ljiapn6buhwrjb9krw9g5',
+ name: 'time',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mph3ml501y0ws89772fvgnhx2',
+ name: 'num_checks_active',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3fg16dd4zumip7acn7kmehxnj',
+ name: 'num_checks_passing',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qqdvjimxj1jzpaugsj7dphz6i',
+ name: 'num_checks_failing',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0jhtzfcu43sccn2vt26iyk5x1',
+ name: 'overall_status',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y7yokk40m31ezrmr4xour0azq',
+ name: 'did_send_alert',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6yhlh8spgs0q7bbmqhoyntzrx',
+ name: 'service_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '0ducwrg7ntryolsbehc17kwmf',
+ name: 'service_status_snapshot_pkey',
+ unique: true,
+ fieldIds: ['jxpfsv0jsj00ft5ah03rzzuzr'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yimq43j0fcwgehlt8rzbx7fkp',
+ name: 'http_status_check',
+ schema: 'public',
+ x: 488.90872965260115,
+ y: 559.6194077712559,
+ fields: [
+ {
+ id: 'sy3351o5ihnwtwj37wkctcr05',
+ name: 'statuscheck_ptr_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '93f9sh7nwyeg9kr1la1fivjxl',
+ name: 'endpoint',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd6wdbnshnibzupitcj2c78nn2',
+ name: 'username',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uhly8fn4dm48irbas9vqvv42s',
+ name: 'password',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ywxd4nu0yy0ljz17je8fwokyu',
+ name: 'text_match',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f58dg55vj0qkp1fnbtpkrji0v',
+ name: 'status_code',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm7m78h658plv0qo0zzgorfcpw',
+ name: 'timeout',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kalcno5ni4ecna2c99jjta04j',
+ name: 'verify_ssl_certificate',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'f8kisxgmammk5rsqtbxw0oabi',
+ name: 'http_status_check_pkey',
+ unique: true,
+ fieldIds: ['sy3351o5ihnwtwj37wkctcr05'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '0r3ir958u6wypga8bzeub902r',
+ name: 'instance_status_snapshot_instance_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '289m0pav8pj7g7tfvu4uf1p6n',
+ targetTableId: 'ogwixfufu9zxpakbxxqyb3viq',
+ sourceFieldId: 'v8s1vno4mwfm7ihefn0tyk64i',
+ targetFieldId: '7w7zi9jfsf8ttxkw2hgzppwkf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '0vumrls4g0p90vt5uajxh7tf1',
+ name: 'service_status_check_service_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '2g5a37ob099bhsuieq9ab929o',
+ targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
+ sourceFieldId: 'd01n6izgorbu9uvstne0y3u1x',
+ targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '1bsdknrof46s6pz0snfzresvq',
+ name: 'status_check_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'hmw4ezzrg10e6080h4p54qi4m',
+ targetTableId: 'ihd99d2agwucv4szocruel4il',
+ sourceFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
+ targetFieldId: 'o5m53rxstoj07ot5lxkgki8ur',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2j1xxy9ddm7h5xopb2cjhgr62',
+ name: 'alert_plugin_instance_instance_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'adepxg04z9rk1yxale4m0pu8z',
+ targetTableId: 'ogwixfufu9zxpakbxxqyb3viq',
+ sourceFieldId: 'ojgqs3fbjexpre4yazvztuals',
+ targetFieldId: '7w7zi9jfsf8ttxkw2hgzppwkf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2uya9mus02ppn6jt2zuyvz5zy',
+ name: 'alert_plugin_service_service_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'acyynxu05uajz4kegsv252ph9',
+ targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
+ sourceFieldId: 'j3i65nsbpfp9u45tmg4jmp6pc',
+ targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '33xy4g6uhclcdoe8xc68vmw19',
+ name: 'instance_service_instance_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'k9nq8pb1s0vtvi676huizdeac',
+ targetTableId: 'ogwixfufu9zxpakbxxqyb3viq',
+ sourceFieldId: 'ho6gwfsp2h9o402atokdi14bn',
+ targetFieldId: '7w7zi9jfsf8ttxkw2hgzppwkf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '3td9qy14l8mb5z33lrrlj5dcl',
+ name: 'service_user_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'h5qj5g52zspl2tszk24110nev',
+ targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
+ sourceFieldId: 'nvatz1cfhk8kopcpeahp1zkh5',
+ targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '402hqz0da264q3ikobnvjrka3',
+ name: 'alert_acknowledgement_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'p16q7p1q8j9p3ud529lwtrss7',
+ targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
+ sourceFieldId: '3y3lumb16v7asidckv27lqzhc',
+ targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '4nv6halyuy5ez47d10at5o3v0',
+ name: 'alert_plugin_service_alert_plugin_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'acyynxu05uajz4kegsv252ph9',
+ targetTableId: 's5btmt2a3k5fbn5nivbotb63y',
+ sourceFieldId: 'g3cs00ub96ophp4zk2wxy8wdx',
+ targetFieldId: '54ypudmdos0gh9zt45v4dlg44',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '55dy81mrmr2tenctrnnf67a9n',
+ name: 'user_profile_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'sw5x2x57xh3f7pbdas1ngqcl2',
+ targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
+ sourceFieldId: 'di3phup16zvmxc368a2g7r01k',
+ targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '5nc8bc22ijhzjz52ofnjrb6u0',
+ name: 'shift_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'qb1s1uv828fkercy98l9aqm0n',
+ targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
+ sourceFieldId: 'ojz1lp63052z0xhorqorl9xtv',
+ targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '6f5gn0q8n9vvpmyox0lymg87h',
+ name: 'jenkins_status_check_jenkins_config_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ihd99d2agwucv4szocruel4il',
+ targetTableId: 'gwgd7y6e3gvkwlxcnbzvorgh1',
+ sourceFieldId: '3smw558f4t2azn6fz3ixhrdjt',
+ targetFieldId: 'b14pj3k6c2e6al6vki0b1elca',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '7ccy5968fnta1ykrc3ad0kbmv',
+ name: 'service_user_service_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'h5qj5g52zspl2tszk24110nev',
+ targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
+ sourceFieldId: 'stzg5a3ltgiybqhyu68vzgkp3',
+ targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '7y6qzxa0kwpbuxyxj6stp4cdn',
+ name: 'service_status_check_status_check_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '2g5a37ob099bhsuieq9ab929o',
+ targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
+ sourceFieldId: 'dth8p4sc3de0ejikckptooqc9',
+ targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eunzidbn3wbtm3w8eila85lpl',
+ name: 'alert_plugin_instance_alert_plugin_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'adepxg04z9rk1yxale4m0pu8z',
+ targetTableId: 's5btmt2a3k5fbn5nivbotb63y',
+ sourceFieldId: 'uby6hrs70gtws67wwthlaz1if',
+ targetFieldId: '54ypudmdos0gh9zt45v4dlg44',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fwrhr33pcsowp8vl7vnj3rfd4',
+ name: 'graphite_status_check_statuscheck_ptr_id_fk',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ovnwer9a3ie8kfv1h9rfdp278',
+ targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
+ sourceFieldId: '96mgizk5xa787xkpensbr2dye',
+ targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ilq1g6xxcrqs9t3wrssxb6oeo',
+ name: 'alert_acknowledgement_service_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'p16q7p1q8j9p3ud529lwtrss7',
+ targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
+ sourceFieldId: 'rc55akr0tj6sf7jubuo5p70l7',
+ targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ml97mydp58p2gp99cnvt2fs3x',
+ name: 'alert_acknowledgement_cancelled_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'p16q7p1q8j9p3ud529lwtrss7',
+ targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
+ sourceFieldId: 'j4tmnkco7uhsnpfcfwzz4crbg',
+ targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mp7sd2vr6kviku8je4v0gitit',
+ name: 'instance_service_service_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'k9nq8pb1s0vtvi676huizdeac',
+ targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
+ sourceFieldId: '39rolyh0m57c3caizwnod8j1n',
+ targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nd86cd2ul5mafn30l401mbmu5',
+ name: 'icmp_status_check_statuscheck_ptr_id_fk',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'dkxb5j0xwpxd7m8sld626yikf',
+ targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
+ sourceFieldId: 'soe2o9gdqveztta1wmbjmr59t',
+ targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nynmn81ctitgf5ev89vrviub5',
+ name: 'instance_users_instance_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'm2n2pgaz6i329c06oreesemhj',
+ targetTableId: 'ogwixfufu9zxpakbxxqyb3viq',
+ sourceFieldId: 'dnlp6rac6kxsrqat8sg1fflmo',
+ targetFieldId: '7w7zi9jfsf8ttxkw2hgzppwkf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o3soaflcj89drxef42p2ad9pl',
+ name: 'instance_status_check_instance_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '2ghbyz6qz80jg3clggsq2fwy9',
+ targetTableId: 'ogwixfufu9zxpakbxxqyb3viq',
+ sourceFieldId: 'apcysjrim5wq83p8vx0tsgwxh',
+ targetFieldId: '7w7zi9jfsf8ttxkw2hgzppwkf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q6nu6q2dzadpyy2bh3ic4b5zw',
+ name: 'status_check_result_status_check_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'r99f8hhi0dlvoyj64vweu0ba6',
+ targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
+ sourceFieldId: 'bevyt1y4xxhoojpq3sw8f7sty',
+ targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'quc8uhh3mbic9y1bvre6ocmhd',
+ name: 'alert_plugin_user_data_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'erpxfyf9b0nn0b8ruuezd7nnt',
+ targetTableId: 'sw5x2x57xh3f7pbdas1ngqcl2',
+ sourceFieldId: 'o0c93op0gwm4piux9j5ucdnuy',
+ targetFieldId: 'aje7zj82cpxn68d3yrz7kidm4',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r7okcqvz32jta8p2t2r5lpk96',
+ name: 'service_status_snapshot_service_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'xgbea63bte2hpv60z8pldw43a',
+ targetTableId: 'snty6zszcj35lqom3xr5l1w9l',
+ sourceFieldId: '6yhlh8spgs0q7bbmqhoyntzrx',
+ targetFieldId: 'nlm46bzo6jaaq10dvqgmxkugb',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rb1mlvgujn3kp0k4klvzk670p',
+ name: 'http_status_check_statuscheck_ptr_id_fk',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yimq43j0fcwgehlt8rzbx7fkp',
+ targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
+ sourceFieldId: 'sy3351o5ihnwtwj37wkctcr05',
+ targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sq3l1tareyohngl38qdgs4dn3',
+ name: 'status_check_created_by_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'hmw4ezzrg10e6080h4p54qi4m',
+ targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
+ sourceFieldId: '0fkna6qy8yr3zbfr8rr44dogu',
+ targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'upd17z1nugn0d1xmudd5za3jy',
+ name: 'instance_users_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'm2n2pgaz6i329c06oreesemhj',
+ targetTableId: 'b26phz0szmrtpu3xukpp0afcv',
+ sourceFieldId: 'uf8obr3vrnue7ogg8xyuly3li',
+ targetFieldId: '8apkn00up0ucg3r4dwcmu8plg',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x3fnbhrr6ro547sjw0zaghaow',
+ name: 'instance_status_check_status_check_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '2ghbyz6qz80jg3clggsq2fwy9',
+ targetTableId: 'hmw4ezzrg10e6080h4p54qi4m',
+ sourceFieldId: '7titj5v9ih6rgj9gwy0suaojd',
+ targetFieldId: '7zypig7cu0jo1kufq0nu9g9xe',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/feedbin-db.ts b/src/templates-data/templates/feedbin-db.ts
new file mode 100644
index 00000000..90e54142
--- /dev/null
+++ b/src/templates-data/templates/feedbin-db.ts
@@ -0,0 +1,4882 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/feedbin-db.png';
+import imageDark from '@/assets/templates/feedbin-db-dark.png';
+
+export const feedbinDb: Template = {
+ slug: 'feedbin-database',
+ name: 'Feedbin',
+ shortDescription: 'Simple RSS reader',
+ description:
+ 'Feedbin is a simple, open source, and privacy-respecting RSS reader.',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Rails'],
+ featured: false,
+ url: 'https://github.com/feedbin/feedbin',
+ diagram: {
+ id: 'feedbin_db',
+ name: 'feedbin-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '0sv0phs3rhwela5nxn320bga4',
+ name: 'subscriptions',
+ schema: 'public',
+ x: -356.98596959221186,
+ y: 1601.619274724236,
+ fields: [
+ {
+ id: 'cgck58okn4f8slc24n6x21zae',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8ast9v2zh25x2r5bjnpb68y8t',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '77m2goirttqpem94orbf367wh',
+ name: 'feed_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm86xpscxydbe3or4ye7c6yvfq',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lr44qcs7ak3kpl841pc5phbr8',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bk7rfergooz7pgdl48rj2znp5',
+ name: 'title',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zwaus7wqjyemzynk6v2n9fs95',
+ name: 'view_inline',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a5y577zd3km9zrcb06uclju0c',
+ name: 'active',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'meqz09lbdkaxrwzmj3m04lj2u',
+ name: 'push',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '11y4l7ako0vtcquehuv0lv9b6',
+ name: 'show_updates',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '88cxmh3jo4hmbvu7e5ttp3uxd',
+ name: 'muted',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fegrs0a2hxighoip4theyoukn',
+ name: 'show_retweets',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8eu3ndbfl55c13lqaf3fze5d6',
+ name: 'media_only',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iy97qhoe0roj5708p6r8gcmou',
+ name: 'kind',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '95j7ulqyyjq6o5hxn1ebqb0c1',
+ name: 'view_mode',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '9oovjabvy6s94hrmywjwmuthh',
+ name: 'subscriptions_feed_id_active_muted_show_updates_index',
+ unique: false,
+ fieldIds: [
+ '77m2goirttqpem94orbf367wh',
+ 'a5y577zd3km9zrcb06uclju0c',
+ '88cxmh3jo4hmbvu7e5ttp3uxd',
+ '11y4l7ako0vtcquehuv0lv9b6',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '98st40u0w6p7qvnlxkk4jw4i8',
+ name: 'subscriptions_user_id_index',
+ unique: false,
+ fieldIds: ['8ast9v2zh25x2r5bjnpb68y8t'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ubttnzjinwb1kkh7d0zacf4yc',
+ name: 'subscriptions_media_only_index',
+ unique: false,
+ fieldIds: ['8eu3ndbfl55c13lqaf3fze5d6'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bd9h6awpomv74fbuf02lwry5x',
+ name: 'subscriptions_show_retweets_index',
+ unique: false,
+ fieldIds: ['fegrs0a2hxighoip4theyoukn'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y7qhx7asxabv93auaxvbtcl3u',
+ name: 'subscriptions_feed_id_active_muted_index',
+ unique: false,
+ fieldIds: [
+ '77m2goirttqpem94orbf367wh',
+ 'a5y577zd3km9zrcb06uclju0c',
+ '88cxmh3jo4hmbvu7e5ttp3uxd',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gru1svkuu05cq86kf6jhny9as',
+ name: 'subscriptions_created_at_index',
+ unique: false,
+ fieldIds: ['m86xpscxydbe3or4ye7c6yvfq'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '1i3exloheixaz8bxv615819h1',
+ name: 'subscriptions_feed_id_index',
+ unique: false,
+ fieldIds: ['77m2goirttqpem94orbf367wh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ynxidgxpeer2yd4i8vifue4ob',
+ name: 'subscriptions_user_id_feed_id_unique',
+ unique: true,
+ fieldIds: [
+ '8ast9v2zh25x2r5bjnpb68y8t',
+ '77m2goirttqpem94orbf367wh',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 's5f6mzdwpg2j2h8y6julexaih',
+ name: 'subscriptions_kind_index',
+ unique: false,
+ fieldIds: ['iy97qhoe0roj5708p6r8gcmou'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lim4jti8slkm16lw1zscklo6n',
+ name: 'subscriptions_unique13',
+ unique: true,
+ fieldIds: ['77m2goirttqpem94orbf367wh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z73g6dmvwqcxi4bxo7yh94xmr',
+ name: 'subscriptions_unique14',
+ unique: true,
+ fieldIds: ['8ast9v2zh25x2r5bjnpb68y8t'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1ua3134qpskjmxk23yzu9jhkw',
+ name: 'supported_sharing_services',
+ schema: 'public',
+ x: -353.0733729460359,
+ y: 561.9397662556433,
+ fields: [
+ {
+ id: 'mumx53wl59gfnab7j2fd217j5',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gz92um2yvjzzipncucikb60zn',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w27jh17bvx0mrkc88zmc3ms7o',
+ name: 'service_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kkrsjxtupk1222uyh9t9lvtvh',
+ name: 'settings',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '09n82zkb4zpbixbliaybspo09',
+ name: 'service_options',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1ooatwnxcmdm5op2v7glcr7cx',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ee9o5yu73gxd7rptljdvr5pmj',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'lrcxone28r3jquooy2lx4z0hh',
+ name: 'supported_sharing_services_user_id_service_id_unique',
+ unique: true,
+ fieldIds: [
+ 'gz92um2yvjzzipncucikb60zn',
+ 'w27jh17bvx0mrkc88zmc3ms7o',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '523p0l08rjei40fweq1xa0u0f',
+ name: 'supported_sharing_services_user_id_index',
+ unique: false,
+ fieldIds: ['gz92um2yvjzzipncucikb60zn'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zj06xe8vd5d5g8slvby7xgkjd',
+ name: 'supported_sharing_services_services_id_unique',
+ unique: true,
+ fieldIds: ['gz92um2yvjzzipncucikb60zn'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '383b6qiakb85cm3pfbvlyl3vu',
+ name: 'favicons',
+ schema: 'public',
+ x: 885.322970966341,
+ y: 914.1663061877525,
+ fields: [
+ {
+ id: 'u2kob6rsw3ccltfm9m438m8va',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wictz8wqun4papmss8zd2ywtv',
+ name: 'host',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p5yej7oiqbjhsb580d7v3a70m',
+ name: 'favicon',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mprn850tjycj3f9w1mx9qbnkp',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ncl2kdj988iykuc4z08d5d0ya',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's3b4qm097jc272ps42sex08m1',
+ name: 'data',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tkyd68s47y38w79uxup1zpxhz',
+ name: 'url',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'fmkih5jprgccf3bidvdcx3xv2',
+ name: 'favicons_host_unique',
+ unique: true,
+ fieldIds: ['wictz8wqun4papmss8zd2ywtv'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '39ny0ajiqsk9ikax7bj3js3aq',
+ name: 'authentication_tokens',
+ schema: 'public',
+ x: 1052.8320189382698,
+ y: 359.1383504804793,
+ fields: [
+ {
+ id: 'u3ka78pfipjax6cn6u2yil1kh',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9uq9dydmax0v4gq4d6u4phbrb',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nk50u7b692fa5psjwao89ufhx',
+ name: 'token',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fu8t1tg642ndnqondaslurszh',
+ name: 'purpose',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm2m9m8cjxx6r1rs7toa7gtzs4',
+ name: 'data',
+ type: {
+ id: 'jsonb',
+ name: 'jsonb',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '18g9jiwuw3sc2xxn4fmmx4vj9',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iyy1fb6eod5tkvegrszt794y6',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hv11yepdvtuazhr7ecm0ou07o',
+ name: 'active',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '4wowwrto5su08halhqht76hfd',
+ name: 'authentication_tokens_purpose_token_unique',
+ unique: true,
+ fieldIds: [
+ 'fu8t1tg642ndnqondaslurszh',
+ 'nk50u7b692fa5psjwao89ufhx',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2edxhy52mphjl4t09jhi5o2nb',
+ name: 'authentication_tokens_pkey',
+ unique: true,
+ fieldIds: ['u3ka78pfipjax6cn6u2yil1kh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '354yahi8lojaqv9spc9xu0kmd',
+ name: 'authentication_tokens_purpose_token_active_index',
+ unique: false,
+ fieldIds: [
+ 'fu8t1tg642ndnqondaslurszh',
+ 'nk50u7b692fa5psjwao89ufhx',
+ 'hv11yepdvtuazhr7ecm0ou07o',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oflxe2do8olmc65407ia0pfq4',
+ name: 'authentication_tokens_id_unique',
+ unique: true,
+ fieldIds: ['u3ka78pfipjax6cn6u2yil1kh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '24qjlhivwucb2n8c6axheskqv',
+ name: 'authentication_tokens_user_id_index',
+ unique: false,
+ fieldIds: ['9uq9dydmax0v4gq4d6u4phbrb'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jwap4xqfctwsr89nqf5zlwa11',
+ name: 'authentication_tokens_unique12',
+ unique: true,
+ fieldIds: ['9uq9dydmax0v4gq4d6u4phbrb'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3d8p5abv7ide9fb9cyirw6tbj',
+ name: 'taggings',
+ schema: 'public',
+ x: -996.2562717953651,
+ y: 1174.1594527029845,
+ fields: [
+ {
+ id: '699uxdfri5mba8fcg5k0tgwqy',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qivgowx8f28gcjeent7mtdy2v',
+ name: 'feed_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ey805w5mw0khrlw12qnotm1vi',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3zc1b9lwbfndmt4tt65ph4s9h',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7jrklpc869l2kvdkd9opp7gdp',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q9diahjtnqy4z6hpgonjzkzkc',
+ name: 'tag_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'p0ybayr58yzumenna2t6gt434',
+ name: 'taggings_feed_id_unique2',
+ unique: true,
+ fieldIds: ['qivgowx8f28gcjeent7mtdy2v'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l4uvnlxypuogwdkd2qyjr7b2x',
+ name: 'taggings_user_id_feed_id_index',
+ unique: false,
+ fieldIds: [
+ 'ey805w5mw0khrlw12qnotm1vi',
+ 'qivgowx8f28gcjeent7mtdy2v',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aaju1mrot990fgcw2ovrb9nsc',
+ name: 'taggings_feed_id_unique',
+ unique: true,
+ fieldIds: ['q9diahjtnqy4z6hpgonjzkzkc'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '8ddo5thpqmezqgl4f5ya0f51k',
+ name: 'taggings_user_id_index',
+ unique: false,
+ fieldIds: ['ey805w5mw0khrlw12qnotm1vi'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'neudaz2rw77jq6h8vnonvnglm',
+ name: 'taggings_user_id_tag_id_index',
+ unique: false,
+ fieldIds: [
+ 'ey805w5mw0khrlw12qnotm1vi',
+ 'q9diahjtnqy4z6hpgonjzkzkc',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h5l78aqvkkfjz0743o2q7nb00',
+ name: 'taggings_unique2',
+ unique: true,
+ fieldIds: ['ey805w5mw0khrlw12qnotm1vi'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l5opdkohdyft4f50uyzegop13',
+ name: 'taggings_tag_id_index',
+ unique: false,
+ fieldIds: ['q9diahjtnqy4z6hpgonjzkzkc'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3ws65unkxcm4fc9pl04qzoegb',
+ name: 'recently_played_entries',
+ schema: 'public',
+ x: 298.9592359914345,
+ y: -314.64466094067257,
+ fields: [
+ {
+ id: 'bhzjyllmvemeoojbv0lkc9fzk',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dkr7uqxzzxhel6iyin5ehiy2r',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ie2w2szu3kmy8c17ohupc00eb',
+ name: 'entry_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6td61opv9u2hqwssf9d1oxvbi',
+ name: 'progress',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xslzkxqqarfwckqug0ih3ka0l',
+ name: 'duration',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tn3taelfire3u52dmp8g6z1as',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q1084bc0cii01tg4ej8au8zpu',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'tiwfr19ezfqyaqkwdp11yd0i1',
+ name: 'recently_played_entries_user_id_created_at_index',
+ unique: false,
+ fieldIds: [
+ 'dkr7uqxzzxhel6iyin5ehiy2r',
+ 'tn3taelfire3u52dmp8g6z1as',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i1jq52bkmmps8bxve77nwyv4r',
+ name: 'recently_played_entries_unique2',
+ unique: true,
+ fieldIds: ['ie2w2szu3kmy8c17ohupc00eb'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fnrxw1vz22s8tm5t2407jw42z',
+ name: 'recently_played_entries_user_id_entry_id_unique',
+ unique: true,
+ fieldIds: [
+ 'dkr7uqxzzxhel6iyin5ehiy2r',
+ 'ie2w2szu3kmy8c17ohupc00eb',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ej7mgjrdtgvorabg3bu7ge584',
+ name: 'recently_played_entries_entry_id_index',
+ unique: false,
+ fieldIds: ['ie2w2szu3kmy8c17ohupc00eb'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mwbmigw8ufvo2yfjgn63px2kw',
+ name: 'recently_played_entries_user_id_index',
+ unique: false,
+ fieldIds: ['dkr7uqxzzxhel6iyin5ehiy2r'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kxbfdbpnjajkfnb7qow95wany',
+ name: 'recently_played_entries_feed_id_unique',
+ unique: true,
+ fieldIds: ['dkr7uqxzzxhel6iyin5ehiy2r'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '59lfjx3inmw2zla57slf51z3p',
+ name: 'suggested_feeds',
+ schema: 'public',
+ x: -670.3792234810018,
+ y: 1436.1620829323695,
+ fields: [
+ {
+ id: 'zqz0qbfbfsvtoymztpkrg67t5',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9udbu56m1p8covf702w0pwjxl',
+ name: 'suggested_category_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bsbxlddfbsdcwjv3ouvpka89v',
+ name: 'feed_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uk85ozmkla13hyj7qvwgbcyqo',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'widdl7lmh1vj8ucjewfjpkdvt',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '3b8m5v705jr9gayd4tulapery',
+ name: 'suggested_feeds_unique13',
+ unique: true,
+ fieldIds: ['bsbxlddfbsdcwjv3ouvpka89v'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ksnl249cucwtx7rbf2ds1sci2',
+ name: 'suggested_feeds_entries_unique2',
+ unique: true,
+ fieldIds: ['9udbu56m1p8covf702w0pwjxl'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '75r38b3gau6ks8b3kzbg842to',
+ name: 'suggested_feeds_feed_id_index',
+ unique: false,
+ fieldIds: ['bsbxlddfbsdcwjv3ouvpka89v'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5m7bdmhc9zj6utas9jcf2n3xp',
+ name: 'suggested_feeds_suggested_category_id_index',
+ unique: false,
+ fieldIds: ['9udbu56m1p8covf702w0pwjxl'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6w99bmjh4vgkgwbip73ab6dwq',
+ name: 'unreads',
+ schema: 'public',
+ x: -501.0407640085654,
+ y: 135.35533905932743,
+ fields: [
+ {
+ id: 'poa1cmcqu5wcw54ql4xbk4jaz',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '16fcri4likk0lxemgkckaqxmo',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '25a55382st8ciyewhei93e9ej',
+ name: 'feed_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ibal47fpyfouxkuvax38d2aom',
+ name: 'entry_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3fj0h91r79lkmiq4dx0b7r7c6',
+ name: 'published',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7m1047yw7vj17qppks34yzkdt',
+ name: 'entry_created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8wy1h1qvgotihmp8ywtoi1pbf',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4bkbcfhlcuha9ogmpl8hllbj8',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'lkbyfo3hctpj8x171f5en7165',
+ name: 'unreads_user_id_published_index',
+ unique: false,
+ fieldIds: [
+ '16fcri4likk0lxemgkckaqxmo',
+ '3fj0h91r79lkmiq4dx0b7r7c6',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'stroq4k4w9m4c9jjcnegfqydv',
+ name: 'unreads_unique13',
+ unique: true,
+ fieldIds: ['25a55382st8ciyewhei93e9ej'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y450w3l7c1xb84ekxu3o0mang',
+ name: 'unreads_user_id_feed_id_published_index',
+ unique: false,
+ fieldIds: [
+ '16fcri4likk0lxemgkckaqxmo',
+ '25a55382st8ciyewhei93e9ej',
+ '3fj0h91r79lkmiq4dx0b7r7c6',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pvfe2wtf0ehv2mmms2dv9n08f',
+ name: 'unreads_user_id_index',
+ unique: false,
+ fieldIds: ['16fcri4likk0lxemgkckaqxmo'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jtsuqub30ytak0ghm6ra995u3',
+ name: 'unreads_user_id_created_at_index',
+ unique: false,
+ fieldIds: [
+ '16fcri4likk0lxemgkckaqxmo',
+ '8wy1h1qvgotihmp8ywtoi1pbf',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h8ysnb05b37o5vc7b2n70wfhp',
+ name: 'unreads_user_id_entry_id_unique',
+ unique: true,
+ fieldIds: [
+ '16fcri4likk0lxemgkckaqxmo',
+ 'ibal47fpyfouxkuvax38d2aom',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5qbad4ee12awvqcb9mfl4dqo2',
+ name: 'unreads_feed_id_index',
+ unique: false,
+ fieldIds: ['25a55382st8ciyewhei93e9ej'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '0avqac7tuiwswx4nnrha0gl4q',
+ name: 'unreads_entry_id_index',
+ unique: false,
+ fieldIds: ['ibal47fpyfouxkuvax38d2aom'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '4hjgwvn1urikplq2gak373rmn',
+ name: 'unreads_unique12',
+ unique: true,
+ fieldIds: ['ibal47fpyfouxkuvax38d2aom'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '12ylqqnybqzv9knt7gro5m60r',
+ name: 'unreads_unique2',
+ unique: true,
+ fieldIds: ['16fcri4likk0lxemgkckaqxmo'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'awacd5gjq18ocku962bjq1lhw',
+ name: 'saved_searches',
+ schema: 'public',
+ x: -481.68384736047904,
+ y: -303.4737505385091,
+ fields: [
+ {
+ id: 'h7zt05w8yusrh40e6ii3yb9kl',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'typ4eodxedjd2ukk2vlqittxl',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oeql3cnmfku5bklgwyfvtsm3n',
+ name: 'name',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rv910t208qhrkoj6k45wwp9mg',
+ name: 'query',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mmkn212c3ffuvlndyoycl9am3',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gooxgzp7vn3h5gkis4h9o4iu0',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'jr1lpioc7ilspw5fin68x1p2u',
+ name: 'saved_searches_user_id_index',
+ unique: false,
+ fieldIds: ['typ4eodxedjd2ukk2vlqittxl'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yz4jat33ticrmbubx6lutlskm',
+ name: 'saved_searches_unique13',
+ unique: true,
+ fieldIds: ['typ4eodxedjd2ukk2vlqittxl'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c6x4nnb3mbeilsxxd6ugcwk61',
+ name: 'feeds',
+ schema: 'public',
+ x: -320.3792234810019,
+ y: 1003.14938104015,
+ fields: [
+ {
+ id: 'ywuey3u8wrb376tjk3t31rnh5',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9zn5ujcjp818urqejneq4rz5w',
+ name: 'title',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '942kp7540d91eowfv9ur3obl1',
+ name: 'feed_url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y4fkihclzeq9l4wt09nxcg49u',
+ name: 'site_url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9kqy3tqs28yhb9kpthqolknwa',
+ name: 'etag',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5zmu1bvcq0d49xv5fz7wqurg0',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aazbltk1ttskg3s8gwjei9qdg',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wbbpqj4mwyv3pk6ezjrxtgkwp',
+ name: 'last_modified',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ekzklfafvbc28dujri5dxaml5',
+ name: 'subscriptions_count',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4q4zawvm5kp4jz4a15nqi6lra',
+ name: 'protected',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y3kyszf9dwoiv7do249zu2pok',
+ name: 'push_expiration',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nz396tqwlsaui26r4rlytbtnm',
+ name: 'last_published_entry',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oj6h8rbiawvagocittmrf1t7x',
+ name: 'host',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g374e0mbnuw2ndaa5by3v5isg',
+ name: 'self_url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0e3afp4x3bqk8imc2xujdax5p',
+ name: 'feed_type',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dg38r4tgw726mzo3lm6hg9wl6',
+ name: 'active',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uadxusnuzaqtz18art6xookza',
+ name: 'options',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'nytg8ulae5yvj33y2o3elvzj4',
+ name: 'feeds_active_index',
+ unique: false,
+ fieldIds: ['dg38r4tgw726mzo3lm6hg9wl6'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '55gwsx7bufjfrqivxcm9ye8e9',
+ name: 'feeds_id_unique',
+ unique: true,
+ fieldIds: ['ywuey3u8wrb376tjk3t31rnh5'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'odoh2wh91avd340g9t17ql5b6',
+ name: 'feeds_host_index',
+ unique: false,
+ fieldIds: ['oj6h8rbiawvagocittmrf1t7x'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e6itznlmhg252hkfe9d0nuawv',
+ name: 'feeds_last_published_entry_index',
+ unique: false,
+ fieldIds: ['nz396tqwlsaui26r4rlytbtnm'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mh1ks99dnrxsot3u96huleibx',
+ name: 'feeds_pkey',
+ unique: true,
+ fieldIds: ['ywuey3u8wrb376tjk3t31rnh5'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sfh0ba7jtnmn5xvwihg15airx',
+ name: 'feeds_feed_url_unique',
+ unique: true,
+ fieldIds: ['942kp7540d91eowfv9ur3obl1'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'njz9e04ekzvq07w6snci2h7bt',
+ name: 'feeds_feed_type_index',
+ unique: false,
+ fieldIds: ['0e3afp4x3bqk8imc2xujdax5p'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ce6r77awkekmxp68xlw80cdgb',
+ name: 'actions',
+ schema: 'public',
+ x: 500,
+ y: 100,
+ fields: [
+ {
+ id: 'm8wp2xctapot9hf9idzlfn7a7',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7prvk9esf4hmlqgaerc4hyz3w',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5206e5qt1mxm31i9ejg5nagj0',
+ name: 'query',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v6k5mhw5663yqqbqy3zlore68',
+ name: 'actions',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o59yafqw46qrvgjg2s1ey5995',
+ name: 'feed_ids',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x2oxksg9mzk9g0so7f06fn5wh',
+ name: 'all_feeds',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fmg5ras00z1cs6frnv6xqc0fb',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tpx75o0y6qnp0564cqqecaz62',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bdunyqm5zn7yvcs3xzfsfsba2',
+ name: 'title',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '45x57ij2mof4tjdfqdv89vxji',
+ name: 'tag_ids',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xcl6a749aj9wbjuzifh8qvrxs',
+ name: 'action_type',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7ka2k5b3zbdeojzbupbuqpr0s',
+ name: 'computed_feed_ids',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zrobajxb640d9p5n30524wlkr',
+ name: 'status',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'i13iub56o7qyyowjjwwomae0u',
+ name: 'actions_user_unique',
+ unique: true,
+ fieldIds: ['7prvk9esf4hmlqgaerc4hyz3w'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'u6m01k4kk1uftqeka5500i9fo',
+ name: 'actions_pkey',
+ unique: true,
+ fieldIds: ['m8wp2xctapot9hf9idzlfn7a7'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ctja86fkrb5guynmohhtjuw8k',
+ name: 'updated_entries',
+ schema: 'public',
+ x: 529.6207765189981,
+ y: 1003.14938104015,
+ fields: [
+ {
+ id: 'i6fkg018nzrrxbz21hc4j7m8a',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x407hh1rzqpjkwycwv1m5lwb1',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nabhng4bxa0afowe24f81u92z',
+ name: 'entry_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h66kme3eu2ldeop2cwbkwlnyh',
+ name: 'feed_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gjqvenwj61dewtp9qqye6efg7',
+ name: 'published',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eslw5tior8g0ezfkv0nbczfcw',
+ name: 'updated',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'acjgdvzwavd1svbbhamnixmtw',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1gm7hlgmsxllu92b0credehwp',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'tsvmfbsnfr1woocf1sy8q0hiu',
+ name: 'updated_entries_entry_id_index',
+ unique: false,
+ fieldIds: ['nabhng4bxa0afowe24f81u92z'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p4jq17tp4aqrfskz2rjmc7fp3',
+ name: 'updated_entries_unique2',
+ unique: true,
+ fieldIds: ['h66kme3eu2ldeop2cwbkwlnyh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 't38iqx5yl7rbb4aw8znfyihci',
+ name: 'updated_entries_pkey',
+ unique: true,
+ fieldIds: ['i6fkg018nzrrxbz21hc4j7m8a'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 's8ymz04ryokur9rhpwtcx8krt',
+ name: 'updated_entries_user_id_entry_id_unique',
+ unique: true,
+ fieldIds: ['x407hh1rzqpjkwycwv1m5lwb1'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '1ct9qv2thx9qmfviegbrunbbx',
+ name: 'updated_entries_feed_id_index',
+ unique: false,
+ fieldIds: ['h66kme3eu2ldeop2cwbkwlnyh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gf6b3c15e6tg91emnhfcou3x0',
+ name: 'updated_entries_feed_id_unique',
+ unique: true,
+ fieldIds: ['x407hh1rzqpjkwycwv1m5lwb1'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l3bevdur52toosoz340r6a63k',
+ name: 'updated_entries_entry_id_entry_id_unique',
+ unique: true,
+ fieldIds: ['nabhng4bxa0afowe24f81u92z'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tlu5cqefll0zd13dm79yzo83o',
+ name: 'updated_entries_user_id_index',
+ unique: false,
+ fieldIds: ['x407hh1rzqpjkwycwv1m5lwb1'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dib1gwzwt51eel6kbkopd6zq0',
+ name: 'entries',
+ schema: 'public',
+ x: -101.0407640085655,
+ y: -314.64466094067257,
+ fields: [
+ {
+ id: 'in6bxafo9gbg99mqxkitx66d6',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ot8fmst2ca47ab4nj8228fhic',
+ name: 'feed_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ef5urpj4y4xhe15r615l4s4rk',
+ name: 'title',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dfmd20pwp1t0fcjcu6lbuqx3y',
+ name: 'url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p7yix1pk80c77n0a0oha9h2u3',
+ name: 'author',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b9kjhpcq5b0l6lv4n8jwonj23',
+ name: 'summary',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'srexujip57dedqpjrgpr8k5jj',
+ name: 'content',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4m6faftpty562r0mqjsmupewz',
+ name: 'published',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'txxyhy146csdy2oyn02nizyd6',
+ name: 'updated',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mh4vgpxh2lh9kbt52iwqwyo7f',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'u152dphs9mjxocd6ggk3387td',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '07cudlf0qj8v2zgfnnqplxgrh',
+ name: 'entry_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qhzpvztrn47uiwyex2girkvug',
+ name: 'public_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0gagj4098nkb0ejxsgb27k56d',
+ name: 'old_public_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f51146t5hwoda8qrg56ujgkse',
+ name: 'starred_entreis_count',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sch1x6zhn63rk8d9qza2hywmb',
+ name: 'data',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c19yv0ue9cgkagd3y8d2wu2h1',
+ name: 'original',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sqe0qrd5bd2qw0zqti8vkjwj1',
+ name: 'source',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wyofumu326gk9yspdixedmn46',
+ name: 'image_url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6b8mpqe1zbpzc4pz7sdmzieb4',
+ name: 'processed_image_url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cvw49o6otsmnexrpeip9mb3es',
+ name: 'image',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '96nlc532r3659iyj39dpjl7tp',
+ name: 'recently_played_entries_count',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g4lru9ncy5rziview1odtn1bn',
+ name: 'thread_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '58bn15cjlw3dr9wepbnw9zunr',
+ name: 'settings',
+ type: {
+ id: 'jsonb',
+ name: 'jsonb',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'cbv9ix6rnr2s4t79rogkf21lu',
+ name: 'entries_public_id_unique',
+ unique: true,
+ fieldIds: ['qhzpvztrn47uiwyex2girkvug'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a27b01y3l5p7f7sy08jlzqcio',
+ name: 'entries_id_unique',
+ unique: true,
+ fieldIds: ['in6bxafo9gbg99mqxkitx66d6'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f2e6juegnk5d6nedyv7w3nyt0',
+ name: 'entries_id_unique2',
+ unique: true,
+ fieldIds: ['ot8fmst2ca47ab4nj8228fhic'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jyfemqug3ms6o1fynxw15rmqx',
+ name: 'entries_unique13',
+ unique: true,
+ fieldIds: ['07cudlf0qj8v2zgfnnqplxgrh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2ge4xcoq92g2mxhin5rngg633',
+ name: 'entries_unique12',
+ unique: true,
+ fieldIds: ['07cudlf0qj8v2zgfnnqplxgrh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tat0b2frkrhhzk8mg7jwlki2i',
+ name: 'entries_feed_id_index',
+ unique: false,
+ fieldIds: ['ot8fmst2ca47ab4nj8228fhic'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'otxvu6s9vp3oomvpjdjllmwbe',
+ name: 'entries_thread_id_index',
+ unique: false,
+ fieldIds: ['g4lru9ncy5rziview1odtn1bn'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e9eani26ggll2gr46uc9e0qne',
+ name: 'coupons',
+ schema: 'public',
+ x: 680,
+ y: 1460,
+ fields: [
+ {
+ id: 'xbjvzmp0o0frcac9w70hf5fpo',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8v0byocr1huu3do650xqx43tu',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '29oq4nsq84ktglryc7y8yrhyk',
+ name: 'coupon_code',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xbkcc5nbyxj6b5oc9orsyc5y1',
+ name: 'sent_to',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2n5y378gcjlhy8m9jjs26xu98',
+ name: 'redeemed',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wzbebsvkykq18mouyf4blner7',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pn065h4pnbp70aayuxc1xv8os',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ro71y5xwx0eb3b4em8unt572w',
+ name: 'coupons_pkey',
+ unique: true,
+ fieldIds: ['xbjvzmp0o0frcac9w70hf5fpo'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'terizuspqlp3dvkynbedk35nd',
+ name: 'coupons_user_id_unique',
+ unique: true,
+ fieldIds: ['8v0byocr1huu3do650xqx43tu'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z3skac3hvuqtfmd0w9y6ix916',
+ name: 'coupons_user_id_index',
+ unique: false,
+ fieldIds: ['8v0byocr1huu3do650xqx43tu'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eus5y1pppa7ws5kx4szie36b3',
+ name: 'starred_entries',
+ schema: 'public',
+ x: -720.3792234810019,
+ y: 703.14938104015,
+ fields: [
+ {
+ id: 'f4ud7vzfu3h9b4zx6c77qmjcc',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y5392l5msropzh6mf2qjt6yh9',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'juum44jix4wcrhooc9cyktkrt',
+ name: 'feed_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3wuv9e2i17hygart9p1aiph1p',
+ name: 'entry_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dx8t5o5wauru9ca6ft7xph47b',
+ name: 'published',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mugl96ca10lbgth8d5l0w41w3',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'np0keqc9zawvytx3dt07kvx2a',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lsfebote8ke9jfqb9pz7zypgh',
+ name: 'source',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'kw0s0t2alo3q7yeevm73q4yg9',
+ name: 'starred_entries_pkey',
+ unique: true,
+ fieldIds: ['f4ud7vzfu3h9b4zx6c77qmjcc'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2xg4mtr7h0fbqip8dhoz7tyq8',
+ name: 'starred_entries_user_id_unique',
+ unique: true,
+ fieldIds: ['y5392l5msropzh6mf2qjt6yh9'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c9yfd4daroq14hri2q6goua4x',
+ name: 'starred_entries_entry_id_unique',
+ unique: true,
+ fieldIds: ['3wuv9e2i17hygart9p1aiph1p'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xua330w5a9px1z1jakn9fon11',
+ name: 'starred_entries_feed_id_index',
+ unique: false,
+ fieldIds: ['juum44jix4wcrhooc9cyktkrt'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lfanybr9jhzybhpupt4bhjwuu',
+ name: 'starred_entries_user_id_index',
+ unique: true,
+ fieldIds: ['y5392l5msropzh6mf2qjt6yh9'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aysszp5v43zu3yhzvw6vmsmr3',
+ name: 'starred_entries_entry_id_index',
+ unique: true,
+ fieldIds: ['3wuv9e2i17hygart9p1aiph1p'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x3u1qr7s6bdwnvavzmora7rmf',
+ name: 'starred_entries_published_index',
+ unique: false,
+ fieldIds: ['dx8t5o5wauru9ca6ft7xph47b'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '8lq53vnv2i9zirfbo3myjje31',
+ name: 'starred_entries_feed_id_unique',
+ unique: true,
+ fieldIds: ['juum44jix4wcrhooc9cyktkrt'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h5x2ajpghq7hkssyvnpk1sioe',
+ name: 'plans',
+ schema: 'public',
+ x: 276.7766952966369,
+ y: 559.6194077712559,
+ fields: [
+ {
+ id: '7jdjullkjeylarup59lj2ou28',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5xyll9eq7rhbnl08txrs4n5dt',
+ name: 'stripe_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd8c2wyb1s6oya2psanitgdnfq',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '46hs6tmdmqa9ji4xaclzwvguq',
+ name: 'price',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4bjpr665uvloyad2ozbmcl2sd',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h4d00hbvv30h0265190h861fa',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '17q9vh9znb27habydn1msc4fw',
+ name: 'price_tier',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hecrk2bna9xf0il6e0wlzp60l',
+ name: 'deleted_users',
+ schema: 'public',
+ x: 617.6318159561015,
+ y: 676.0103852061825,
+ fields: [
+ {
+ id: '4eweu0ls20fefcn3oq8n2x7s7',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'awt0j2ymuwcro1qbmmvowzw8d',
+ name: 'customer_id',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'epx6ul4in931wu65y6c8b9trj',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uzi9nsf5mmn5dtgj76pjg378h',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'y3r4h4r92wthaozmjmmhfthh0',
+ name: 'deleted_users_email_index',
+ unique: false,
+ fieldIds: ['pyft4iijowctsznvfoliugn95'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hiv6lj83n5vr5sa8gaqgfgnxm',
+ name: 'tags',
+ schema: 'public',
+ x: -1475.7118402276449,
+ y: 1194.3249451325603,
+ fields: [
+ {
+ id: 'zcln1lpn412wbelkaf2t9h6th',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h8mf1e1at7d1myodnqd4mjnim',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vg78enwkvk4fp7n7phx4naj16',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gf7wrdsidhhovylczboql2aye',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'kijczfypgw0pmaznt024r2ofh',
+ name: 'tags_id_unique',
+ unique: true,
+ fieldIds: ['zcln1lpn412wbelkaf2t9h6th'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2qot7gfgnc7dkxr341vzoh8vm',
+ name: 'tags_name_index',
+ unique: false,
+ fieldIds: ['h8mf1e1at7d1myodnqd4mjnim'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ixjbz9qsazvalh09grm3cnkyp',
+ name: 'in_app_purchases',
+ schema: 'public',
+ x: -46.92662705396407,
+ y: 561.9397662556433,
+ fields: [
+ {
+ id: 'wpnpntqi78p4qd01cptiz2bgh',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a75vyodug8c0qxd28cmp7shfq',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pnep9038zloud08dbmjzwlk6o',
+ name: 'transaction_id',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h0vivqgp6hdhzzt05gj9w7m9h',
+ name: 'purchase_date',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o9blrkxa7f59ggitp776s91th',
+ name: 'receipt',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g6i3h11qsalxnlvtdwd9oz0mn',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '59880pycvhplnbess5mzih9bu',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i59utgqii4vzl686kj1quyapg',
+ name: 'response',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'zzprg314i8ckddkzangdpl3qr',
+ name: 'in_app_purchases_user_id_index',
+ unique: false,
+ fieldIds: ['a75vyodug8c0qxd28cmp7shfq'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fywwcdmduhi9m1ifbo4rtmh0n',
+ name: 'in_app_purchases_user_id_unique',
+ unique: true,
+ fieldIds: ['a75vyodug8c0qxd28cmp7shfq'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'krjqbq9p2qt8iff0z2a1f78dw',
+ name: 'imports',
+ schema: 'public',
+ x: -869.5518130045148,
+ y: 291.341716182545,
+ fields: [
+ {
+ id: 'x4f8e2cb44zr0w1b5uxrgoox7',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ql96j4xfmqv7cnm0h4bkn6i2b',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p6o99ln33kkr3auwpnldneh5x',
+ name: 'complete',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jbhfahbsswbjy5chxwabcc5hn',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cqljhy5xw74cnteco668uita4',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yf9pjp564ex5lx6o96ci1w384',
+ name: 'upload',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'pg90u91q6vuinwkq567s787sd',
+ name: 'imports_unique2',
+ unique: true,
+ fieldIds: ['ql96j4xfmqv7cnm0h4bkn6i2b'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l9g6nwa93ys7jgdcw0l53yqpo',
+ name: 'sharing_services',
+ schema: 'public',
+ x: 100.00000000000006,
+ y: 1050,
+ fields: [
+ {
+ id: '4qbgzxy54xqgxkskhnqz1gzpe',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'syd1w3v22fsulmvgtay0sg8cu',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c4bt6s5id7aus2zkim8w9xwjf',
+ name: 'label',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1lv5wsqjcts60nkgorc40e8ff',
+ name: 'url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6bnp0ajw2ff5hlatsvwggussh',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oaonkvjfw76jkfz2pxxx3j6d5',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'j5fhqkrfrr4juv2mhn1zn1mkr',
+ name: 'sharing_services_pkey',
+ unique: true,
+ fieldIds: ['4qbgzxy54xqgxkskhnqz1gzpe'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd36lbhvufncfex2xrnf9zyqf8',
+ name: 'sharing_services_user_id_index',
+ unique: false,
+ fieldIds: ['syd1w3v22fsulmvgtay0sg8cu'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ptkwdev1n69wjat4016etnxb5',
+ name: 'sharing_services_id_unique',
+ unique: true,
+ fieldIds: ['syd1w3v22fsulmvgtay0sg8cu'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mm2zil01g5dxqjaqsh2awc7rm',
+ name: 'suggested_categories',
+ schema: 'public',
+ x: -1185.4070341433403,
+ y: 1539.1672822172923,
+ fields: [
+ {
+ id: 'fc7x2vwlcjianx5hw2tc29z2p',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5mfwbbkjjckne00ohg2pc89s6',
+ name: 'name',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6vaeyiccwohtrkgv88oifotxm',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vxd0fmld4ytbaskhqnn2w05h8',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'av5ugna78h46knahz6zqfwp1i',
+ name: 'suggested_categories_id_unique',
+ unique: true,
+ fieldIds: ['fc7x2vwlcjianx5hw2tc29z2p'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nrez9p0orrg4qjclr7oe9dbhx',
+ name: 'recently_read_entries',
+ schema: 'public',
+ x: 898.355156734928,
+ y: 76.27108029334232,
+ fields: [
+ {
+ id: 'hqb9z9lzf4s5ur9gl39uyj1ts',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ajakw6g2vhgu71h4v0yjh18zp',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2c32u2odxyuq8k1x6oqt4xog6',
+ name: 'entry_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ygjiukr640qxd97e56q96olpw',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2fci9vpqngqglvfpcqdsp6pwr',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ebhj4x2n7noxkgl5qp1leuh51',
+ name: 'recently_read_entries_user_id_entry_id_unique',
+ unique: true,
+ fieldIds: [
+ 'ajakw6g2vhgu71h4v0yjh18zp',
+ '2c32u2odxyuq8k1x6oqt4xog6',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l3g6n4xuu53biuku3wqhk28ke',
+ name: 'recently_read_entries_entry_id_index',
+ unique: false,
+ fieldIds: ['2c32u2odxyuq8k1x6oqt4xog6'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q9r35s41sr4bhjze5z79pur5m',
+ name: 'recently_read_entries_unique3',
+ unique: true,
+ fieldIds: ['2c32u2odxyuq8k1x6oqt4xog6'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm6ldqt7y9work03wb5595o7zg',
+ name: 'recently_read_entries_user_id_index',
+ unique: false,
+ fieldIds: ['ajakw6g2vhgu71h4v0yjh18zp'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oo9a5wku9qlqrf07gyauaoglb',
+ name: 'recently_read_entries_unique2',
+ unique: true,
+ fieldIds: ['ajakw6g2vhgu71h4v0yjh18zp'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '1ak2084x37l2as95d5lr2xgzy',
+ name: 'recently_read_entries_created_at_index',
+ unique: false,
+ fieldIds: ['ygjiukr640qxd97e56q96olpw'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '83dkcl6w8lmn95bndbn777lwh',
+ name: 'recently_read_entries_user_id_id_index',
+ unique: false,
+ fieldIds: [
+ 'ajakw6g2vhgu71h4v0yjh18zp',
+ 'hqb9z9lzf4s5ur9gl39uyj1ts',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qp3axlaauiw6fglqfof0beu6n',
+ name: 'newsletter_senders',
+ schema: 'public',
+ x: -13.961446233410632,
+ y: 1474.5431858834197,
+ fields: [
+ {
+ id: '47xy66307zf658jxgo8gm72w9',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tcipf5u866o0365qyuy3zam8o',
+ name: 'feed_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o3645w2nk4vt09an0h67wlzyw',
+ name: 'active',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b3w6q3qc2y52u4uy1rcqks7w3',
+ name: 'token',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hhsz4x2vgv0a7664bawn3bbbe',
+ name: 'full_token',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8gdd183aggqxwox0jafj02dn7',
+ name: 'email',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fr8qvz64h3hpkw107zye1c1gl',
+ name: 'name',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n0oq36kw01u6dnob23n5ajas4',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'on6lfyds4ppxfqu2re5dc94h6',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'wtgl34g1v9v5jxlc5tid5nr2p',
+ name: 'newsletter_senders_token_index',
+ unique: false,
+ fieldIds: ['b3w6q3qc2y52u4uy1rcqks7w3'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y8ogpl68gyq3zhxvfpockdbe0',
+ name: 'newsletter_senders_feed_id_unique',
+ unique: true,
+ fieldIds: ['tcipf5u866o0365qyuy3zam8o'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sicfhd6brnxk9d7urh3incyie',
+ name: 'import_items',
+ schema: 'public',
+ x: -893.8158817164433,
+ y: -132.9223525293835,
+ fields: [
+ {
+ id: 'u4x9kxtmrnx2g59mpu2s6wdzh',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ekpamw4df73zzexmncnmleba0',
+ name: 'import_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tgrhbky0e7kzga0hwfvbuau8i',
+ name: 'details',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c9zezxk3b3wpnzeysfxpcfms7',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6vtxh3u7nto8ll2wu1lmx69zm',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p0zayx8kgi5ska4x33b3w3r42',
+ name: 'item_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q34qiyrujyy8a1qkxll9bs1m8',
+ name: 'status',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'xgw70854p6bwaa7fqgh8syqof',
+ name: 'import_items_unique2',
+ unique: true,
+ fieldIds: ['ekpamw4df73zzexmncnmleba0'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p765uule8s16rc4q1h5r48vx9',
+ name: 'import_items_import_id_status_index',
+ unique: false,
+ fieldIds: [
+ 'ekpamw4df73zzexmncnmleba0',
+ 'q34qiyrujyy8a1qkxll9bs1m8',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vuxulsn4uzs8x60mpkokugnag',
+ name: 'import_items_import_id_index',
+ unique: false,
+ fieldIds: ['ekpamw4df73zzexmncnmleba0'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v7s92he5thsn3g9zdak7kb4iu',
+ name: 'billing_events',
+ schema: 'public',
+ x: 280,
+ y: 1460,
+ fields: [
+ {
+ id: '97le1jhd3czqenkxblhwb9g2y',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v88b2ajlg271x8vypuqyuz7ew',
+ name: 'details',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p7uvlcyvzfhpbl2gsdjdvndx7',
+ name: 'event_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '790mwztxy3e9vg5omr7xofm7t',
+ name: 'billable_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ekfuzut8t2r444p8y8u65u7h9',
+ name: 'billable_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '46wasllt62wsayyjwud3xzoj1',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'roehcty5jsvqmc9bbgprst644',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e505znv0ckgmxzj8dw18qi50v',
+ name: 'event_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lofdp6hs6w3axgmaxh7s6hy6p',
+ name: 'info',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '6b7cf3qvt99ezwkbcwzmthcio',
+ name: 'billing_events_billable_id_billable_type_index',
+ unique: false,
+ fieldIds: [
+ '790mwztxy3e9vg5omr7xofm7t',
+ 'ekfuzut8t2r444p8y8u65u7h9',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pgyj719t74vn9p5gp68u97v8l',
+ name: 'billing_events_event_id_unique',
+ unique: true,
+ fieldIds: ['e505znv0ckgmxzj8dw18qi50v'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x9duzqwy3mldu0yhynbd148as',
+ name: 'devices',
+ schema: 'public',
+ x: -1200,
+ y: 100.00000000000017,
+ fields: [
+ {
+ id: 'b89n7xhde8kzppmnki3mebce9',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4nejfj949yybg9pxjree6c29k',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2zg6ham084ycklahx9c7w6jpn',
+ name: 'token',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xvsel4ynxmnyehz9udsfk389s',
+ name: 'model',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zqj3wujg0o1kyyjfyf2417j3z',
+ name: 'device_type',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '23hrsy1fgopa3fxsaran40iel',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '78721dc9d9r1u5xvbwuxxu82u',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'byedrprdqvf5o1rdol3rbfdbl',
+ name: 'operating_system',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'hs7yzweih4rkox7irtbt7xr7h',
+ name: 'devices_user_unique',
+ unique: true,
+ fieldIds: ['4nejfj949yybg9pxjree6c29k'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xawzccvi714b6w3wdyginbgym',
+ name: 'devices_token_unique',
+ unique: true,
+ fieldIds: ['2zg6ham084ycklahx9c7w6jpn'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qyhctpkv2c9qhbshqoucwi2il',
+ name: 'devices_user_id_index',
+ unique: false,
+ fieldIds: ['4nejfj949yybg9pxjree6c29k'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '3j021hxnxtpro3a1ylgjq4ngk',
+ name: 'devices_pkey',
+ unique: true,
+ fieldIds: ['b89n7xhde8kzppmnki3mebce9'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y0dydsx182fx165u3rsuluoox',
+ name: 'feed_stats',
+ schema: 'public',
+ x: -1296.2562717953651,
+ y: 832.1393093773158,
+ fields: [
+ {
+ id: '1iyyppe1jhzi5wpdo1e1kn22o',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a0ssgpm03x2o2ispe88kxy91o',
+ name: 'feed_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p05rfzmu62eui3t1156a3x7px',
+ name: 'day',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0sfet2zkced7jdkvm934m4t9g',
+ name: 'entries_count',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dntiyapop99icuodof8zc2iim',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '378g2i2fgys6lspw4kjr50oqb',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '45345st3etu4ur6w430giubam',
+ name: 'feed_stats_feed_id_day_index',
+ unique: false,
+ fieldIds: [
+ 'a0ssgpm03x2o2ispe88kxy91o',
+ 'p05rfzmu62eui3t1156a3x7px',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gml4djoamcsxxycqkcy604y2t',
+ name: 'feed_stats_feed_id_index',
+ unique: false,
+ fieldIds: ['a0ssgpm03x2o2ispe88kxy91o'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rbyr2bzpmpncmycm1ja7z20j7',
+ name: 'feed_stats_feed_id_unique',
+ unique: true,
+ fieldIds: ['a0ssgpm03x2o2ispe88kxy91o'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yl722acu32ijclvq81d01kg34',
+ name: 'users',
+ schema: 'public',
+ x: 100,
+ y: 100,
+ fields: [
+ {
+ id: 'tkgjq5tsyjsjodjkqyx5sxway',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3m0sztkcv8jrn75ywwfz644k1',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5uuaukmtdts6q990f1e49cyek',
+ name: 'password_digest',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vd9t77j2d0idcrcdldny28dc2',
+ name: 'customer_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kz6vqklcze7a7rplblknopvek',
+ name: 'last_4_digits',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'skhmnt7loifcttpg0hmnsyop2',
+ name: 'plan_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3loho9o4smssvhww49bxvphkj',
+ name: 'admin',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd0mae9ki47ho08alpj9n9aej2',
+ name: 'suspended',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '07au09bs25gp8xec3wllcz1my',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zmp3rpckgbb1fuk8jiatt9eaf',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e8ugme5rd5ul95budr1lj94lh',
+ name: 'auth_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'asdaypdzd1ib2ms7fudd6jk6c',
+ name: 'password_reset_token',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rgv2xwgekje7vqj0e7ofcymzm',
+ name: 'password_reset_sent_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w0z7mm3mjsd67ka4mlzna3v7h',
+ name: 'settings',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '263uy0yem7nybhszgc9bon35t',
+ name: 'starred_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sjahhfdg2lxvwuwu9t8z8mj3w',
+ name: 'inbound_email_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'u33rb9pthrxabi5q37ui0ksjx',
+ name: 'tag_visibility',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9xpbnegaljnry0sbi5cztnfgn',
+ name: 'expires_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1e3iu8w3qbxbfacnsmvrtv1r6',
+ name: 'newsletter_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9kcdtlfle16x5mwo9m91zu6t7',
+ name: 'price_tier',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fylu4brx3s688g9t4x6q45pbf',
+ name: 'page_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'krfaddcha0233onlbtp3zafpj',
+ name: 'users_plan_id_unique',
+ unique: true,
+ fieldIds: ['skhmnt7loifcttpg0hmnsyop2'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tk3qpo1l7bgqt3vrqa6klztjq',
+ name: 'users_starred_token_unique',
+ unique: true,
+ fieldIds: ['263uy0yem7nybhszgc9bon35t'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '0od64njzrlzl9qy92b8gs5ww6',
+ name: 'users_inbound_email_token_unique',
+ unique: true,
+ fieldIds: ['sjahhfdg2lxvwuwu9t8z8mj3w'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '7jbwbhgdp46roq7k7vj3gtnq1',
+ name: 'users_email_unique',
+ unique: true,
+ fieldIds: ['3m0sztkcv8jrn75ywwfz644k1'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hfghee3uag5fwnxxb0au1m7ik',
+ name: 'users_newsletter_token_unique',
+ unique: true,
+ fieldIds: ['1e3iu8w3qbxbfacnsmvrtv1r6'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yc33iiocdtiih81mqc55yy84j',
+ name: 'users_page_token_unique',
+ unique: true,
+ fieldIds: ['fylu4brx3s688g9t4x6q45pbf'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z2ps65t3cb5lmixgm8g7tpx3s',
+ name: 'users_pkey',
+ unique: true,
+ fieldIds: ['tkgjq5tsyjsjodjkqyx5sxway'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ula2toyyxhuji6ioyabvhvusb',
+ name: 'users_password_reset_token_unique',
+ unique: true,
+ fieldIds: ['asdaypdzd1ib2ms7fudd6jk6c'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fkeq3i8lv37msn4foe2tn4xix',
+ name: 'users_customer_id_unique',
+ unique: true,
+ fieldIds: ['vd9t77j2d0idcrcdldny28dc2'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'doclpehof8h7ykfc6uxnvdvtt',
+ name: 'users_auth_token_unique',
+ unique: true,
+ fieldIds: ['e8ugme5rd5ul95budr1lj94lh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ggwbtfecn779ooh2clh1dcuva',
+ name: 'users_expires_at_index',
+ unique: false,
+ fieldIds: ['9xpbnegaljnry0sbi5cztnfgn'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '0ams4wlm2sbuor5lo975y0c76',
+ name: 'entries_id_foreign15',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'dib1gwzwt51eel6kbkopd6zq0',
+ targetTableId: '3ws65unkxcm4fc9pl04qzoegb',
+ sourceFieldId: 'in6bxafo9gbg99mqxkitx66d6',
+ targetFieldId: 'ie2w2szu3kmy8c17ohupc00eb',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '0evh4vw65gzp3zafrrwevewy1',
+ name: 'users_id_foreign7',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: '3ws65unkxcm4fc9pl04qzoegb',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: 'dkr7uqxzzxhel6iyin5ehiy2r',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '0l4413ato1mez1uqn1rikrs6m',
+ name: 'feeds_id_foreign6',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'c6x4nnb3mbeilsxxd6ugcwk61',
+ targetTableId: 'y0dydsx182fx165u3rsuluoox',
+ sourceFieldId: 'ywuey3u8wrb376tjk3t31rnh5',
+ targetFieldId: 'a0ssgpm03x2o2ispe88kxy91o',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '0zwc1gkxebd7ylim3j3r1bl59',
+ name: 'users_id_foreign14',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: '6w99bmjh4vgkgwbip73ab6dwq',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: '16fcri4likk0lxemgkckaqxmo',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '18h5znqfz82vyv49xa2ctmtus',
+ name: 'feeds_id_foreign13',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'c6x4nnb3mbeilsxxd6ugcwk61',
+ targetTableId: 'ctja86fkrb5guynmohhtjuw8k',
+ sourceFieldId: 'ywuey3u8wrb376tjk3t31rnh5',
+ targetFieldId: 'h66kme3eu2ldeop2cwbkwlnyh',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '27yzqmf2c5lojx8c6jd87996v',
+ name: 'entries_id_foreign27',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'dib1gwzwt51eel6kbkopd6zq0',
+ targetTableId: 'dib1gwzwt51eel6kbkopd6zq0',
+ sourceFieldId: 'in6bxafo9gbg99mqxkitx66d6',
+ targetFieldId: '07cudlf0qj8v2zgfnnqplxgrh',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2bpg6hqzcq5h13fu0h768kkfj',
+ name: 'feeds_id_foreign2',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'c6x4nnb3mbeilsxxd6ugcwk61',
+ targetTableId: 'qp3axlaauiw6fglqfof0beu6n',
+ sourceFieldId: 'ywuey3u8wrb376tjk3t31rnh5',
+ targetFieldId: 'tcipf5u866o0365qyuy3zam8o',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2g021ew6tji9pfuvw9osioolm',
+ name: 'imports_id_foreign18',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'krjqbq9p2qt8iff0z2a1f78dw',
+ targetTableId: 'sicfhd6brnxk9d7urh3incyie',
+ sourceFieldId: 'x4f8e2cb44zr0w1b5uxrgoox7',
+ targetFieldId: 'ekpamw4df73zzexmncnmleba0',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2kwdbuy5hjs7p49azimmmjvh7',
+ name: 'feeds_id_foreign28',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'c6x4nnb3mbeilsxxd6ugcwk61',
+ targetTableId: '0sv0phs3rhwela5nxn320bga4',
+ sourceFieldId: 'ywuey3u8wrb376tjk3t31rnh5',
+ targetFieldId: '77m2goirttqpem94orbf367wh',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2ngiyuuvvw88vwbercsu9ermu',
+ name: 'suggested_categories_id_foreign15',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'mm2zil01g5dxqjaqsh2awc7rm',
+ targetTableId: '59lfjx3inmw2zla57slf51z3p',
+ sourceFieldId: 'fc7x2vwlcjianx5hw2tc29z2p',
+ targetFieldId: '9udbu56m1p8covf702w0pwjxl',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2vx5qti6n4cih36tud4kasoe6',
+ name: 'users_id_foreign20',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: 'nrez9p0orrg4qjclr7oe9dbhx',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: 'ajakw6g2vhgu71h4v0yjh18zp',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '3c8tn8m8n0e5qptvs2o77mw15',
+ name: 'entries_id_foreign9',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'dib1gwzwt51eel6kbkopd6zq0',
+ targetTableId: 'ctja86fkrb5guynmohhtjuw8k',
+ sourceFieldId: 'in6bxafo9gbg99mqxkitx66d6',
+ targetFieldId: 'nabhng4bxa0afowe24f81u92z',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '48j0umowy2rmyqi1b8cufnnjo',
+ name: 'users_id_foreign4',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: 'ce6r77awkekmxp68xlw80cdgb',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: '7prvk9esf4hmlqgaerc4hyz3w',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '588526p2ihd3kid5x6ta3bf2m',
+ name: 'users_id_foreign33',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: 'ctja86fkrb5guynmohhtjuw8k',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: 'x407hh1rzqpjkwycwv1m5lwb1',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '5xauclzpcsm95xkuhy88anyo8',
+ name: 'users_id_foreign26',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: '39ny0ajiqsk9ikax7bj3js3aq',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: '9uq9dydmax0v4gq4d6u4phbrb',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '7l4yx8zln1v8ytv7pw7rylosh',
+ name: 'users_id_foreign31',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: 'awacd5gjq18ocku962bjq1lhw',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: 'typ4eodxedjd2ukk2vlqittxl',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '8kosd8l35whxxmnra44tuan47',
+ name: 'users_id_foreign22',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: '3d8p5abv7ide9fb9cyirw6tbj',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: 'ey805w5mw0khrlw12qnotm1vi',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '8q63k5rpfok4ya9qgv76m04yz',
+ name: 'entries_id_foreign23',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'dib1gwzwt51eel6kbkopd6zq0',
+ targetTableId: '6w99bmjh4vgkgwbip73ab6dwq',
+ sourceFieldId: 'in6bxafo9gbg99mqxkitx66d6',
+ targetFieldId: 'ibal47fpyfouxkuvax38d2aom',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'asy4dfmsrfcmbqo2pqvkbyel5',
+ name: 'users_id_foreign32',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: '0sv0phs3rhwela5nxn320bga4',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: '8ast9v2zh25x2r5bjnpb68y8t',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dsaka59uw3rsmtx4zb171hasc',
+ name: 'feeds_id_foreign29',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'c6x4nnb3mbeilsxxd6ugcwk61',
+ targetTableId: '59lfjx3inmw2zla57slf51z3p',
+ sourceFieldId: 'ywuey3u8wrb376tjk3t31rnh5',
+ targetFieldId: 'bsbxlddfbsdcwjv3ouvpka89v',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'haort9lym5hwjs1yp8ftjzh72',
+ name: 'actions_user_id_fk',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ce6r77awkekmxp68xlw80cdgb',
+ targetTableId: 'yl722acu32ijclvq81d01kg34',
+ sourceFieldId: '7prvk9esf4hmlqgaerc4hyz3w',
+ targetFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hyzcunjhqimkqhnbx6vfncyl8',
+ name: 'users_id_foreign17',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: 'krjqbq9p2qt8iff0z2a1f78dw',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: 'ql96j4xfmqv7cnm0h4bkn6i2b',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ixuoucu0k818cpj9fjw89fusf',
+ name: 'feeds_id_foreign30',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'c6x4nnb3mbeilsxxd6ugcwk61',
+ targetTableId: '6w99bmjh4vgkgwbip73ab6dwq',
+ sourceFieldId: 'ywuey3u8wrb376tjk3t31rnh5',
+ targetFieldId: '25a55382st8ciyewhei93e9ej',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm5xiz68cc9faq9lgpgcq0ovmc',
+ name: 'users_id_foreign11',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: '1ua3134qpskjmxk23yzu9jhkw',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: 'gz92um2yvjzzipncucikb60zn',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ojnu8odin0rtf3ghsejl2vham',
+ name: 'entries_id_foreign19',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'dib1gwzwt51eel6kbkopd6zq0',
+ targetTableId: 'nrez9p0orrg4qjclr7oe9dbhx',
+ sourceFieldId: 'in6bxafo9gbg99mqxkitx66d6',
+ targetFieldId: '2c32u2odxyuq8k1x6oqt4xog6',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r957rgp8hyiby7252ixhnjpeb',
+ name: 'plans_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'h5x2ajpghq7hkssyvnpk1sioe',
+ targetTableId: 'yl722acu32ijclvq81d01kg34',
+ sourceFieldId: '7jdjullkjeylarup59lj2ou28',
+ targetFieldId: 'skhmnt7loifcttpg0hmnsyop2',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rh17pdv79zy2cpixyvskqk9sw',
+ name: 'tags_id_foreign8',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'hiv6lj83n5vr5sa8gaqgfgnxm',
+ targetTableId: '3d8p5abv7ide9fb9cyirw6tbj',
+ sourceFieldId: 'zcln1lpn412wbelkaf2t9h6th',
+ targetFieldId: 'q9diahjtnqy4z6hpgonjzkzkc',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sy952r978zvyjxapcwbcrc77c',
+ name: 'entries_id_foreign21',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'dib1gwzwt51eel6kbkopd6zq0',
+ targetTableId: 'eus5y1pppa7ws5kx4szie36b3',
+ sourceFieldId: 'in6bxafo9gbg99mqxkitx66d6',
+ targetFieldId: '3wuv9e2i17hygart9p1aiph1p',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tpsdazs9x8w5g6hmifttn1sjh',
+ name: 'users_id_foreign10',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: 'l9g6nwa93ys7jgdcw0l53yqpo',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: 'syd1w3v22fsulmvgtay0sg8cu',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'u7sufnpb93un0yiyt0kiplfl6',
+ name: 'users_id_foreign25',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: 'eus5y1pppa7ws5kx4szie36b3',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: 'y5392l5msropzh6mf2qjt6yh9',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v1jgi9ybjhock1cdtwa5xfe75',
+ name: 'authentication_tokens_user_id_fk',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '39ny0ajiqsk9ikax7bj3js3aq',
+ targetTableId: 'yl722acu32ijclvq81d01kg34',
+ sourceFieldId: '9uq9dydmax0v4gq4d6u4phbrb',
+ targetFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w8qosvw9td3fjvbkmdu939r58',
+ name: 'users_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: 'ixjbz9qsazvalh09grm3cnkyp',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: 'a75vyodug8c0qxd28cmp7shfq',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wqcpfhgx8g9yyx7h0tlmg9e6d',
+ name: 'feeds_id_foreign5',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'c6x4nnb3mbeilsxxd6ugcwk61',
+ targetTableId: '3d8p5abv7ide9fb9cyirw6tbj',
+ sourceFieldId: 'ywuey3u8wrb376tjk3t31rnh5',
+ targetFieldId: 'qivgowx8f28gcjeent7mtdy2v',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yqrcdx3iz05ulh6t7m0p8ppwv',
+ name: 'feeds_id_foreign1',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'c6x4nnb3mbeilsxxd6ugcwk61',
+ targetTableId: 'eus5y1pppa7ws5kx4szie36b3',
+ sourceFieldId: 'ywuey3u8wrb376tjk3t31rnh5',
+ targetFieldId: 'juum44jix4wcrhooc9cyktkrt',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yuq9u19ebtcgs1u3t2y4805mj',
+ name: 'users_id_foreign3',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yl722acu32ijclvq81d01kg34',
+ targetTableId: 'x9duzqwy3mldu0yhynbd148as',
+ sourceFieldId: 'tkgjq5tsyjsjodjkqyx5sxway',
+ targetFieldId: '4nejfj949yybg9pxjree6c29k',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zllfho7b3te8ggkgqhma4z0ns',
+ name: 'feeds_id_foreign12',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'c6x4nnb3mbeilsxxd6ugcwk61',
+ targetTableId: 'dib1gwzwt51eel6kbkopd6zq0',
+ sourceFieldId: 'ywuey3u8wrb376tjk3t31rnh5',
+ targetFieldId: 'ot8fmst2ca47ab4nj8228fhic',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/flarum-db.ts b/src/templates-data/templates/flarum-db.ts
new file mode 100644
index 00000000..77467e2e
--- /dev/null
+++ b/src/templates-data/templates/flarum-db.ts
@@ -0,0 +1,3163 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/flarum-db.png';
+import imageDark from '@/assets/templates/flarum-db-dark.png';
+
+export const flarumDb: Template = {
+ slug: 'flarum-database',
+ name: 'Flarum',
+ shortDescription: 'Discussion platform',
+ description: 'Simple forum software for building great communities.',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'],
+ featured: false,
+ url: 'https://flarum.org',
+ diagram: {
+ id: 'diagramexample27',
+ name: 'flarum-db',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '2mb2705caau1mb9347osipmdy',
+ name: 'tags',
+ schema: 'public',
+ x: 2100,
+ y: 100,
+ fields: [
+ {
+ id: 'rtib2b92r4btl0wgcr7e9e85l',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5afk9sgl0t6v22ixlyzsyomj2',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0qy9yr6w43u5evi9ix24iqq52',
+ name: 'slug',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7rubhv8t9dxyhnecc78lhfikn',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '69fildhnh9phx10hsav1nv5ut',
+ name: 'color',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ypp4yepgk9ne5ea4wjxv68gkb',
+ name: 'background_path',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '08ltqrmy3i4u4gujhaserif1k',
+ name: 'background_mode',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3km24uessljvij7b9ayi6l8ny',
+ name: 'position',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wye3tqwlhidjy47dylpak8fdw',
+ name: 'parent_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p8mlr90r3qux9kl56y05xildl',
+ name: 'default_sort',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2gq4i795yl60iwsurn0ozjkw8',
+ name: 'is_restricted',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cnwlvxxxw1b416w5k5j2x0m27',
+ name: 'is_hidden',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0br59ojc95z3k2gpw2igqb8a4',
+ name: 'discussion_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '61efvumuyec05vvo35rec10qo',
+ name: 'last_posted_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8k772vcro6pf05aq6jk3oyspr',
+ name: 'last_posted_discussion_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '649zo8ugsdkapt00e60l8j32r',
+ name: 'last_posted_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't6w3uu4jg4lk0cl8klmtmg5rw',
+ name: 'icon',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '4mf7pw4y9d7k2tp70mbklqd0v',
+ name: 'tags_last_posted_discussion_id_index',
+ unique: false,
+ fieldIds: ['8k772vcro6pf05aq6jk3oyspr'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '7vpwv0752f745x49r30sv8dkp',
+ name: 'tags_slug_unique',
+ unique: true,
+ fieldIds: ['0qy9yr6w43u5evi9ix24iqq52'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kheb5vrj1b0nr8gn0hhju9dua',
+ name: 'tags_parent_id_index',
+ unique: false,
+ fieldIds: ['wye3tqwlhidjy47dylpak8fdw'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'st7ivlgldemujwmorparhs9iz',
+ name: 'tags_pkey',
+ unique: true,
+ fieldIds: ['rtib2b92r4btl0wgcr7e9e85l'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gcvqzx1d3wktx3ze5jnr0c60e',
+ name: 'tags_last_posted_user_id_index',
+ unique: false,
+ fieldIds: ['649zo8ugsdkapt00e60l8j32r'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '41ltndi55rtiklcheg5lo1m7w',
+ name: 'password_tokens',
+ schema: 'public',
+ x: -367.157287525381,
+ y: 453.55339059327383,
+ fields: [
+ {
+ id: '93y4189cfekomj78bx9dv968n',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e3041drn2bgxpwfrhtvcoywyc',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xiyui21e9zw9xsn4qb2eyjshx',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '3qe7ftjzec9jxwqy93ojeorln',
+ name: 'password_tokens_pkey',
+ unique: true,
+ fieldIds: ['93y4189cfekomj78bx9dv968n'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dyvkbs7pie9la8hjl7rusay46',
+ name: 'password_tokens_user_id_index',
+ unique: false,
+ fieldIds: ['e3041drn2bgxpwfrhtvcoywyc'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '84ohhyjqif2ti5qif2kkn9jhb',
+ name: 'login_providers',
+ schema: 'public',
+ x: -53.07337294603586,
+ y: 1311.9397662556435,
+ fields: [
+ {
+ id: 'w9mujp1i8v4qielgceu1vzdf1',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '76558090uxi5ye0tbnw41ni9h',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jzstlmsjltbhh4yyecjm0mg1c',
+ name: 'provider',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n0a9531z0vyk82tqrjrefq888',
+ name: 'identifier',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sj3u6ndg98bqm77j4kpwbhd6s',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aggfie28cogkwyr8ojaoccquh',
+ name: 'last_login_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'd32xat62r2bw6k0m16sd4loow',
+ name: 'login_providers_user_id_index',
+ unique: false,
+ fieldIds: ['76558090uxi5ye0tbnw41ni9h'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iy9wgfmq1jsndjjgwux8th7vq',
+ name: 'login_providers_provider_identifier_unique',
+ unique: true,
+ fieldIds: [
+ 'jzstlmsjltbhh4yyecjm0mg1c',
+ 'n0a9531z0vyk82tqrjrefq888',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dcitbw2wm181zw6t8zsj3ysy0',
+ name: 'login_providers_pkey',
+ unique: true,
+ fieldIds: ['w9mujp1i8v4qielgceu1vzdf1'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9iotqrwnk3o7avh1ppq2e7r94',
+ name: 'access_tokens',
+ schema: 'public',
+ x: -430.3300858899106,
+ y: 1130.3300858899106,
+ fields: [
+ {
+ id: 'rudjrjgftc4klp0mxnioe7vi9',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fws09gjnnn0dsvenpt357trv1',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3v5wtclcx65k4gwoz3bhlxyni',
+ name: 'last_activity_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lqzi8kkl0kfnm7vmzm6ew8t2j',
+ name: 'lifetime_seconds',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tnpkjyjoj6il8pcm2nvfcx7hl',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'xv2pff21sffm0j9r6niqn0wew',
+ name: 'access_tokens_user_id_index',
+ unique: false,
+ fieldIds: ['fws09gjnnn0dsvenpt357trv1'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '632wcnxg4992kfl1s6dun07nd',
+ name: 'access_tokens_pkey',
+ unique: true,
+ fieldIds: ['rudjrjgftc4klp0mxnioe7vi9'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9zvzzbibadtndg0wzlqw7exdx',
+ name: 'post_mentions_user',
+ schema: 'public',
+ x: 1043.3299035655114,
+ y: 596.981758411997,
+ fields: [
+ {
+ id: 'pu3uhk9mwdp7c5ydrucpwxufs',
+ name: 'post_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pfptclpg73njmqudi6ohvo0e5',
+ name: 'mentions_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'zcrqx3414qqru7wouzeqyb93p',
+ name: 'post_mentions_user_mentions_user_id_index',
+ unique: false,
+ fieldIds: ['pfptclpg73njmqudi6ohvo0e5'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fwq9q6lwh989kmhe7fb7n5m5g',
+ name: 'post_mentions_user_pkey',
+ unique: true,
+ fieldIds: [
+ 'pu3uhk9mwdp7c5ydrucpwxufs',
+ 'pfptclpg73njmqudi6ohvo0e5',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'av3ie6254as1cc8w70oqfsk8t',
+ name: 'groups',
+ schema: 'public',
+ x: 339.2217271146041,
+ y: 971.6718020724556,
+ fields: [
+ {
+ id: 'hjinaj8f8i7y6wr9w0cezoss8',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9d0m28lynvzz6mw5dauwhrr8v',
+ name: 'name_singular',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uwax8p7w2hh4fo2wtikvawi7v',
+ name: 'name_plural',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '08y9u77lykz355jwnwucx93jd',
+ name: 'color',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'et00d8b0qqnogmkm0fqdhnfxb',
+ name: 'icon',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'khf26kj2khmi2s6kv4g8oqy8c',
+ name: 'groups_pkey',
+ unique: true,
+ fieldIds: ['hjinaj8f8i7y6wr9w0cezoss8'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dr22trjaa2t790bbchnnscve7',
+ name: 'email_tokens',
+ schema: 'public',
+ x: -587.7498645384612,
+ y: -26.856335351401412,
+ fields: [
+ {
+ id: 'xfkkbxuiwd4w3ywieepl937qs',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hn31349ha1kub3931p3bclgnq',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ypgqcblvijcioed89gwtap4bz',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0ala34i4k199hgf5vmbbc728g',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'rj4zayjfj7n0uyyilarw9bynf',
+ name: 'email_tokens_pkey',
+ unique: true,
+ fieldIds: ['xfkkbxuiwd4w3ywieepl937qs'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ri2w79ed9mnagwc8eco51bagp',
+ name: 'email_tokens_user_id_index',
+ unique: false,
+ fieldIds: ['ypgqcblvijcioed89gwtap4bz'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eo8p12pbalpbheexl0nizr4bl',
+ name: 'group_user',
+ schema: 'public',
+ x: -60.77827288539589,
+ y: 821.6718020724556,
+ fields: [
+ {
+ id: 'proflgqetodvwjg2w0cmbzjp5',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '16febr3yuju9cnredpposca77',
+ name: 'group_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'f96o0evatlhro1zvyy5ieaoxh',
+ name: 'group_user_group_id_index',
+ unique: false,
+ fieldIds: ['16febr3yuju9cnredpposca77'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2fvxuivsmakel9cq2zzr0sxwf',
+ name: 'group_user_pkey',
+ unique: true,
+ fieldIds: [
+ 'proflgqetodvwjg2w0cmbzjp5',
+ '16febr3yuju9cnredpposca77',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g0j3kny1gugtuafnob6les325',
+ name: 'group_permission',
+ schema: 'public',
+ x: 739.2217271146042,
+ y: 1121.6718020724556,
+ fields: [
+ {
+ id: '83g1aynu9tlge035ocn1zihy6',
+ name: 'group_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3chehnm69xiale5v9njqbdra1',
+ name: 'permission',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ft7lwhq2jd8xb8q9gxt2mne1u',
+ name: 'group_permission_pkey',
+ unique: true,
+ fieldIds: [
+ '83g1aynu9tlge035ocn1zihy6',
+ '3chehnm69xiale5v9njqbdra1',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h73ds41duhb95nma5zowshf82',
+ name: 'registration_tokens',
+ schema: 'public',
+ x: 1497.5239866403053,
+ y: 900.0114966707706,
+ fields: [
+ {
+ id: 'ehey5ndlmyomcwnziutdxbk12',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vydhx8qbe61epewr9vwd6ummm',
+ name: 'payload',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tnx98omqzcam8xvtw10xadomy',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nhi440n2sfolhfucer2xmnh6s',
+ name: 'provider',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7cxvkapxg24x294pengvb2a4u',
+ name: 'identifier',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '09rdzh9a3nvl65ep84notc1hd',
+ name: 'user_attributes',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'fcfxqg5zvtbx5761nt1nrda4i',
+ name: 'registration_tokens_pkey',
+ unique: true,
+ fieldIds: ['ehey5ndlmyomcwnziutdxbk12'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i79qbvbic5r6e2lk0wvsmqrm0',
+ name: 'post_likes',
+ schema: 'public',
+ x: 327.4804184830681,
+ y: -329.07390391474325,
+ fields: [
+ {
+ id: 'vsoxab2nfo8508rd4xuxbzz8b',
+ name: 'post_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fadq8ttlepfrfhnfm0i9s1cnh',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '8g5hpxb18me57hibfdsekv7jn',
+ name: 'post_likes_pkey',
+ unique: true,
+ fieldIds: [
+ 'vsoxab2nfo8508rd4xuxbzz8b',
+ 'fadq8ttlepfrfhnfm0i9s1cnh',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2l057ipms9nhrt236wftryvwc',
+ name: 'post_likes_user_id_index',
+ unique: false,
+ fieldIds: ['fadq8ttlepfrfhnfm0i9s1cnh'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mpsyauri8v76wkvpiwvknd75q',
+ name: 'tag_user',
+ schema: 'public',
+ x: 2500,
+ y: 100,
+ fields: [
+ {
+ id: 'uqv9rqyd3ifz6v35vw86qa8xh',
+ name: 'tag_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z7u6n9nggwjekzbs9vwls4cbh',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5pka4675jmca6z6pwgkg9aeuk',
+ name: 'marked_as_read_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xadgaxc0qn8iu5br68po9pblb',
+ name: 'is_hidden',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '8gevs8eblgw2rudyniledc9se',
+ name: 'tag_user_pkey',
+ unique: true,
+ fieldIds: [
+ 'z7u6n9nggwjekzbs9vwls4cbh',
+ 'uqv9rqyd3ifz6v35vw86qa8xh',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x9jinx3uom59fxhn89p1kgfoi',
+ name: 'tag_user_tag_id_index',
+ unique: false,
+ fieldIds: ['uqv9rqyd3ifz6v35vw86qa8xh'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n1xtfcm41csz2megfefzh19zl',
+ name: 'migrations',
+ schema: 'public',
+ x: 1097.5239866403053,
+ y: 900.0114966707706,
+ fields: [
+ {
+ id: '9130xz273c9vdjvflzqu6pizq',
+ name: 'migration',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i66sqld4pl2wv9hcrtizzfaoi',
+ name: 'extension',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nyw6enhkk8fvdcopxmx208xjm',
+ name: 'discussions',
+ schema: 'public',
+ x: 1300,
+ y: 100,
+ fields: [
+ {
+ id: 'dfmjtxld86b7s4q0xi6f7anae',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r4rl4frl24vw931087xkj1jul',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lhe6ofac4qjxxhtvra2m19weg',
+ name: 'comment_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yl8wfw1mvcdzv70nilwshzazi',
+ name: 'participant_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dj7ac8su1i4a0x7utvpjvdu51',
+ name: 'post_number_index',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i5jxyv8r9lyyh6doi2sbtw9lc',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ae94me7w8s3ettf8gigosjc18',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1dbzbxqtwcqxcsyh7n4a0cdrd',
+ name: 'first_post_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yu49jxixyhd64wfyghsdnc4hb',
+ name: 'last_posted_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't2ns6mkakmel771coj84zv1qh',
+ name: 'last_posted_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xuqik30ewxdbo7sbk07nr664g',
+ name: 'last_post_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'or8p68pyrgzolawpuln27vrf1',
+ name: 'last_post_number',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'isn5q262xfzv811lyv8gih65x',
+ name: 'hidden_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h91b6myvk3votlullkd2hhtws',
+ name: 'hidden_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y8k81ihlhjyp9lzzmnks94udw',
+ name: 'slug',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sah4qnwb4ohh77ttelwdp8q62',
+ name: 'is_private',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zewrndwnd59b6bxcu6zgwwvjo',
+ name: 'is_approved',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lv4k3sqccghjqy48v1edglibq',
+ name: 'is_locked',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2tpm8yfi1dwglqn0vgolsieod',
+ name: 'is_sticky',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 's0ysvwz4qeg9im5t54qfgxom2',
+ name: 'discussions_hidden_user_id_index',
+ unique: false,
+ fieldIds: ['h91b6myvk3votlullkd2hhtws'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fqgf83dkmgi6fuxs0c79l7ng3',
+ name: 'discussions_participant_count_index',
+ unique: false,
+ fieldIds: ['yl8wfw1mvcdzv70nilwshzazi'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '7e52gaov0v7mqwh6gotpd1l68',
+ name: 'discussions_hidden_at_index',
+ unique: false,
+ fieldIds: ['isn5q262xfzv811lyv8gih65x'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'untiom83ey3cbdxezkzz61r3u',
+ name: 'discussions_pkey',
+ unique: true,
+ fieldIds: ['dfmjtxld86b7s4q0xi6f7anae'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd2mkjfr75gywx5o24nwf7dhfv',
+ name: 'discussions_is_locked_index',
+ unique: false,
+ fieldIds: ['lv4k3sqccghjqy48v1edglibq'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i3jfyjs5uf2hygv7r3pu54w80',
+ name: 'discussions_first_post_id_index',
+ unique: false,
+ fieldIds: ['1dbzbxqtwcqxcsyh7n4a0cdrd'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wmx3tjg8z4yowpyw6r0rwwmnj',
+ name: 'discussions_comment_count_index',
+ unique: false,
+ fieldIds: ['lhe6ofac4qjxxhtvra2m19weg'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nu63mifisajewmbddd7ii52fe',
+ name: 'discussions_last_post_id_index',
+ unique: false,
+ fieldIds: ['xuqik30ewxdbo7sbk07nr664g'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '8xjcaet4btsmysh3o89xki4y7',
+ name: 'discussions_user_id_index',
+ unique: false,
+ fieldIds: ['ae94me7w8s3ettf8gigosjc18'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dcnhicjli9wc67jrl0kofejfc',
+ name: 'discussions_last_posted_user_id_index',
+ unique: false,
+ fieldIds: ['t2ns6mkakmel771coj84zv1qh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '6x8s40is02xiccg59eenslz9l',
+ name: 'discussions_last_posted_at_index',
+ unique: false,
+ fieldIds: ['yu49jxixyhd64wfyghsdnc4hb'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tjoj0jgu9h4p9ha9ouczix9ai',
+ name: 'discussions_created_at_index',
+ unique: false,
+ fieldIds: ['i5jxyv8r9lyyh6doi2sbtw9lc'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zzkavl0vatuywbqql1ht1uatz',
+ name: 'discussions_created_at_is_sticky_index',
+ unique: false,
+ fieldIds: [
+ 'i5jxyv8r9lyyh6doi2sbtw9lc',
+ '2tpm8yfi1dwglqn0vgolsieod',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ name: 'users',
+ schema: 'public',
+ x: 100,
+ y: 100,
+ fields: [
+ {
+ id: 'nid8gf84yfznrp3ua3uzsnpz9',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wrmtefvyj98rugwzzlqu8j5zk',
+ name: 'username',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v46r9wn63955pjig472k2323r',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z6z7s29tgi5tzo7h4cry2amc8',
+ name: 'is_email_confirmed',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3i5mxmy8hgv30idt10hsrlkug',
+ name: 'password',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oy9ou0jcqkvfni1trs1r0q5a6',
+ name: 'bio',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2nrpm5sjrjszuhi6bseqn51a9',
+ name: 'avatar_url',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'corts8gdxg21dstopjv1f0ae7',
+ name: 'preferences',
+ type: {
+ id: 'bytea',
+ name: 'bytea',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vf4q7g3hz52j3q1jii8x17xyw',
+ name: 'joined_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'og9vftiij7fqhwev6zf9b0tmx',
+ name: 'last_seen_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cfe9lbia7g64jmpv3dewbh37y',
+ name: 'marked_all_as_read_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j1awez4e4n1s72datlnmj06nd',
+ name: 'read_notifications_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r27y4m78b5eaosvzlgsi7j5ek',
+ name: 'discussion_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jrjie2hmcdedz9705q0wgjl4u',
+ name: 'comment_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i0t8ftncd8ram5pwymmgcnom9',
+ name: 'read_flags_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8o7xbqkua6lswscmkwac1mvez',
+ name: 'suspended_until',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '9bpg6yeouq73rgalqoyvas77c',
+ name: 'users_pkey',
+ unique: true,
+ fieldIds: ['nid8gf84yfznrp3ua3uzsnpz9'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '0xrc3c47zd2xrx00hhft41jl9',
+ name: 'users_comment_count_index',
+ unique: false,
+ fieldIds: ['jrjie2hmcdedz9705q0wgjl4u'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ubrmcs4qgw7jhtljyorg57186',
+ name: 'users_joined_at_index',
+ unique: false,
+ fieldIds: ['vf4q7g3hz52j3q1jii8x17xyw'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5dcxqvvoc9vgo8ptxm39huh8q',
+ name: 'users_username_unique',
+ unique: true,
+ fieldIds: ['wrmtefvyj98rugwzzlqu8j5zk'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e78923bdrqsc1jrrhwp8putc8',
+ name: 'users_discussion_count_index',
+ unique: false,
+ fieldIds: ['r27y4m78b5eaosvzlgsi7j5ek'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n1msuqc4hx1kgvope2kezasoe',
+ name: 'users_last_seen_at_index',
+ unique: false,
+ fieldIds: ['og9vftiij7fqhwev6zf9b0tmx'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pb7d5u1lr8xxkbjz7dtd4lijf',
+ name: 'users_email_unique',
+ unique: true,
+ fieldIds: ['v46r9wn63955pjig472k2323r'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ojfj5ch3j9n612iesxradya5u',
+ name: 'flags',
+ schema: 'public',
+ x: 704.9256092394921,
+ y: 693.5299732688939,
+ fields: [
+ {
+ id: 'x9urndjtj72diu0sus625trx9',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mumex9fguc72tx46m6mqveo2s',
+ name: 'post_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pmp7tqc3bzojfbq0a396qy4wd',
+ name: 'type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jv8lafccta0ar0n78oow3ukiv',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ec1jdkkuwe9x2v3r7944m6ksk',
+ name: 'reason',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h1ieqdz2j7yoy5mfsox0pz8z0',
+ name: 'reason_detail',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1ueul17bnortx86cv8fbudg7w',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '0cdcuywby8n3ze31wpamcyzes',
+ name: 'flags_created_at_index',
+ unique: false,
+ fieldIds: ['1ueul17bnortx86cv8fbudg7w'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eqmw7kxkr2zryv71j1jwjndyw',
+ name: 'flags_pkey',
+ unique: true,
+ fieldIds: ['x9urndjtj72diu0sus625trx9'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l3x91ki5mr4lsupwpkm3p0mfc',
+ name: 'flags_post_id_index',
+ unique: false,
+ fieldIds: ['mumex9fguc72tx46m6mqveo2s'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '4c61ljp69h5hhu0fh7eukrggj',
+ name: 'flags_user_id_index',
+ unique: false,
+ fieldIds: ['jv8lafccta0ar0n78oow3ukiv'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ou0ghkehwg48riljdhoyl50oy',
+ name: 'notifications',
+ schema: 'public',
+ x: -782.842712474619,
+ y: 453.55339059327383,
+ fields: [
+ {
+ id: 'hvqa667lus46yc2lpub6v0lxe',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'inaxc0i5rvarp2r0cwumqnfb0',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q8tw4fxrww9k49j18nnv4y7zs',
+ name: 'from_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b1q5vjwi3xuterd3rlfd7zlnu',
+ name: 'type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8fkpxstu4zcjia00hy7jk4dpf',
+ name: 'subject_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f9sqaxq1t9v3fsbfmdz3ha14w',
+ name: 'data',
+ type: {
+ id: 'bytea',
+ name: 'bytea',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eblxwpvkedu9ewnpun18b8ii8',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cdmntj04kylmkast58quvzyy0',
+ name: 'is_deleted',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z7ovfv90h9mhokcqw5mv66gfp',
+ name: 'read_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '75dw8vhix4zjnazf6rhrq056f',
+ name: 'notifications_user_id_index',
+ unique: false,
+ fieldIds: ['inaxc0i5rvarp2r0cwumqnfb0'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iewjy7iede24dzmkuspc5mvwc',
+ name: 'notifications_pkey',
+ unique: true,
+ fieldIds: ['hvqa667lus46yc2lpub6v0lxe'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zthfiowwx7o5mj5gwrn4vwznx',
+ name: 'notifications_from_user_id_index',
+ unique: false,
+ fieldIds: ['q8tw4fxrww9k49j18nnv4y7zs'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pn8jnb8jrt2yugcdwj7o9kxqm',
+ name: 'settings',
+ schema: 'public',
+ x: 1897.5239866403053,
+ y: 900.0114966707706,
+ fields: [
+ {
+ id: 'cb4g32b0th0u79sajoowbmiik',
+ name: 'key',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z4cvl3q6xden4hoqefztv9rbm',
+ name: 'value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '1tnsvfpj5jz7h75o193jb4lv2',
+ name: 'settings_pkey',
+ unique: true,
+ fieldIds: ['cb4g32b0th0u79sajoowbmiik'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qffdd17m44hfpo7vn0fewp3sb',
+ name: 'post_mentions_post',
+ schema: 'public',
+ x: 327.4804184830681,
+ y: 529.0739039147434,
+ fields: [
+ {
+ id: 'sjez4z531bzkplton6c82dtl8',
+ name: 'post_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vl58gyx5cr47fyobwfz46bk9b',
+ name: 'mentions_post_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'elinueubrlq8vihl6edyr45bv',
+ name: 'post_mentions_post_mentions_post_id_index',
+ unique: false,
+ fieldIds: ['vl58gyx5cr47fyobwfz46bk9b'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x1sdhgpvfccan3eixsus7tsad',
+ name: 'post_mentions_post_pkey',
+ unique: true,
+ fieldIds: [
+ 'sjez4z531bzkplton6c82dtl8',
+ 'vl58gyx5cr47fyobwfz46bk9b',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x1nc7wmzqawy5usdsx6kofu9b',
+ name: 'discussion_user',
+ schema: 'public',
+ x: 1423.606797749979,
+ y: 575.5282581475767,
+ fields: [
+ {
+ id: 'kzs43v7fdlntibyd7d76vb60x',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v171tp6tmgeg5l24a3tfpk0ul',
+ name: 'discussion_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cu4imitmwuhzdg0j42ypku0l8',
+ name: 'last_read_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bcdw1wg9r23thoehe5t42h0bi',
+ name: 'last_read_post_number',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1kkmxs4r7129erulv7ol7qxcf',
+ name: 'subscription',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'uk0wyaecs30xe39rj2e8w2o5a',
+ name: 'discussion_user_pkey',
+ unique: true,
+ fieldIds: [
+ 'kzs43v7fdlntibyd7d76vb60x',
+ 'v171tp6tmgeg5l24a3tfpk0ul',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '47ojgwr8faanu6lewpshyi7uv',
+ name: 'discussion_user_discussion_id_index',
+ unique: false,
+ fieldIds: ['v171tp6tmgeg5l24a3tfpk0ul'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y25t9jviz63yntj14588tshi9',
+ name: 'discussion_tag',
+ schema: 'public',
+ x: 1700,
+ y: 100,
+ fields: [
+ {
+ id: '5tpbzyji3yxkyy5ni5zw0a4eg',
+ name: 'tag_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pqsm8esb42bhs4yhrojjec2ld',
+ name: 'discussion_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'we2sbguydm14p2d15d82zeogo',
+ name: 'discussion_tag_pkey',
+ unique: true,
+ fieldIds: [
+ 'pqsm8esb42bhs4yhrojjec2ld',
+ '5tpbzyji3yxkyy5ni5zw0a4eg',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'epkgmfqbrlp0j4ptekpq60ckx',
+ name: 'discussion_tag_tag_id_index',
+ unique: false,
+ fieldIds: ['5tpbzyji3yxkyy5ni5zw0a4eg'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z4d1kyxg1yexrors7ihzkluaj',
+ name: 'posts',
+ schema: 'public',
+ x: 900,
+ y: 100,
+ fields: [
+ {
+ id: '3z4jyrd3e8f85y55kzourd4rz',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fsf9roltqqg4nggpxr2yykyhl',
+ name: 'discussion_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ede42mcgmfipjeho09yhl4urh',
+ name: 'number',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hftdvrrlw19qtg2m201rb93po',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '73unaj31rrgznx9xygjh22dca',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '98p9jigmfhd22e0p935mh79dp',
+ name: 'type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1fzv6bdnqd3k0j19p4dqs5c33',
+ name: 'content',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lx7jliv6epv1jezqf6mje4xrh',
+ name: 'edited_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd6je483dlf03qcsbg8opp57dt',
+ name: 'edited_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lpg1t6emn8re9amvh40u5qu1b',
+ name: 'hidden_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fey1whxn8vjlxxdznn44jtro5',
+ name: 'hidden_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lsbhzxogwniqjpkkshk4tau28',
+ name: 'ip_address',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a3d87ecjqf8buwng21jey80jf',
+ name: 'is_private',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xzj9wiu9mddhzc1xoh33il2n2',
+ name: 'is_approved',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'c0h3b5oxne7d9q75yl5b021bl',
+ name: 'posts_discussion_id_number_unique',
+ unique: true,
+ fieldIds: [
+ 'fsf9roltqqg4nggpxr2yykyhl',
+ 'ede42mcgmfipjeho09yhl4urh',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '3u43ye56f6bgb8bpdim9j2zme',
+ name: 'posts_pkey',
+ unique: true,
+ fieldIds: ['3z4jyrd3e8f85y55kzourd4rz'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 's5yegsdwu9z6jbewk17un6hnu',
+ name: 'posts_created_at_user_id_index',
+ unique: false,
+ fieldIds: [
+ 'hftdvrrlw19qtg2m201rb93po',
+ '73unaj31rrgznx9xygjh22dca',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '77gqdvdi6w2x41ay7wnleitq8',
+ name: 'posts_edited_user_id_index',
+ unique: false,
+ fieldIds: ['d6je483dlf03qcsbg8opp57dt'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mg0ggscrlltk7pva0jgig934i',
+ name: 'posts_discussion_id_created_at_index',
+ unique: false,
+ fieldIds: [
+ 'fsf9roltqqg4nggpxr2yykyhl',
+ 'hftdvrrlw19qtg2m201rb93po',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'utkc2gf4jxw0l0cghbstsmcss',
+ name: 'posts_discussion_id_number_index',
+ unique: false,
+ fieldIds: [
+ 'fsf9roltqqg4nggpxr2yykyhl',
+ 'ede42mcgmfipjeho09yhl4urh',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rjj9zyg9n1096rjnpbmxr3rgg',
+ name: 'posts_hidden_user_id_index',
+ unique: false,
+ fieldIds: ['fey1whxn8vjlxxdznn44jtro5'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zdr7axc2l7jkjderk0rtrf8rc',
+ name: 'post_user',
+ schema: 'public',
+ x: 500,
+ y: 100,
+ fields: [
+ {
+ id: 'x8sgfxqia6g7iqddzrk8betvu',
+ name: 'post_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q6z1ofusb2wtvb2g84dcbicd4',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'atk7qpe3picanhjez7vnc74ox',
+ name: 'post_user_pkey',
+ unique: true,
+ fieldIds: [
+ 'x8sgfxqia6g7iqddzrk8betvu',
+ 'q6z1ofusb2wtvb2g84dcbicd4',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l75wzrm0je1ha6f84bbdc18h0',
+ name: 'post_user_user_id_index',
+ unique: false,
+ fieldIds: ['q6z1ofusb2wtvb2g84dcbicd4'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zf33xyx0ssjnutw5qzlf4058i',
+ name: 'api_keys',
+ schema: 'public',
+ x: -277.2567129438748,
+ y: 31.609680365732743,
+ fields: [
+ {
+ id: 'hir2bq5xbekiwdta1gp6n50wr',
+ name: 'key',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c8tgqokqb60c2f6jvft198s9e',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4txbxtvunfijfnli1sjspy8cy',
+ name: 'allowed_ips',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dnocy0go33vnkty1qh12t8hky',
+ name: 'scopes',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cq85pfi7s6k3y5f1t1h9itzse',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o280ziotfavy928gvizdxevjx',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z4g92khqoc5ivatzln2kzemxm',
+ name: 'last_activity_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'k9izkypcvqysyinpwspz5ub0v',
+ name: 'api_keys_user_id_index',
+ unique: false,
+ fieldIds: ['cq85pfi7s6k3y5f1t1h9itzse'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hwemc65y39sa3jv8xu9hrgcfl',
+ name: 'api_keys_key_unique',
+ unique: true,
+ fieldIds: ['hir2bq5xbekiwdta1gp6n50wr'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dohxvxsuv2oro298foc0pv88t',
+ name: 'api_keys_pkey',
+ unique: true,
+ fieldIds: ['c8tgqokqb60c2f6jvft198s9e'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '1kk5ij9hcrii07zrrmwk5yt7e',
+ name: 'post_user_post_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'zdr7axc2l7jkjderk0rtrf8rc',
+ targetTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ sourceFieldId: 'x8sgfxqia6g7iqddzrk8betvu',
+ targetFieldId: '3z4jyrd3e8f85y55kzourd4rz',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '1v98k4visvz1f697f8krb2fe2',
+ name: 'group_user_group_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'eo8p12pbalpbheexl0nizr4bl',
+ targetTableId: 'av3ie6254as1cc8w70oqfsk8t',
+ sourceFieldId: '16febr3yuju9cnredpposca77',
+ targetFieldId: 'hjinaj8f8i7y6wr9w0cezoss8',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '1z4941xji82uq9alyonl89x35',
+ name: 'discussion_tag_tag_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'y25t9jviz63yntj14588tshi9',
+ targetTableId: '2mb2705caau1mb9347osipmdy',
+ sourceFieldId: '5tpbzyji3yxkyy5ni5zw0a4eg',
+ targetFieldId: 'rtib2b92r4btl0wgcr7e9e85l',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2f84c1m5ma02qirzfb52qa1yh',
+ name: 'access_tokens_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '9iotqrwnk3o7avh1ppq2e7r94',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'fws09gjnnn0dsvenpt357trv1',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2maccs474w3quu9rxvlrjrx5j',
+ name: 'group_user_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'eo8p12pbalpbheexl0nizr4bl',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'proflgqetodvwjg2w0cmbzjp5',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '3cjqjwsj56nx04px1qcip2v5p',
+ name: 'discussions_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'nyw6enhkk8fvdcopxmx208xjm',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'ae94me7w8s3ettf8gigosjc18',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '3i44gudqtjtpuj306ls9ben24',
+ name: 'api_keys_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'zf33xyx0ssjnutw5qzlf4058i',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'cq85pfi7s6k3y5f1t1h9itzse',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '41wl1xc8nu1ygrwchccjuxmgw',
+ name: 'discussion_user_discussion_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'x1nc7wmzqawy5usdsx6kofu9b',
+ targetTableId: 'nyw6enhkk8fvdcopxmx208xjm',
+ sourceFieldId: 'v171tp6tmgeg5l24a3tfpk0ul',
+ targetFieldId: 'dfmjtxld86b7s4q0xi6f7anae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '446o5ejfzdml5bh1fibkdb6hf',
+ name: 'discussion_user_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'x1nc7wmzqawy5usdsx6kofu9b',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'kzs43v7fdlntibyd7d76vb60x',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '48wkk39vl2pa1wwu61irrjhr0',
+ name: 'group_permission_group_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'g0j3kny1gugtuafnob6les325',
+ targetTableId: 'av3ie6254as1cc8w70oqfsk8t',
+ sourceFieldId: '83g1aynu9tlge035ocn1zihy6',
+ targetFieldId: 'hjinaj8f8i7y6wr9w0cezoss8',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '7iwwh28yajzoo2wmue6gp8vrk',
+ name: 'post_user_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'zdr7axc2l7jkjderk0rtrf8rc',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'q6z1ofusb2wtvb2g84dcbicd4',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '84a77a2zhcbznk0v4vl5ltp3v',
+ name: 'email_tokens_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'dr22trjaa2t790bbchnnscve7',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'ypgqcblvijcioed89gwtap4bz',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '8ju1wjnuml1bm7cw2o3upmz5m',
+ name: 'post_likes_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'i79qbvbic5r6e2lk0wvsmqrm0',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'fadq8ttlepfrfhnfm0i9s1cnh',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'agpiumkox48tbl6xt8vvyfo19',
+ name: 'discussions_first_post_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'nyw6enhkk8fvdcopxmx208xjm',
+ targetTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ sourceFieldId: '1dbzbxqtwcqxcsyh7n4a0cdrd',
+ targetFieldId: '3z4jyrd3e8f85y55kzourd4rz',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'brincltrfguanzb5warixnn2b',
+ name: 'posts_hidden_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'fey1whxn8vjlxxdznn44jtro5',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dq1liwlp3c321dsid1g4c63zn',
+ name: 'notifications_from_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ou0ghkehwg48riljdhoyl50oy',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'q8tw4fxrww9k49j18nnv4y7zs',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f0ezm5z81n7awhc49wfyhnd7j',
+ name: 'tag_user_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'mpsyauri8v76wkvpiwvknd75q',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'z7u6n9nggwjekzbs9vwls4cbh',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g8os0wazd98k56rcf8nuj0u0f',
+ name: 'flags_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ojfj5ch3j9n612iesxradya5u',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'jv8lafccta0ar0n78oow3ukiv',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gvgnrbc9huciwlyk2mgrt11bn',
+ name: 'discussions_last_post_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'nyw6enhkk8fvdcopxmx208xjm',
+ targetTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ sourceFieldId: 'xuqik30ewxdbo7sbk07nr664g',
+ targetFieldId: '3z4jyrd3e8f85y55kzourd4rz',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hbgb9wj0z9fvvxiojwj7c9dsz',
+ name: 'tags_parent_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '2mb2705caau1mb9347osipmdy',
+ targetTableId: '2mb2705caau1mb9347osipmdy',
+ sourceFieldId: 'wye3tqwlhidjy47dylpak8fdw',
+ targetFieldId: 'rtib2b92r4btl0wgcr7e9e85l',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ivimu8j0036xw4p27dx5ww038',
+ name: 'posts_discussion_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ targetTableId: 'nyw6enhkk8fvdcopxmx208xjm',
+ sourceFieldId: 'fsf9roltqqg4nggpxr2yykyhl',
+ targetFieldId: 'dfmjtxld86b7s4q0xi6f7anae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j82di7qw34guad8ixb0menxn6',
+ name: 'tags_last_posted_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '2mb2705caau1mb9347osipmdy',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: '649zo8ugsdkapt00e60l8j32r',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kpvhe39i6xhnrhg24w5aejm8j',
+ name: 'discussion_tag_discussion_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'y25t9jviz63yntj14588tshi9',
+ targetTableId: 'nyw6enhkk8fvdcopxmx208xjm',
+ sourceFieldId: 'pqsm8esb42bhs4yhrojjec2ld',
+ targetFieldId: 'dfmjtxld86b7s4q0xi6f7anae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'li3e7tvrldj8pxn9m3dphdlbo',
+ name: 'tag_user_tag_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'mpsyauri8v76wkvpiwvknd75q',
+ targetTableId: '2mb2705caau1mb9347osipmdy',
+ sourceFieldId: 'uqv9rqyd3ifz6v35vw86qa8xh',
+ targetFieldId: 'rtib2b92r4btl0wgcr7e9e85l',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pq9jg4gxhcp87roxboaiwrzub',
+ name: 'tags_last_posted_discussion_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '2mb2705caau1mb9347osipmdy',
+ targetTableId: 'nyw6enhkk8fvdcopxmx208xjm',
+ sourceFieldId: '8k772vcro6pf05aq6jk3oyspr',
+ targetFieldId: 'dfmjtxld86b7s4q0xi6f7anae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qy8b71rh5hqx5d8qect45j75o',
+ name: 'post_likes_post_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'i79qbvbic5r6e2lk0wvsmqrm0',
+ targetTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ sourceFieldId: 'vsoxab2nfo8508rd4xuxbzz8b',
+ targetFieldId: '3z4jyrd3e8f85y55kzourd4rz',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ss6w3z6oietm79olui39k2qry',
+ name: 'post_mentions_user_post_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '9zvzzbibadtndg0wzlqw7exdx',
+ targetTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ sourceFieldId: 'pu3uhk9mwdp7c5ydrucpwxufs',
+ targetFieldId: '3z4jyrd3e8f85y55kzourd4rz',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tczw49gy0vxzcxxj6cvxb50f5',
+ name: 'notifications_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ou0ghkehwg48riljdhoyl50oy',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'inaxc0i5rvarp2r0cwumqnfb0',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ted0lz19e2jzuwulerb0n2y9h',
+ name: 'discussions_hidden_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'nyw6enhkk8fvdcopxmx208xjm',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'h91b6myvk3votlullkd2hhtws',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tj567w3l0zmt3t8wfr1u9tcgp',
+ name: 'password_tokens_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '41ltndi55rtiklcheg5lo1m7w',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'e3041drn2bgxpwfrhtvcoywyc',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vj8gzl7xtdpshgenuob905jke',
+ name: 'post_mentions_post_post_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'qffdd17m44hfpo7vn0fewp3sb',
+ targetTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ sourceFieldId: 'sjez4z531bzkplton6c82dtl8',
+ targetFieldId: '3z4jyrd3e8f85y55kzourd4rz',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vv2i3c2mwq5sbgn7jobwgwew7',
+ name: 'post_mentions_post_mentions_post_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'qffdd17m44hfpo7vn0fewp3sb',
+ targetTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ sourceFieldId: 'vl58gyx5cr47fyobwfz46bk9b',
+ targetFieldId: '3z4jyrd3e8f85y55kzourd4rz',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wqicenjhexg2441lwvhgj6yax',
+ name: 'discussions_last_posted_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'nyw6enhkk8fvdcopxmx208xjm',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 't2ns6mkakmel771coj84zv1qh',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wu9i1cyowogz7chi5w94g0yms',
+ name: 'posts_edited_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'd6je483dlf03qcsbg8opp57dt',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xa301b0ln2beo0r7j881ogpxm',
+ name: 'login_providers_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '84ohhyjqif2ti5qif2kkn9jhb',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: '76558090uxi5ye0tbnw41ni9h',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xplyrolaxghowh459pt854wny',
+ name: 'post_mentions_user_mentions_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '9zvzzbibadtndg0wzlqw7exdx',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: 'pfptclpg73njmqudi6ohvo0e5',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xwlf3i745bodeqqvwnciyrgs6',
+ name: 'flags_post_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ojfj5ch3j9n612iesxradya5u',
+ targetTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ sourceFieldId: 'mumex9fguc72tx46m6mqveo2s',
+ targetFieldId: '3z4jyrd3e8f85y55kzourd4rz',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ytpkza74jhdna9sukx7td1s7b',
+ name: 'posts_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'z4d1kyxg1yexrors7ihzkluaj',
+ targetTableId: 'o9l8jgdy1piu9d1t4tinnt7xd',
+ sourceFieldId: '73unaj31rrgznx9xygjh22dca',
+ targetFieldId: 'nid8gf84yfznrp3ua3uzsnpz9',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/freescout-db.ts b/src/templates-data/templates/freescout-db.ts
new file mode 100644
index 00000000..66fb3d57
--- /dev/null
+++ b/src/templates-data/templates/freescout-db.ts
@@ -0,0 +1,3869 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/freescout-db.png';
+import imageDark from '@/assets/templates/freescout-db-dark.png';
+
+export const freescoutDb: Template = {
+ slug: 'freescout-database',
+ name: 'Freescout',
+ shortDescription: 'Self-Hosted Zendesk',
+ description:
+ 'Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'],
+ featured: false,
+ url: 'https://github.com/freescout-help-desk/freescout',
+ diagram: {
+ id: 'freescout_db',
+ name: 'freescout-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '1fv1cbaorwobkdqcimbh3uto6',
+ name: 'options',
+ schema: 'public',
+ x: 2250,
+ y: 1100,
+ fields: [
+ {
+ id: 'wvjxiir18rzb12tpywxq8u2ms',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gjjurwlyelsbpzd9716ouew71',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fvb4jn6nryd3xcecki3f0adem',
+ name: 'value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'bw9p2ltrzx9iz2a57kp4cpucl',
+ name: 'options_pkey',
+ unique: true,
+ fieldIds: ['wvjxiir18rzb12tpywxq8u2ms'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fioogcfks0uwnvy0ejn60rxg4',
+ name: 'options_name_unique',
+ unique: true,
+ fieldIds: ['gjjurwlyelsbpzd9716ouew71'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '49c77bem6qy1p6uh9k4b1wjm7',
+ name: 'ltm_translations',
+ schema: 'public',
+ x: 900,
+ y: 1550,
+ fields: [
+ {
+ id: '88iaspkp9gj6ug6tetlnshz7t',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2wn5o1j0pn83j4ju7ak88b40i',
+ name: 'status',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ {
+ id: '0i8c5b03p0lu3prn4mhzngxmh',
+ name: 'locale',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xglvo41nmuelh7mktjh2vm207',
+ name: 'group',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5nb5xjsyrhye3oe5z5bjdaq0c',
+ name: 'key',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dw2ynf0y5sof2c6p3z2m78iq4',
+ name: 'value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'u4311lhl90qgy0c1bzgi72mrh',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xv170zj8hcq5t5hslkfuxctmh',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7q1ob0h2kl4dnfmub3b0yz5jv',
+ name: 'hash',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '25yczaens8xtyezfoydib363i',
+ name: 'ltm_translations_pkey',
+ unique: true,
+ fieldIds: ['88iaspkp9gj6ug6tetlnshz7t'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '6tu0bt3lcoxx7zmzseor3oiy6',
+ name: 'ltm_translations_hash_unique',
+ unique: true,
+ fieldIds: ['7q1ob0h2kl4dnfmub3b0yz5jv'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5doc1uac1hbcviuulb56ludlu',
+ name: 'threads',
+ schema: 'public',
+ x: 1127.4804184830682,
+ y: 1129.0739039147434,
+ fields: [
+ {
+ id: 'eoqmotrohwt42eiyb0abfuzig',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bvndnzm3ork5nhjz5nx56ddle',
+ name: 'conversation_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j9n32i9crqr7yff0boqkzmskd',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0loxug76fip17oxshft21w2tj',
+ name: 'type',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jeeudln0tq4qyhzgyvz8bls5p',
+ name: 'subtype',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'urffrtumu8qkki7mm8ovkjkdg',
+ name: 'status',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gpsp87mt86vt745jl039o3fmi',
+ name: 'state',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sn2inq4g6fiw8iu6ojy9ine22',
+ name: 'action_type',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dtt6b96bd36h32hx7ty9cv4vu',
+ name: 'action_data',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ohpo2f3bw9psqji3w29gja7fl',
+ name: 'body',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ndcicdm3rk158hnd46goyheh4',
+ name: 'headers',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't4xmggqoa7ns7qvgs0qlvav6a',
+ name: 'from',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uafj3vr2awbay1k80nj9tfojk',
+ name: 'to',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c9jx8p2rd9wp9ne8d0rulq5y5',
+ name: 'cc',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7p2sqa88omzlsy7wd3cxiatpe',
+ name: 'bcc',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hiee299kuw1x3qbfjlzl59j6w',
+ name: 'has_attachments',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zp9pu470z5wtyiz3snczdp5mn',
+ name: 'message_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j5vz3dlkls1sus4fb3bbakzae',
+ name: 'source_via',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'upy07324hgp5cvrw77l01lqn7',
+ name: 'source_type',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vuzadiafag7118wtn6rhdfaov',
+ name: 'customer_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7gnchreukmdo2twec7vzdml53',
+ name: 'created_by_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7qw1ebbxua7k7ng9p4kr1zeqw',
+ name: 'created_by_customer_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '68vr9c7gfzs9lt4jd3goeiq96',
+ name: 'edited_by_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9iec8a3miijh8meq3hpu7ehqf',
+ name: 'edited_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e78e1ppr44ane9tmj81ih121d',
+ name: 'body_original',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'swx0z5rwkh4byv6bybw7hxhvm',
+ name: 'first',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zg5vc37wdzfn7lb7bckfmbao4',
+ name: 'saved_reply_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4t976ayxkecsksdu2tv6x3548',
+ name: 'send_status',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'garm4xj6repcaylsl6v3pznoe',
+ name: 'send_status_data',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bnpucmo2kur7qdb4rpplqrbbb',
+ name: 'opened_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kw9ytr3avx5fh11e92bwwtkc0',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g13sooh41pynb6847lxeiukfe',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4s2jt0ms6al6ih61pwpktkxfl',
+ name: 'meta',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'enqfw025xzjdkwqiilqofafm2',
+ name: 'imported',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'py0af2x18zy6czwez3wu1j0xm',
+ name: 'threads_conversation_id_type_from_customer_id_index',
+ unique: false,
+ fieldIds: [
+ 'bvndnzm3ork5nhjz5nx56ddle',
+ '0loxug76fip17oxshft21w2tj',
+ 't4xmggqoa7ns7qvgs0qlvav6a',
+ 'vuzadiafag7118wtn6rhdfaov',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lhqsdqpvdz5fmxj3aoipfongc',
+ name: 'threads_conversation_id_created_at_index',
+ unique: false,
+ fieldIds: [
+ 'bvndnzm3ork5nhjz5nx56ddle',
+ 'kw9ytr3avx5fh11e92bwwtkc0',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vemck4rmt6tc0u3mpwjnpaupu',
+ name: 'threads_message_id_unique',
+ unique: true,
+ fieldIds: ['zp9pu470z5wtyiz3snczdp5mn'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '07tmei69grvcow9a0atpqdk5e',
+ name: 'threads_pkey',
+ unique: true,
+ fieldIds: ['eoqmotrohwt42eiyb0abfuzig'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5nrs72vl175b0dg4jzxqmz7p0',
+ name: 'emails',
+ schema: 'public',
+ x: 327.4804184830681,
+ y: 1029.0739039147434,
+ fields: [
+ {
+ id: '64fk9mr5jo0sr2nbg0ubfy7zp',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fq4d4ri3bzzo585s99usp2ri4',
+ name: 'customer_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fothihiudtsiow5ke2inyadwj',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5q0koo68awtvd3aw9iqxbibud',
+ name: 'type',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'kuaqauiti8a4vcxn3ejqd6xne',
+ name: 'emails_email_unique',
+ unique: true,
+ fieldIds: ['fothihiudtsiow5ke2inyadwj'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dwajlbmhsa6nllt05ga9cr0ba',
+ name: 'emails_pkey',
+ unique: true,
+ fieldIds: ['64fk9mr5jo0sr2nbg0ubfy7zp'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 's8ty46pwun6obuazpiiy4dphf',
+ name: 'emails_customer_id_index',
+ unique: false,
+ fieldIds: ['fq4d4ri3bzzo585s99usp2ri4'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '999ul2ofslgmlcop8x2ulrbbo',
+ name: 'send_logs',
+ schema: 'public',
+ x: 727.4804184830681,
+ y: 1129.0739039147434,
+ fields: [
+ {
+ id: 'f7nwunfsnky1ste9siom9ipfu',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '23epynsuxgfw014z9ntrf0oui',
+ name: 'thread_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ehm4pmc96jzab65yqyc3b4nkt',
+ name: 'customer_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hpjql782ldwc697lbbc9z4ona',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lfxn2089s0tq32mrbse69dgi1',
+ name: 'message_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8jvm950eu1k1cgd4plsezgzkr',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dgkrdtf2acf5u1cxu3cvlrmc5',
+ name: 'mail_type',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a5sghxgau1z613h83eqzhhg9h',
+ name: 'status',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7y5bqg54i0gcubheqtiuo3ghm',
+ name: 'status_message',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wqwnf4tp9nim5qui9mehcguhu',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 've81ydho239e63pjclmmqcfqt',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'fj6vc7wk4yx0k16eb3cfijzy3',
+ name: 'send_logs_customer_id_mail_type_created_at_index',
+ unique: false,
+ fieldIds: [
+ 'ehm4pmc96jzab65yqyc3b4nkt',
+ 'dgkrdtf2acf5u1cxu3cvlrmc5',
+ 'wqwnf4tp9nim5qui9mehcguhu',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c6qqhdopf9pwufd9wgpy82za7',
+ name: 'send_logs_pkey',
+ unique: true,
+ fieldIds: ['f7nwunfsnky1ste9siom9ipfu'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eins8dsfh9jk89rsrpqshp0y6',
+ name: 'send_logs_message_id_index',
+ unique: false,
+ fieldIds: ['lfxn2089s0tq32mrbse69dgi1'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kdg3of0ggy5qje9ih4pkjy98y',
+ name: 'send_logs_thread_id_index',
+ unique: false,
+ fieldIds: ['23epynsuxgfw014z9ntrf0oui'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ck9rlrh7d0q0kz2g8sasnam1e',
+ name: 'mailbox_user',
+ schema: 'public',
+ x: 1655.4619379214755,
+ y: 596.981758411997,
+ fields: [
+ {
+ id: 'kgkrwtfl00uiv8179oq78tsyr',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wr0axmzpid0k1a6ljrk35047d',
+ name: 'mailbox_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hbxej6v8ndlukld9zo4l1vxif',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jazrqbd3vuj11g8y1i5523bd4',
+ name: 'after_send',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'2'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'taj1v619juf7ctffsu2ofngg9',
+ name: 'hide',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w34fzeowkkolvmgqt12zjcqnl',
+ name: 'mute',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l9u2f24gbkym2jay5f8x7q5x5',
+ name: 'access',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'r4kq46xhltwce56wna918d1nh',
+ name: 'mailbox_user_mailbox_id_user_id_unique',
+ unique: true,
+ fieldIds: [
+ 'wr0axmzpid0k1a6ljrk35047d',
+ 'hbxej6v8ndlukld9zo4l1vxif',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aq2oponv57e7mmzka9kxhcq1j',
+ name: 'mailbox_user_mailbox_id_index',
+ unique: false,
+ fieldIds: ['wr0axmzpid0k1a6ljrk35047d'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bnslbd0s2148irawyerz73viy',
+ name: 'mailbox_user_pkey',
+ unique: true,
+ fieldIds: ['kgkrwtfl00uiv8179oq78tsyr'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fwaq7q6re40ggsle69fdcwptd',
+ name: 'subscriptions',
+ schema: 'public',
+ x: -41.42135623730945,
+ y: 877.8174593052022,
+ fields: [
+ {
+ id: '6tgo4yfp3mcldziji2fvq508b',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sma8aa81xpzy8hr94hb6iy8nd',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'udjjp3lets8h8rh2mbhfbkj1j',
+ name: 'medium',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ui5kbuwf76jvccdbwuk5ze5ad',
+ name: 'event',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'xj6j4i542do33bhdu6dm4xe2i',
+ name: 'subscriptions_user_id_medium_event_unique',
+ unique: true,
+ fieldIds: [
+ 'sma8aa81xpzy8hr94hb6iy8nd',
+ 'udjjp3lets8h8rh2mbhfbkj1j',
+ 'ui5kbuwf76jvccdbwuk5ze5ad',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '0is71abg1j6qlq0w0evv236pc',
+ name: 'subscriptions_user_id_event_index',
+ unique: false,
+ fieldIds: [
+ 'sma8aa81xpzy8hr94hb6iy8nd',
+ 'ui5kbuwf76jvccdbwuk5ze5ad',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yfcw5iytucvylvbf42fxcc6cu',
+ name: 'subscriptions_pkey',
+ unique: true,
+ fieldIds: ['6tgo4yfp3mcldziji2fvq508b'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hs1ncg38vva8iyx78uu00ebrk',
+ name: 'users',
+ schema: 'public',
+ x: 100,
+ y: 100,
+ fields: [
+ {
+ id: 'hu76etb842ke9xnz6lefj9tbj',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e9eod13kjb39tr2u4tm7hpbyp',
+ name: 'first_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7scmzwm3l8ctn3lqmw5jdms4w',
+ name: 'last_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'io2lellevemmqv10pqd1vl3d4',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ujqf6r1zt9a0nh2801o9vgdng',
+ name: 'password',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'otsgdu1ylolj3pkhj1m3mw2vh',
+ name: 'role',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w0c44b2x7nsqzi6gvjq7dooyc',
+ name: 'timezone',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'UTC'::character varying",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p58sdf5dmd994i3echuvey86k',
+ name: 'photo_url',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2wpv1d5gjdjdetuyg5kjx53a5',
+ name: 'type',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zjfw9pdll2c8lo4b249yrg580',
+ name: 'status',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o6wrv33d94oac1gjuqguar5rv',
+ name: 'invite_state',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'3'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: '9mt98nmwr48xg6wrnyrbapajn',
+ name: 'invite_hash',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wm131n5q09po24eelz0xrqpaq',
+ name: 'emails',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bhoweqhhii6v7sd13izytwx88',
+ name: 'job_title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q7kor0yntyj8sin74obgbma8u',
+ name: 'phone',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kutdi8wqqg7i0lroy9raih6bq',
+ name: 'time_format',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'2'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eavtv35boo1awt1xiwl2e0d32',
+ name: 'enable_kb_shortcuts',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: '4ul4b3izw7qs83hg7i3peh71m',
+ name: 'locked',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f0q58tzju4o0bc3alrtvteok6',
+ name: 'remember_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jojf42k5kw9s3vz9ovvgiri08',
+ name: 'locale',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o68pc1bzz1jgn1ueahyymc46o',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gub13t4dl6gri6t98j48rxq8l',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wbz03xdgx0nx0f76kzhia1wse',
+ name: 'permissions',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'uvk7jbufuo3594x51pjgxs21w',
+ name: 'users_status_index',
+ unique: false,
+ fieldIds: ['zjfw9pdll2c8lo4b249yrg580'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f5amec8uu9y0zx08vu9jgc12j',
+ name: 'users_role_index',
+ unique: false,
+ fieldIds: ['otsgdu1ylolj3pkhj1m3mw2vh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gmuzjjxizkrqxr5e61qf6xd9k',
+ name: 'users_email_unique',
+ unique: true,
+ fieldIds: ['io2lellevemmqv10pqd1vl3d4'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f9u5n0g4dd24zufncr6kmcvke',
+ name: 'users_pkey',
+ unique: true,
+ fieldIds: ['hu76etb842ke9xnz6lefj9tbj'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k35q5gbvcss9hpnoplg3y15z8',
+ name: 'notifications',
+ schema: 'public',
+ x: 1850,
+ y: 1100,
+ fields: [
+ {
+ id: '9ja23zbrvob9x9or8cuc71fyb',
+ name: 'id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vqotkci560hyhggmfu93sa834',
+ name: 'type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o0cx3gl58asxom5lu1p0yczzo',
+ name: 'notifiable_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9fl7w5beej8cjwednhgbkfnlr',
+ name: 'notifiable_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6ftv0bagrgfbqmi6la0g877fb',
+ name: 'data',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0rk7ol1avjdtqsfhbkr43fham',
+ name: 'read_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4xg3snc9qjprwc3qxrb3snmfp',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dm3dhlk00rgnt562i0kdj1osy',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'vjunfpml2psh9qrqo53a7w31j',
+ name: 'notifications_notifiable_id_notifiable_type_index',
+ unique: false,
+ fieldIds: [
+ 'o0cx3gl58asxom5lu1p0yczzo',
+ '9fl7w5beej8cjwednhgbkfnlr',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sdwmk10husdnwybx61qqv8ev0',
+ name: 'notifications_pkey',
+ unique: true,
+ fieldIds: ['9ja23zbrvob9x9or8cuc71fyb'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k9mp6fjs6syeem2a3ycbzympu',
+ name: 'conversation_folder',
+ schema: 'public',
+ x: 810.9916264174742,
+ y: 587.4639560909118,
+ fields: [
+ {
+ id: '1xmzqc3jchcfg967bl4zxiejf',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vuaxj0lo3plruguwx35aiuxnr',
+ name: 'folder_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ppm239fwj3uqfekhdi6imlyzk',
+ name: 'conversation_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'oy61a7m5gltjkn25ir2oe1i10',
+ name: 'conversation_folder_folder_id_conversation_id_unique',
+ unique: true,
+ fieldIds: [
+ 'vuaxj0lo3plruguwx35aiuxnr',
+ 'ppm239fwj3uqfekhdi6imlyzk',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'axtukkaydok024n0fq0080g77',
+ name: 'conversation_folder_pkey',
+ unique: true,
+ fieldIds: ['1xmzqc3jchcfg967bl4zxiejf'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lwze3mybnsjl1xeirvk8hqidx',
+ name: 'mailboxes',
+ schema: 'public',
+ x: 1255.4619379214755,
+ y: 596.981758411997,
+ fields: [
+ {
+ id: '84dvf8cmm6mkojeko61t357ba',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qid5ucko21sg0s3fnny1pnxir',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6166tzowpmzawv6yax20u8pxn',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ojr5mow9riume822crulq1jjs',
+ name: 'aliases',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bzego18n6wol6lrj44mcelzv1',
+ name: 'from_name',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p0df0gu5jmj91g8sq8oaqm2ti',
+ name: 'from_name_custom',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '92r3ju9d3fbokt61eod6sqaxt',
+ name: 'ticket_status',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'2'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'njibjsxiygwnh2wj84ptji6b8',
+ name: 'ticket_assignee',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'2'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'll6eow20w4d5uj013y3d92dq3',
+ name: 'template',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dt4lxu64i36dfg33bjn0je83c',
+ name: 'signature',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8xg2j6ox3yddha2vz0qpo3mo7',
+ name: 'out_method',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rc3kabjl8drvf138nbum1vzoo',
+ name: 'out_server',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bi2u8candzk3a994xpc99ph4u',
+ name: 'out_username',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'npi783nsza6eby5ho8mfp8zz4',
+ name: 'out_password',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2ca4f376nj10exblu7zv6bqga',
+ name: 'out_port',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5uh2k3vfn7entsyag751r2r5e',
+ name: 'out_encryption',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mivys5pmjfl4cxv7q9bblz3p5',
+ name: 'in_server',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2j0nvhf8neld0tfmed9mpbgw0',
+ name: 'in_port',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: '143',
+ createdAt: Date.now(),
+ },
+ {
+ id: '3jdu5y6hcwstx97f6w1tuoat7',
+ name: 'in_username',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bxplo3u19d1vy585zije88hrl',
+ name: 'in_password',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'il0hgfckaoiutw47jqo9uh46s',
+ name: 'in_protocol',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ybt5nivk2jmjqysn8icnr0rnd',
+ name: 'in_encryption',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c9p3ydhmu4duvovuca0jwqzpd',
+ name: 'auto_reply_enabled',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nk5tow6nh4hm9me741g3m28uv',
+ name: 'auto_reply_subject',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yl3afxb1jcxce4osfo1xzns2y',
+ name: 'auto_reply_message',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0rozwquor95y0fi2mm6syzv51',
+ name: 'office_hours_enabled',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f9hcxyld8d4izdmg0hqabxarv',
+ name: 'ratings',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: '03reu09i44rfsybclip1tgfn6',
+ name: 'ratings_placement',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm9jidpkbwj377fez4o5n8fl8l',
+ name: 'ratings_text',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9qmbagvrsezsyywhs9h6bk85z',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nf7pcwqji5oyouw30hqiq7ktu',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pyozbpteexnbow14e49a7hedu',
+ name: 'in_validate_cert',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aamwg2ugyrarx1dzfhzspbriu',
+ name: 'in_imap_folders',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h1km32j0xkgf3e0jcvwqas5zf',
+ name: 'auto_bcc',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wc2bj6egk8459d300hu1846tq',
+ name: 'before_reply',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1fp2ta6e0culxzej7yx55vwkm',
+ name: 'imap_sent_folder',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pvouz3rckq7h9t00hvzf1pm10',
+ name: 'meta',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ny49mm0oi1fot3mhxvelq6tly',
+ name: 'mailboxes_email_unique',
+ unique: true,
+ fieldIds: ['6166tzowpmzawv6yax20u8pxn'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2bikzgeuzlm7ci46wujtn3cfz',
+ name: 'mailboxes_pkey',
+ unique: true,
+ fieldIds: ['84dvf8cmm6mkojeko61t357ba'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nr765aq8164z3ear2qgvftf3z',
+ name: 'conversations',
+ schema: 'public',
+ x: 900,
+ y: 100,
+ fields: [
+ {
+ id: '1c3g2chxycqcxitfnuvecju9c',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7bt9q1nl68pj5yurefezv3tez',
+ name: 'number',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n1xxf6m4yg0fnwjy9jj5uvujw',
+ name: 'threads_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ {
+ id: '3qobeq1v0fb7jvl1f0z0lln64',
+ name: 'type',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aumvxyqmyqw54ug7iufqlno6u',
+ name: 'folder_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pxcn0rmxoey8u8ryngx43gilc',
+ name: 'status',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: '1rqehm98664p9t50m3xi7c4t4',
+ name: 'state',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'1'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: '1vf56n649iui64j4cdplz2ljs',
+ name: 'subject',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ffvumzmo0wlygqvgn5bl53kbn',
+ name: 'customer_email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '35mrdn2u6a5lbgsv7rnfyw158',
+ name: 'cc',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ikh75pbksoizqm3p8mg1txcfc',
+ name: 'bcc',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pkh9u70a9grvp4sqyz3tu9tel',
+ name: 'preview',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5bgphg2d0k17hqkydlzogk3bk',
+ name: 'imported',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: '46kv7f9c4x1r5ecy9huycjkj4',
+ name: 'has_attachments',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'u3grol8sh60auqhmb46il31qt',
+ name: 'mailbox_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tzhurk0rph6q6hejh9s1d6lvk',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4xhjnw5z8fumbmnhvm5hbik97',
+ name: 'customer_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4q366uvk8dwm6lpvukcux4vtv',
+ name: 'created_by_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yb2225td88wizr7afzpabbjp8',
+ name: 'created_by_customer_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yzdtfyi7tkndpc9e3h6xa2y3u',
+ name: 'source_via',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1edrmchm5pfcwx0s4ud1oza0z',
+ name: 'source_type',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3pwkzenhe4h1j8l8atndtufn4',
+ name: 'closed_by_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a4wanvsqzdvnvce9piy3k7tbc',
+ name: 'closed_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c9p2kszw4daqdtuhwf2xz09zj',
+ name: 'user_updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1lrv2tfap1vg8qwm7l990xjfg',
+ name: 'last_reply_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4lzvz1joayso8iwnmulwn1ljb',
+ name: 'last_reply_from',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cij21vpcxi2lexyvwkxc8kunm',
+ name: 'read_by_user',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p7trzn2m7gmv93mfa7jw10k9f',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rg3zyfgnmusc9jndupv92ki1w',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zcylbd4157xcdlhkgjlend8wu',
+ name: 'channel',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'r82jecwf4jrvaul7x5jpdxckd',
+ name: 'conversations_pkey',
+ unique: true,
+ fieldIds: ['1c3g2chxycqcxitfnuvecju9c'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qk2qvmjmzbylhh1xi718ijmce',
+ name: 'conversations_status_state_mailbox_id_user_id_index',
+ unique: false,
+ fieldIds: [
+ 'pxcn0rmxoey8u8ryngx43gilc',
+ '1rqehm98664p9t50m3xi7c4t4',
+ 'u3grol8sh60auqhmb46il31qt',
+ 'tzhurk0rph6q6hejh9s1d6lvk',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '3qnalruteodf3lh9qwrcu63cc',
+ name: 'conversations_folder_id_status_index',
+ unique: false,
+ fieldIds: [
+ 'aumvxyqmyqw54ug7iufqlno6u',
+ 'pxcn0rmxoey8u8ryngx43gilc',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nfcg2qvxd61ysikaphtzqq5u3',
+ name: 'conversations_mailbox_id_customer_id_index',
+ unique: false,
+ fieldIds: [
+ 'u3grol8sh60auqhmb46il31qt',
+ '4xhjnw5z8fumbmnhvm5hbik97',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '20esfkwq9lwj6n2sbqo96lmw8',
+ name: 'conversations_folder_id_state_index',
+ unique: false,
+ fieldIds: [
+ 'aumvxyqmyqw54ug7iufqlno6u',
+ '1rqehm98664p9t50m3xi7c4t4',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pstuez95unibuz9m432ttiaq8',
+ name: 'folders',
+ schema: 'public',
+ x: 500,
+ y: 100,
+ fields: [
+ {
+ id: 'k99gqhg7bsa198yp9028t67e4',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '05tpurqvc8jub6pzcurtzm206',
+ name: 'mailbox_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rzoimc5y1jj9pay6rpd740fhb',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uwegfahvabbw2x0kk061e49o0',
+ name: 'type',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '75l5au1ale1e2qxmompi4vw6a',
+ name: 'total_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'twfvvm1oussu57o6fi9l65hqo',
+ name: 'active_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k07pp6jhj3my2zljt135og95m',
+ name: 'meta',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'gq5luv0khmds9ejbh7t3tac2k',
+ name: 'folders_mailbox_id_user_id_type_index',
+ unique: false,
+ fieldIds: [
+ '05tpurqvc8jub6pzcurtzm206',
+ 'rzoimc5y1jj9pay6rpd740fhb',
+ 'uwegfahvabbw2x0kk061e49o0',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '7j2gzrwsrp5v26jgz3lbzacnd',
+ name: 'folders_pkey',
+ unique: true,
+ fieldIds: ['k99gqhg7bsa198yp9028t67e4'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qyo9r01gsrv6snr9xdu3adjce',
+ name: 'modules',
+ schema: 'public',
+ x: 1300,
+ y: 1550,
+ fields: [
+ {
+ id: '18hyyonqy50islcv19kcwt862',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd8ldgx6jfz5z77tnrb1avjhad',
+ name: 'alias',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ro0i9aglttom9c58s2vpfygwm',
+ name: 'active',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qdu1n54hblp2t69kmyz4iku4d',
+ name: 'activated',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f8tj1y4elgz8c63p6eqpiq6s0',
+ name: 'license',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'jreoixknfnoousv12yhvws47h',
+ name: 'modules_pkey',
+ unique: true,
+ fieldIds: ['18hyyonqy50islcv19kcwt862'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e7787gs85efzboqved9kq8jjo',
+ name: 'modules_alias_unique',
+ unique: true,
+ fieldIds: ['d8ldgx6jfz5z77tnrb1avjhad'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'td5w6pn2ug5a57myjs84w01dl',
+ name: 'polycast_events',
+ schema: 'public',
+ x: 100,
+ y: 1600,
+ fields: [
+ {
+ id: 'e2lp6tusug085wg1acs7w55r9',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b380a7z8b40ezdi1j6npjeahg',
+ name: 'channels',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '753k4jnrocvjdv54y583gez9j',
+ name: 'event',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2u4epep4q7h2krpt1xtjx09iv',
+ name: 'payload',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0dz3rzwcqrbup2diz506616je',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '2po2pulvo6uqfdppgj6stsc7e',
+ name: 'polycast_events_created_at_index',
+ unique: false,
+ fieldIds: ['0dz3rzwcqrbup2diz506616je'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm3i89z8aztxswwy331bx1mcr7',
+ name: 'polycast_events_pkey',
+ unique: true,
+ fieldIds: ['e2lp6tusug085wg1acs7w55r9'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tvrr6hp9u20zyq3g2snfz9p3s',
+ name: 'followers',
+ schema: 'public',
+ x: 1300,
+ y: 100,
+ fields: [
+ {
+ id: '34j7ppxntrzak3akfzkgto7pd',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c69y79id2lwquj5cq0mq7f8i7',
+ name: 'conversation_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '874o91f3v01cbyxvf66rt6hvg',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1xjc0sjwavdpb6w8qsb2stu08',
+ name: 'added_by_user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'chgaj5bsuox96owo11cin9mr5',
+ name: 'followers_pkey',
+ unique: true,
+ fieldIds: ['34j7ppxntrzak3akfzkgto7pd'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x2shxunxkv7x7bc9ts9p6yam3',
+ name: 'followers_conversation_id_user_id_unique',
+ unique: true,
+ fieldIds: [
+ 'c69y79id2lwquj5cq0mq7f8i7',
+ '874o91f3v01cbyxvf66rt6hvg',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uqtl4b2c4d6faxn2y5pcsiv9s',
+ name: 'activity_logs',
+ schema: 'public',
+ x: 500,
+ y: 1550,
+ fields: [
+ {
+ id: 'x22cjj0vpxh5w650xnxfl4krw',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'okreroq5gh9kiebykn4x001ca',
+ name: 'log_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lp06c5s7c43qngr2kdr62wkhm',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '49t2extlae4ke7d2qjaxpdhu7',
+ name: 'subject_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k3po3jv2gfixd443wgtyq8mqg',
+ name: 'subject_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'utepj3501xmpmka1tlmgy8mi5',
+ name: 'causer_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '62mug1bmnhiq8c1j94b0ufagq',
+ name: 'causer_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9wedla2am4iucpu8m8mgfjqe1',
+ name: 'properties',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rw4h4n25cbahsputjgplvegxo',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uwjmvcu5jr5j4hn60oh4g9vju',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '1hcz7o7vtcaa4f9bn1p5hna44',
+ name: 'activity_logs_pkey',
+ unique: true,
+ fieldIds: ['x22cjj0vpxh5w650xnxfl4krw'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5c6tkfpg1sv0kov3d0cjsn74y',
+ name: 'activity_logs_log_name_index',
+ unique: false,
+ fieldIds: ['okreroq5gh9kiebykn4x001ca'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vukxmild0u6edqfu7mn583tm2',
+ name: 'customers',
+ schema: 'public',
+ x: 327.4804184830681,
+ y: 529.0739039147434,
+ fields: [
+ {
+ id: 'sdqj45csi5jx9s5c3puk93ff5',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l5pku40a2ej38dqimhalv27u6',
+ name: 'first_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gcode5fu8bstohoz8lyb8in51',
+ name: 'last_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ncp7qvkk7a0l340f091mxa3ad',
+ name: 'company',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '072ghm1l94w05n488h9jonmv9',
+ name: 'job_title',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2tp6ywsli3fm6ce7aks0bp0yw',
+ name: 'photo_type',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0tmc3axd5t9aa44eciou97o19',
+ name: 'photo_url',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5778shpm2eff1ytowb9upfppz',
+ name: 'phones',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c7v5vnof9a70zneeym91gxjtk',
+ name: 'websites',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pu5uc0kk54uzbs24wlylf9eg2',
+ name: 'social_profiles',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd8zxejqnewhqi6l4khg900d2z',
+ name: 'notes',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ofqdoqpokxvncigp9q04h0z5s',
+ name: 'address',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4pwuubpdhpub39wh0w6zetmam',
+ name: 'city',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4hmuod8f07ehnp0tdre6vffov',
+ name: 'state',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '437xmeex7pljt3l9ckb53vchn',
+ name: 'zip',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4zj6y5007m1i108u1pm91oa80',
+ name: 'country',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i67a6rg0v7kk6e6510j0b9wot',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r92bl4890lazgch07rcdncfa6',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6m9kmufzpptwhu4n6jgek3jko',
+ name: 'channel',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ozuv0sxu2hpdo5dkkn0n7gjfc',
+ name: 'channel_id',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xpfza2t9bfbx0rfp9w4h4cz6k',
+ name: 'meta',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ytzs9b7co95yf434v8pf7bm11',
+ name: 'customers_first_name_last_name_index',
+ unique: false,
+ fieldIds: [
+ 'l5pku40a2ej38dqimhalv27u6',
+ 'gcode5fu8bstohoz8lyb8in51',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'om4pbob46f2wmx5ppqo41njcj',
+ name: 'customers_pkey',
+ unique: true,
+ fieldIds: ['sdqj45csi5jx9s5c3puk93ff5'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yeat02slxfum25j3xl4476ws9',
+ name: 'attachments',
+ schema: 'public',
+ x: 1527.4804184830682,
+ y: 1129.0739039147434,
+ fields: [
+ {
+ id: 't2llx2e10neozcknty4mxph8a',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oklc1xzn486skbhey08khyjib',
+ name: 'thread_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1n0zjemyudn5u6qq1uw4q97la',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hi4r49ggsb6lwzq58werf2m4z',
+ name: 'file_dir',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qi94uko7f4z84bn44mt7n4q8i',
+ name: 'file_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '154o9mk1m6vymqelb3cnaaz0s',
+ name: 'mime_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qnmlohtzlkdb0i6gavcunfjqu',
+ name: 'type',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'frpcaize0jh4p50kmqf8vo9to',
+ name: 'size',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a9132bv83bc1swdoqbyj0bqke',
+ name: 'embedded',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uecj06p85t5cpzywmycurbucn',
+ name: 'public',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'0'::smallint",
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'mc99knwp9jvxri8rj3sueynro',
+ name: 'attachments_thread_id_embedded_index',
+ unique: false,
+ fieldIds: [
+ 'oklc1xzn486skbhey08khyjib',
+ 'a9132bv83bc1swdoqbyj0bqke',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pr5oflsbs4h8t7p0gqcecflef',
+ name: 'attachments_pkey',
+ unique: true,
+ fieldIds: ['t2llx2e10neozcknty4mxph8a'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '1pa5lvh1228l5j11rtxcqcdd3',
+ name: 'conversation_folder_folder_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'k9mp6fjs6syeem2a3ycbzympu',
+ targetTableId: 'pstuez95unibuz9m432ttiaq8',
+ sourceFieldId: 'vuaxj0lo3plruguwx35aiuxnr',
+ targetFieldId: 'k99gqhg7bsa198yp9028t67e4',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '3pv51e2idsxjc6n1rns2zftso',
+ name: 'send_logs_customer_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '999ul2ofslgmlcop8x2ulrbbo',
+ targetTableId: 'vukxmild0u6edqfu7mn583tm2',
+ sourceFieldId: 'ehm4pmc96jzab65yqyc3b4nkt',
+ targetFieldId: 'sdqj45csi5jx9s5c3puk93ff5',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '4tmqt6e3qsi2fw3f9pu7huvev',
+ name: 'conversations_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'nr765aq8164z3ear2qgvftf3z',
+ targetTableId: 'hs1ncg38vva8iyx78uu00ebrk',
+ sourceFieldId: 'tzhurk0rph6q6hejh9s1d6lvk',
+ targetFieldId: 'hu76etb842ke9xnz6lefj9tbj',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'alow3hzw79nt17najsxf9oi9f',
+ name: 'conversations_folder_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'nr765aq8164z3ear2qgvftf3z',
+ targetTableId: 'pstuez95unibuz9m432ttiaq8',
+ sourceFieldId: 'aumvxyqmyqw54ug7iufqlno6u',
+ targetFieldId: 'k99gqhg7bsa198yp9028t67e4',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'axr0f3i9vg7hkaf7j68e6xek5',
+ name: 'mailbox_user_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ck9rlrh7d0q0kz2g8sasnam1e',
+ targetTableId: 'hs1ncg38vva8iyx78uu00ebrk',
+ sourceFieldId: 'hbxej6v8ndlukld9zo4l1vxif',
+ targetFieldId: 'hu76etb842ke9xnz6lefj9tbj',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b49iu18vpgq2cfo4509fe2xgl',
+ name: 'conversation_folder_conversation_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'k9mp6fjs6syeem2a3ycbzympu',
+ targetTableId: 'nr765aq8164z3ear2qgvftf3z',
+ sourceFieldId: 'ppm239fwj3uqfekhdi6imlyzk',
+ targetFieldId: '1c3g2chxycqcxitfnuvecju9c',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bqw7xws8ybijn46gun5nongot',
+ name: 'conversations_mailbox_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'nr765aq8164z3ear2qgvftf3z',
+ targetTableId: 'lwze3mybnsjl1xeirvk8hqidx',
+ sourceFieldId: 'u3grol8sh60auqhmb46il31qt',
+ targetFieldId: '84dvf8cmm6mkojeko61t357ba',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'juvy3ibjmjbv1d45usrxy5k7w',
+ name: 'send_logs_thread_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '999ul2ofslgmlcop8x2ulrbbo',
+ targetTableId: '5doc1uac1hbcviuulb56ludlu',
+ sourceFieldId: '23epynsuxgfw014z9ntrf0oui',
+ targetFieldId: 'eoqmotrohwt42eiyb0abfuzig',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k0rx46rhs5b65yafs02v218i2',
+ name: 'send_logs_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '999ul2ofslgmlcop8x2ulrbbo',
+ targetTableId: 'hs1ncg38vva8iyx78uu00ebrk',
+ sourceFieldId: 'hpjql782ldwc697lbbc9z4ona',
+ targetFieldId: 'hu76etb842ke9xnz6lefj9tbj',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pv7o59t1np1ol1nt4hw3um9n4',
+ name: 'mailbox_user_mailbox_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ck9rlrh7d0q0kz2g8sasnam1e',
+ targetTableId: 'lwze3mybnsjl1xeirvk8hqidx',
+ sourceFieldId: 'wr0axmzpid0k1a6ljrk35047d',
+ targetFieldId: '84dvf8cmm6mkojeko61t357ba',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qds6szdl6kzln0k9vy24rpnrj',
+ name: 'threads_customer_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '5doc1uac1hbcviuulb56ludlu',
+ targetTableId: 'vukxmild0u6edqfu7mn583tm2',
+ sourceFieldId: 'vuzadiafag7118wtn6rhdfaov',
+ targetFieldId: 'sdqj45csi5jx9s5c3puk93ff5',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ri2rorvgbga3t8aukzkz44bms',
+ name: 'followers_conversation_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'tvrr6hp9u20zyq3g2snfz9p3s',
+ targetTableId: 'nr765aq8164z3ear2qgvftf3z',
+ sourceFieldId: 'c69y79id2lwquj5cq0mq7f8i7',
+ targetFieldId: '1c3g2chxycqcxitfnuvecju9c',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rw140tgmcq5don2djypdmma4g',
+ name: 'subscriptions_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'fwaq7q6re40ggsle69fdcwptd',
+ targetTableId: 'hs1ncg38vva8iyx78uu00ebrk',
+ sourceFieldId: 'sma8aa81xpzy8hr94hb6iy8nd',
+ targetFieldId: 'hu76etb842ke9xnz6lefj9tbj',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rwbqneeob6z0869g048ds9a5p',
+ name: 'threads_conversation_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '5doc1uac1hbcviuulb56ludlu',
+ targetTableId: 'nr765aq8164z3ear2qgvftf3z',
+ sourceFieldId: 'bvndnzm3ork5nhjz5nx56ddle',
+ targetFieldId: '1c3g2chxycqcxitfnuvecju9c',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 's1ykexr9gpl1nrz4e8b6jxft9',
+ name: 'conversations_customer_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'nr765aq8164z3ear2qgvftf3z',
+ targetTableId: 'vukxmild0u6edqfu7mn583tm2',
+ sourceFieldId: '4xhjnw5z8fumbmnhvm5hbik97',
+ targetFieldId: 'sdqj45csi5jx9s5c3puk93ff5',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tc5gks8j3c7ew7gqjrj9fqdpo',
+ name: 'folders_mailbox_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'pstuez95unibuz9m432ttiaq8',
+ targetTableId: 'lwze3mybnsjl1xeirvk8hqidx',
+ sourceFieldId: '05tpurqvc8jub6pzcurtzm206',
+ targetFieldId: '84dvf8cmm6mkojeko61t357ba',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v9dvus9yruh9sz3d6s6txta8s',
+ name: 'folders_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'pstuez95unibuz9m432ttiaq8',
+ targetTableId: 'hs1ncg38vva8iyx78uu00ebrk',
+ sourceFieldId: 'rzoimc5y1jj9pay6rpd740fhb',
+ targetFieldId: 'hu76etb842ke9xnz6lefj9tbj',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vb5unhxedgetf958uyfekm35v',
+ name: 'followers_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'tvrr6hp9u20zyq3g2snfz9p3s',
+ targetTableId: 'hs1ncg38vva8iyx78uu00ebrk',
+ sourceFieldId: '874o91f3v01cbyxvf66rt6hvg',
+ targetFieldId: 'hu76etb842ke9xnz6lefj9tbj',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vcr0nrk47ldp7by1qoxpwwzpc',
+ name: 'threads_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '5doc1uac1hbcviuulb56ludlu',
+ targetTableId: 'hs1ncg38vva8iyx78uu00ebrk',
+ sourceFieldId: 'j9n32i9crqr7yff0boqkzmskd',
+ targetFieldId: 'hu76etb842ke9xnz6lefj9tbj',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xyp92dy9gvuqzq74obdba09k4',
+ name: 'attachments_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yeat02slxfum25j3xl4476ws9',
+ targetTableId: 'hs1ncg38vva8iyx78uu00ebrk',
+ sourceFieldId: '1n0zjemyudn5u6qq1uw4q97la',
+ targetFieldId: 'hu76etb842ke9xnz6lefj9tbj',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z3lde2qwwonkk1rtsy62dc2op',
+ name: 'attachments_thread_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'yeat02slxfum25j3xl4476ws9',
+ targetTableId: '5doc1uac1hbcviuulb56ludlu',
+ sourceFieldId: 'oklc1xzn486skbhey08khyjib',
+ targetFieldId: 'eoqmotrohwt42eiyb0abfuzig',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zr9pevbwgri8lj8m4x8ynohcl',
+ name: 'emails_customer_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '5nrs72vl175b0dg4jzxqmz7p0',
+ targetTableId: 'vukxmild0u6edqfu7mn583tm2',
+ sourceFieldId: 'fq4d4ri3bzzo585s99usp2ri4',
+ targetFieldId: 'sdqj45csi5jx9s5c3puk93ff5',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/hacker-news-db.ts b/src/templates-data/templates/hacker-news-db.ts
new file mode 100644
index 00000000..b1e1f530
--- /dev/null
+++ b/src/templates-data/templates/hacker-news-db.ts
@@ -0,0 +1,2737 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/hacker-news-db.png';
+import imageDark from '@/assets/templates/hacker-news-db-dark.png';
+
+export const hackerNewsDb: Template = {
+ slug: 'hacker-news-database',
+ name: 'Pythonic News',
+ shortDescription: 'A Hacker News lookalike',
+ description: 'written in Python/Django. Platform - https://news.python.sc',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Python', 'Django'],
+ featured: false,
+ url: 'https://github.com/sebst/pythonic-news',
+ diagram: {
+ id: 'pythonic_news_db',
+ name: 'pythonic-news-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '4r30mjer61qetdcubllpgvtnp',
+ name: 'emaildigest_unsubscription',
+ schema: 'public',
+ x: -558.4875339477687,
+ y: 1612.0057200236154,
+ fields: [
+ {
+ id: 'civnu3uqjodwfcgsrqlg86rjm',
+ name: 'id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f8wvaf941utaupusz6n9bwn4r',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '370zc7xdovmpfwenzup8tsrzq',
+ name: 'changed_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'irpmysxs41unttoq8hc9p1bne',
+ name: 'from_digest_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nd0zshvc0pe50mx0hy4d9ujfy',
+ name: 'subscription_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'v05cbxcfchmgsimole5uihdxj',
+ name: 'emaildigest_unsubscription_pkey',
+ unique: true,
+ fieldIds: ['civnu3uqjodwfcgsrqlg86rjm'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wrorfw2rej8jk7id96kz6nxoz',
+ name: 'emaildigest_unsubscription_subscription_id_index',
+ unique: false,
+ fieldIds: ['nd0zshvc0pe50mx0hy4d9ujfy'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w7p7ro8laetanj8obo2rfsip6',
+ name: 'emaildigest_unsubscription_from_digest_id_index',
+ unique: false,
+ fieldIds: ['irpmysxs41unttoq8hc9p1bne'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5by7ufdjxc2q77rob07wq4rtv',
+ name: 'news_vote',
+ schema: 'public',
+ x: 116.16600520075457,
+ y: 554.8159976772592,
+ fields: [
+ {
+ id: 'ggulh079eq68ypew29nlmed0j',
+ name: 'id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l9vrb9nidsafsdp0ymplv5v3l',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7st60b69dxcvv6o2xekikemdr',
+ name: 'changed_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v78vdsjfh69p96x1d0cqfmz6k',
+ name: 'item_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7otkg1lumjegx14fm1vc12btd',
+ name: 'user_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '16gkaz8tjy3zkn0t93dd7lclz',
+ name: 'vote',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '7cm76ncwwhg221qmuz1f5irxl',
+ name: 'news_vote_user_id_index',
+ unique: false,
+ fieldIds: ['7otkg1lumjegx14fm1vc12btd'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '59l2m45nur511dr74vqsec7e7',
+ name: 'news_vote_item_id_index',
+ unique: false,
+ fieldIds: ['v78vdsjfh69p96x1d0cqfmz6k'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '71n1mo5369p3chqkykpyzbjze',
+ name: 'news_vote_pkey',
+ unique: true,
+ fieldIds: ['ggulh079eq68ypew29nlmed0j'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '67f6pc9x0uyyjmwhsc09z86b5',
+ name: 'emaildigest_emaildigest_stories',
+ schema: 'public',
+ x: -714.8178902216268,
+ y: 1233.9593691791317,
+ fields: [
+ {
+ id: 'rwrs07lunbmjuur50l5a0cwv6',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cktumifnf94p01uysb31ajgkv',
+ name: 'emaildigest_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e6vn3jujiovfqpku1gz5d48rc',
+ name: 'story_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '25rtf6vn60gthu6l55vsb6169',
+ name: 'emaildigest_emaildigest_stories_emaildigest_id_story_id_unique',
+ unique: true,
+ fieldIds: [
+ 'cktumifnf94p01uysb31ajgkv',
+ 'e6vn3jujiovfqpku1gz5d48rc',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '71ttknypjve53mvffi8lnhx4b',
+ name: 'emaildigest_emaildigest_stories_pkey',
+ unique: true,
+ fieldIds: ['rwrs07lunbmjuur50l5a0cwv6'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2etnxi24v6c681fuav6zv221u',
+ name: 'emaildigest_emaildigest_stories_story_id_index',
+ unique: false,
+ fieldIds: ['e6vn3jujiovfqpku1gz5d48rc'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7e1ap4huegjpqdau4l3l80tkx',
+ name: 'emaildigest_usersubscription',
+ schema: 'public',
+ x: -611.944293578114,
+ y: 477.8747871771292,
+ fields: [
+ {
+ id: '0tc7z6xlpld67ebx71sf16vw7',
+ name: 'subscription_ptr_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7nuxpce5zjow6sapz7egpymzo',
+ name: 'user_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'g0x08lks32n2ra1lpgjqounmu',
+ name: 'emaildigest_usersubscription_user_id_index',
+ unique: false,
+ fieldIds: ['7nuxpce5zjow6sapz7egpymzo'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z2yyr3c5p0zwkp2rtrjvny563',
+ name: 'emaildigest_usersubscription_pkey',
+ unique: true,
+ fieldIds: ['0tc7z6xlpld67ebx71sf16vw7'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '91f7xxj9ez3r2lqln6ypwl7yx',
+ name: 'django_session',
+ schema: 'public',
+ x: -203.31419555112996,
+ y: 950.0392606874932,
+ fields: [
+ {
+ id: '7nz52qyzqwp0ys983k5brnd5k',
+ name: 'session_key',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x017gqk82hwv1uxmrmmxy9629',
+ name: 'session_data',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ysvxd1qjhpxf0qq0sareo2lu8',
+ name: 'expire_date',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'o0esv86hkonmb1anq56yvhret',
+ name: 'django_session_expire_date_index',
+ unique: false,
+ fieldIds: ['ysvxd1qjhpxf0qq0sareo2lu8'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '4nikn1xalqo58r9zhexv0v9rv',
+ name: 'django_session_pkey',
+ unique: true,
+ fieldIds: ['7nz52qyzqwp0ys983k5brnd5k'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9hn3pgkwfddnv17sq0q8gtsag',
+ name: 'emaildigest_anonymoussubscription',
+ schema: 'public',
+ x: 562.6486135437822,
+ y: 1425.0150518639784,
+ fields: [
+ {
+ id: 'p5inc2slgnhk2nh7ulh0s4jqc',
+ name: 'subscription_ptr_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hmnux8w8u6wskbj3y1k74n364',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gylocas02c1dpyat3yfh1nkhw',
+ name: 'verified',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x00z8zx2vypbb28xooszb9wkc',
+ name: 'verified_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '135z53mpwsik1mnuji5eyquzd',
+ name: 'verification_code',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't3bjnl79csa6arwa4uq9iebso',
+ name: 'logged_in_user_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'lvonx30lro9odb8dwu6lt21ch',
+ name: 'emaildigest_anonymoussubscription_logged_in_user_id_index',
+ unique: false,
+ fieldIds: ['t3bjnl79csa6arwa4uq9iebso'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w1yw7fyf1pmkafn6nfytaqy6w',
+ name: 'emaildigest_anonymoussubscription_pkey',
+ unique: true,
+ fieldIds: ['p5inc2slgnhk2nh7ulh0s4jqc'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'afg1f12jkr6r28fvmti3nmmum',
+ name: 'accounts_emailverification',
+ schema: 'public',
+ x: -256.925935309314,
+ y: 594.9107209404664,
+ fields: [
+ {
+ id: '6jt4p93tfzuce9zyvcatkc3gf',
+ name: 'id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'acweox8fjd2ipk4c52jv2k13x',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h1a9frbnos4tnv398s7r5guaz',
+ name: 'changed_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zx9qeo3cnoz0fhifwj1mn7tsq',
+ name: 'verified',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6p00wmje57nfbz831m9yarf4v',
+ name: 'verified_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'an65epq4eo2ani1n3op1nhph0',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mcgdffj2wltvrot9jkjinh9yo',
+ name: 'user_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0usutqvw6lh558h0gplynj2at',
+ name: 'verification_code',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'a25mwf1g308u7a9w25i71p8du',
+ name: 'accounts_emailverification_pkey',
+ unique: true,
+ fieldIds: ['6jt4p93tfzuce9zyvcatkc3gf'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z2irpierd2gdu1jmhj5vqy5xl',
+ name: 'accounts_emailverification_user_id_index',
+ unique: false,
+ fieldIds: ['mcgdffj2wltvrot9jkjinh9yo'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ajoz1epyky9jtg1wliayl82m4',
+ name: 'news_comment',
+ schema: 'public',
+ x: 89.46549849308553,
+ y: 1461.6001825908638,
+ fields: [
+ {
+ id: '5wijgjk66fnul2ajxludgzi1s',
+ name: 'item_ptr_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hjc29a13ggem7yobewwrbvx3a',
+ name: 'text',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5e6oabu2eurmvlfa1e6za7bpc',
+ name: 'to_story_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '7li39t1zm0v02auic3yzc1usj',
+ name: 'news_comment_to_story_id_index',
+ unique: false,
+ fieldIds: ['5e6oabu2eurmvlfa1e6za7bpc'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z80zr4k4euz80p89hzc4xnvmr',
+ name: 'news_comment_pkey',
+ unique: true,
+ fieldIds: ['5wijgjk66fnul2ajxludgzi1s'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eq1zlyk8ggtcawt0jz3bsol5i',
+ name: 'accounts_passwordresetrequest',
+ schema: 'public',
+ x: -283.79718944579895,
+ y: 90.86627842071485,
+ fields: [
+ {
+ id: 'hykyf9kv9y9elpmfa8hgbc8m3',
+ name: 'id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1y0xasrdon361rnf080wbl9jf',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nifhpoyyj34mmbxnbxxoib3nv',
+ name: 'changed_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vplvxs6cq28kyivy5vtb6091d',
+ name: 'verification_code',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q3sx6ty1nda73ommua0qipkz5',
+ name: 'user_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'zysum2rc1jvhwo9ciieruj02f',
+ name: 'accounts_passwordresetrequest_user_id_index',
+ unique: false,
+ fieldIds: ['q3sx6ty1nda73ommua0qipkz5'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '3z33wnlpwh903daa2e3gbf5bp',
+ name: 'accounts_passwordresetrequest_pkey',
+ unique: true,
+ fieldIds: ['hykyf9kv9y9elpmfa8hgbc8m3'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ew2veiwmyff5bi2tz6ask1unb',
+ name: 'django_content_type',
+ schema: 'public',
+ x: 1208.059119828431,
+ y: 321.22435559951066,
+ fields: [
+ {
+ id: 'gb9snc1ysqjx5udv19o9ciri1',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'awgla0d9enrsuqv9wtoifesz8',
+ name: 'app_label',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mrzrpv19qyyk2p5szuz4pd53w',
+ name: 'model',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ag5ds3nvkzn6afyzlxz77tje6',
+ name: 'django_content_type_app_label_model_unique',
+ unique: true,
+ fieldIds: [
+ 'awgla0d9enrsuqv9wtoifesz8',
+ 'mrzrpv19qyyk2p5szuz4pd53w',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '0no6lh5b6dccg8i4ar6gxika5',
+ name: 'django_content_type_pkey',
+ unique: true,
+ fieldIds: ['gb9snc1ysqjx5udv19o9ciri1'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fj13bit1sskhfzqn6vyveka71',
+ name: 'emaildigest_emaildigest',
+ schema: 'public',
+ x: -951.2467268247397,
+ y: 1502.250327842959,
+ fields: [
+ {
+ id: 'e9mq1usut3gdrnhdn61ax9pjv',
+ name: 'id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ltg2ajwdwa2uo787mce215382',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's2j5l4fgzkhykeh39rkjb4xcm',
+ name: 'changed_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hrbr23lm936wwiuifj64fuqzy',
+ name: 'frequency',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3x6foy8d5i8ueaewfbbe0k28f',
+ name: 'weekly_weekday',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'vscyplc570cclg9zhie2gi2pa',
+ name: 'emaildigest_emaildigest_pkey',
+ unique: true,
+ fieldIds: ['e9mq1usut3gdrnhdn61ax9pjv'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hj2bexl6a27ghf8k9wiv8l12m',
+ name: 'auth_permission',
+ schema: 'public',
+ x: 906.0270189867952,
+ y: 659.3716204364447,
+ fields: [
+ {
+ id: 'lywozozq8nia6swlrruargobg',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'chixcyda9jktjzcbm5spib3wg',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yhnlxws88q3wmku6pvicgu0zh',
+ name: 'content_type_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '05qmngq62whue47kr9m815ix0',
+ name: 'codename',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'yctf18ygvvbjcnrfzpjr3kloz',
+ name: 'auth_permission_content_type_id_codename_unique',
+ unique: true,
+ fieldIds: [
+ 'yhnlxws88q3wmku6pvicgu0zh',
+ '05qmngq62whue47kr9m815ix0',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '10xwrl39gv53bbox8ydynb64q',
+ name: 'auth_permission_pkey',
+ unique: true,
+ fieldIds: ['lywozozq8nia6swlrruargobg'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mh1h5ntv55nfxt4s1u6ios9he',
+ name: 'news_story',
+ schema: 'public',
+ x: -286.95227582192933,
+ y: 1242.0893982295509,
+ fields: [
+ {
+ id: 'igrc5orm9boi81gc8iit1dzcm',
+ name: 'item_ptr_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ysh9yxlypzsr9k8ctj7tqfxg3',
+ name: 'url',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '452vu35lvkicq1nfm0pfdgqm1',
+ name: 'text',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o8kgqsiz79td43nbxtabova9y',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'imkqmd19m4bi1yqvhfkce56df',
+ name: 'duplicate_of_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1izfx2k24srboq2gxsot55by5',
+ name: 'domain',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'c76wn9ex5xvz4qn7bhmd689nw',
+ name: 'news_story_duplicate_of_id_domain_index',
+ unique: false,
+ fieldIds: [
+ 'imkqmd19m4bi1yqvhfkce56df',
+ '1izfx2k24srboq2gxsot55by5',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '4gwirn4y2rwpk15exw5t3cskp',
+ name: 'news_story_pkey',
+ unique: true,
+ fieldIds: ['igrc5orm9boi81gc8iit1dzcm'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bocqxrc67eijswdpl8csjk4eq',
+ name: 'news_story_duplicate_of_id_index',
+ unique: false,
+ fieldIds: ['imkqmd19m4bi1yqvhfkce56df'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 't53vmipidxrltefpfn5oe8h21',
+ name: 'news_story_domain_index',
+ unique: false,
+ fieldIds: ['1izfx2k24srboq2gxsot55by5'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n2icqo5m7ii7vslxgltboicqb',
+ name: 'emaildigest_subscription',
+ schema: 'public',
+ x: -121.90240322088357,
+ y: 1685.1759814773866,
+ fields: [
+ {
+ id: 'upjfup67uacxrty1dplvwm1sp',
+ name: 'id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9lrqy9hgrsybaz18xi1h4u367',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1e6pnbas6z3knvaj4or2q6es0',
+ name: 'changed_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uc0ei3vewi9it0my2dtscobop',
+ name: 'frequency',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8coidlp1uk3gcltphy4k2iueq',
+ name: 'weekly_weekday',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1lf4avbf8cj92w7rv3n4jkpa7',
+ name: 'verfied_email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5t9m3za62tqojl62x1nyuoo15',
+ name: 'is_active',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'mfdvbltasffqy4ltc6gb0bky0',
+ name: 'emaildigest_subscription_pkey',
+ unique: true,
+ fieldIds: ['upjfup67uacxrty1dplvwm1sp'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ofqvhz8puoxyyh09oweayiw88',
+ name: 'news_item',
+ schema: 'public',
+ x: 91.90193648882615,
+ y: 979.0800663891878,
+ fields: [
+ {
+ id: 'dvmwsbmclafso0iqsjpwrgn4f',
+ name: 'id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r7xvbts8zzhagihr6wcg33e37',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q4qon781fl4syo2leiym4rtkh',
+ name: 'changed_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9b3dmpspwrs3chejn4s7ry58k',
+ name: 'upvotes',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pszs49njemyhez7wr9s4svkvg',
+ name: 'downvotes',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w23bko45wu2eau4bc39sles9j',
+ name: 'points',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1sfixd05jfisx2e9jl0u6qatb',
+ name: 'num_comments',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sgs6gcd4qspyslo0gqt9sg2zb',
+ name: 'lft',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sbdd23wsa7wbqwlogrhaui8ya',
+ name: 'rght',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gbw664a289jorcz21h1pobbik',
+ name: 'tree_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '876fk98kb2nporo0fvessb0ts',
+ name: 'level',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm3abfwridybrigh775bq0kxdj',
+ name: 'parent_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jzofaf88bcg4h519xrsq0c7nj',
+ name: 'user_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2b7camo7rqo5qao6u4byb0voq',
+ name: 'is_ask',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ctu3q7cuy3xvl6kvgz8v7cenv',
+ name: 'is_show',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'zfluu09qj7zdyy9k4i2f5hcdn',
+ name: 'news_item_pkey',
+ unique: true,
+ fieldIds: ['dvmwsbmclafso0iqsjpwrgn4f'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p7vw95gqibi349k1a0qu9jloz',
+ name: 'news_item_created_at_points_index',
+ unique: false,
+ fieldIds: [
+ 'r7xvbts8zzhagihr6wcg33e37',
+ 'w23bko45wu2eau4bc39sles9j',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5gmho1hnuo6zjbb37u014sr1f',
+ name: 'news_item_parent_id_index',
+ unique: false,
+ fieldIds: ['m3abfwridybrigh775bq0kxdj'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aspsa9sbq66t9o3ftrzxyy7jr',
+ name: 'news_item_id_created_at_index',
+ unique: false,
+ fieldIds: [
+ 'dvmwsbmclafso0iqsjpwrgn4f',
+ 'r7xvbts8zzhagihr6wcg33e37',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ctmcs6v4ezw8fvz165rl08ezf',
+ name: 'news_item_tree_id_index',
+ unique: false,
+ fieldIds: ['gbw664a289jorcz21h1pobbik'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dj96a23euyxa319zfjyiuazy3',
+ name: 'news_item_user_id_index',
+ unique: false,
+ fieldIds: ['jzofaf88bcg4h519xrsq0c7nj'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pqnp5obu471t7nksmopphd7nc',
+ name: 'accounts_invitation',
+ schema: 'public',
+ x: 487.3589807537594,
+ y: -1.128153969924142,
+ fields: [
+ {
+ id: '740mvsq8f58osmihmj5e649wg',
+ name: 'id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '386090l8qybipw9e72m9kh4bm',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'elrly59z585yjo4fc4njd3k1r',
+ name: 'changed_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '39umm5tgmq816lasu5sxm2n6r',
+ name: 'num_signups',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hcjklrjki708jnv76q621fa4i',
+ name: 'invited_email_address',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yeq4xbcd5fj76tp3go1wposbb',
+ name: 'invite_code',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kadleryxytclz1u05h2dix71r',
+ name: 'inviting_user_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ef0gg4kpkhjtx92jy6avsslgp',
+ name: 'accounts_invitation_pkey',
+ unique: true,
+ fieldIds: ['740mvsq8f58osmihmj5e649wg'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cx6m6sey4c6t6iyzc6z39yxdq',
+ name: 'accounts_invitation_inviting_user_id_index',
+ unique: false,
+ fieldIds: ['kadleryxytclz1u05h2dix71r'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qey85j4r4vmwhte8r9wimsz8k',
+ name: 'auth_group',
+ schema: 'public',
+ x: 910.0912206700673,
+ y: 1161.909928182987,
+ fields: [
+ {
+ id: '3uc872q2eah73cmfok4m2nha4',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ub1g4pxwmqfazvtg9aax83zzs',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '0xz4y48mexrnrqble416ftqwf',
+ name: 'auth_group_pkey',
+ unique: true,
+ fieldIds: ['3uc872q2eah73cmfok4m2nha4'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x54ihm3d4gd8qnn6awq3ycx7l',
+ name: 'auth_group_name_unique',
+ unique: true,
+ fieldIds: ['ub1g4pxwmqfazvtg9aax83zzs'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qg6no3tnfqchvkpet3y8aghl8',
+ name: 'accounts_customuser_groups',
+ schema: 'public',
+ x: 583.232614011237,
+ y: 1168.2304378061071,
+ fields: [
+ {
+ id: '8ls51pmycg1wg7q9szrimp1tr',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a1a825bk8lhktp8m76qsn4c4g',
+ name: 'customuser_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm1dqtgv21q9vhe0adk8xrakpw',
+ name: 'group_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '6nkil8zj2a2x0i5vxc5ou4g9v',
+ name: 'accounts_customuser_groups_customuser_id_group_id_unique',
+ unique: true,
+ fieldIds: [
+ 'a1a825bk8lhktp8m76qsn4c4g',
+ 'm1dqtgv21q9vhe0adk8xrakpw',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y0vs1o3hko5ra3s1jewn2pfw3',
+ name: 'accounts_customuser_groups_group_id_index',
+ unique: false,
+ fieldIds: ['m1dqtgv21q9vhe0adk8xrakpw'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zv22ouwx1ek60ha9b1pk52s4v',
+ name: 'accounts_customuser_groups_pkey',
+ unique: true,
+ fieldIds: ['8ls51pmycg1wg7q9szrimp1tr'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's4vhkwlxqb8cl580p2amlsyw4',
+ name: 'accounts_customuser_user_permissions',
+ schema: 'public',
+ x: 582.8419360400142,
+ y: 536.5804668286369,
+ fields: [
+ {
+ id: 'bf6kb7mpujn262is2l58wg973',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '16fr1mio7jua8epe94eizgwxv',
+ name: 'customuser_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9d73cxg805mo5dnlp4q38qglw',
+ name: 'permission_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'seuycu8vifrg97dwb35i4r6s2',
+ name: 'accounts_customuser_user_permissions_permission_id_index',
+ unique: false,
+ fieldIds: ['9d73cxg805mo5dnlp4q38qglw'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x818zebgyrxde5adhmm6brhev',
+ name: 'accounts_customuser_user_permissions_customuser_id_permission_i',
+ unique: true,
+ fieldIds: [
+ '16fr1mio7jua8epe94eizgwxv',
+ '9d73cxg805mo5dnlp4q38qglw',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ztpimd28e111cwccp8chga28z',
+ name: 'accounts_customuser_user_permissions_pkey',
+ unique: true,
+ fieldIds: ['bf6kb7mpujn262is2l58wg973'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'toanxl4hwa8legellcg0vyf08',
+ name: 'django_migrations',
+ schema: 'public',
+ x: -603.31419555113,
+ y: 950.0392606874932,
+ fields: [
+ {
+ id: 'tuxggfrea0jw877pz3pn5gzhk',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yuqj4vfpk5g3oja1kz55teftg',
+ name: 'app',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mby4kc3eumf1985h65sg7yz3h',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kw6zi2bpewk1qpov3yiyhem7l',
+ name: 'applied',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '8x5lltsw0q6ufva7o82ip7xzv',
+ name: 'django_migrations_pkey',
+ unique: true,
+ fieldIds: ['tuxggfrea0jw877pz3pn5gzhk'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uogpgkpokaqxphsyo9xa4rqni',
+ name: 'accounts_customuser',
+ schema: 'public',
+ x: 100,
+ y: 100,
+ fields: [
+ {
+ id: 'qv9rck165os7hli2cn7asn7os',
+ name: 'password',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm9ok171j0en76m8w47969bhvt',
+ name: 'last_login',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3jkddzho08sdft3gxid8l8wcz',
+ name: 'is_superuser',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nbay43ta5ah98869y9oxd1zsq',
+ name: 'username',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y1cjryxdhky9pc8xb2oek5qna',
+ name: 'first_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '617zqexrd0t35ylbcgs7bd8xl',
+ name: 'last_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8lmpxbw5vjxt9widnwi0s502l',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v8ko1ymxo8e4ns1bo5vqhtzzn',
+ name: 'is_staff',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x7vnvrpnhcsr764b1pqi3nifo',
+ name: 'is_active',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tgsvyt7n1f5yztw45shb43gqz',
+ name: 'date_joined',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v2khilycncdnmj4i1fqmdmcae',
+ name: 'id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ig12jx0w89qns5mpbp9l1etuo',
+ name: 'karma',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ayak2nhxum7og666cwfg3vzca',
+ name: 'about',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ocn9e3wjdw70glvkl7frvif9a',
+ name: 'level',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z9zwhbwmqoj5sgn4cznhy6q0m',
+ name: 'lft',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pxcjqcpc4y7dk8bk5d4go7ixl',
+ name: 'parent_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dk1391737q3muxfhkr8t5c2f9',
+ name: 'rght',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mbnledg3h7pjq2d28ystxhzp8',
+ name: 'tree_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ihoqh48haisti4cjqibjl22cz',
+ name: 'used_invitation_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'sfwuavr24js1l3baero71vegy',
+ name: 'accounts_customuser_parent_id_index',
+ unique: false,
+ fieldIds: ['pxcjqcpc4y7dk8bk5d4go7ixl'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '3mqsij9zh17qbvvfgi23e5uuu',
+ name: 'accounts_customuser_tree_id_index',
+ unique: false,
+ fieldIds: ['mbnledg3h7pjq2d28ystxhzp8'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hiuiws2jfeg8jkbofqk1l9duy',
+ name: 'accounts_customuser_username_unique',
+ unique: true,
+ fieldIds: ['nbay43ta5ah98869y9oxd1zsq'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '9g17xfopot08dwj5v5ekodpcj',
+ name: 'accounts_customuser_used_invitation_id_index',
+ unique: false,
+ fieldIds: ['ihoqh48haisti4cjqibjl22cz'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'svw9t92uq9lte6blvmcnlj9pg',
+ name: 'accounts_customuser_pkey',
+ unique: true,
+ fieldIds: ['v2khilycncdnmj4i1fqmdmcae'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vwcy6rcl0g7djra51h3uys1co',
+ name: 'auth_group_permissions',
+ schema: 'public',
+ x: 636.5014131324725,
+ y: 953.3331106200183,
+ fields: [
+ {
+ id: 'bhld0hh832gv616xtbs8kua2f',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rcg2zts0j2zhvb3rzlhtlcwy1',
+ name: 'group_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q3objily8g769soz3mmkcdedx',
+ name: 'permission_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'kuo5osalna4r15yjvbq64zh0h',
+ name: 'auth_group_permissions_group_id_permission_id_unique',
+ unique: true,
+ fieldIds: [
+ 'rcg2zts0j2zhvb3rzlhtlcwy1',
+ 'q3objily8g769soz3mmkcdedx',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qpsjuue7tcx7vhm7u0joumm4e',
+ name: 'auth_group_permissions_permission_id_index',
+ unique: false,
+ fieldIds: ['q3objily8g769soz3mmkcdedx'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ibftfn6oi1o9bsq5on7h311h7',
+ name: 'auth_group_permissions_pkey',
+ unique: true,
+ fieldIds: ['bhld0hh832gv616xtbs8kua2f'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vzqx78izurt09rp4hp5d4kq7x',
+ name: 'django_admin_log',
+ schema: 'public',
+ x: 878.0402583580417,
+ y: 130.75419328988505,
+ fields: [
+ {
+ id: '15q3qdcnglchj1qwma5qzxion',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hmgpj5zdeyoxval9d8yc5hwm2',
+ name: 'action_time',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rplif8qoe16b6iu924esftua0',
+ name: 'object_id',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '54cqdka46j1jfpi1n4gp8b8or',
+ name: 'object_repr',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ad878ee542t4uq4oveh0mqxb2',
+ name: 'action_flag',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hko3s4z783lkxss9kfj9siqep',
+ name: 'change_message',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5vzm92wroez7l83rvth5ypwr1',
+ name: 'content_type_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cw6blljibjcfbct97qupq7d4y',
+ name: 'user_id',
+ type: {
+ id: 'character',
+ name: 'character',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ilpwvlyq17wzzonwpkn1de29q',
+ name: 'django_admin_log_content_type_id_index',
+ unique: false,
+ fieldIds: ['5vzm92wroez7l83rvth5ypwr1'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '6yb5i5229qgyen8hn0n0btm23',
+ name: 'django_admin_log_pkey',
+ unique: true,
+ fieldIds: ['15q3qdcnglchj1qwma5qzxion'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xhb054gy7k6py4a711xdr51f4',
+ name: 'django_admin_log_user_id_index',
+ unique: false,
+ fieldIds: ['cw6blljibjcfbct97qupq7d4y'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '5175q4ybeb842atlv98jrows9',
+ name: 'emaildigest_usersubscription_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '7e1ap4huegjpqdau4l3l80tkx',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: '7nuxpce5zjow6sapz7egpymzo',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '5y79hn1zretkw7i8h7ipptbwe',
+ name: 'django_admin_log_content_type_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'vzqx78izurt09rp4hp5d4kq7x',
+ targetTableId: 'ew2veiwmyff5bi2tz6ask1unb',
+ sourceFieldId: '5vzm92wroez7l83rvth5ypwr1',
+ targetFieldId: 'gb9snc1ysqjx5udv19o9ciri1',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '6ra6a97jlm0khofl1ywfbefim',
+ name: 'emaildigest_emaildigest_stories_story_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '67f6pc9x0uyyjmwhsc09z86b5',
+ targetTableId: 'mh1h5ntv55nfxt4s1u6ios9he',
+ sourceFieldId: 'e6vn3jujiovfqpku1gz5d48rc',
+ targetFieldId: 'igrc5orm9boi81gc8iit1dzcm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '77dsht0vxptxl83sf5bibs1z9',
+ name: 'news_item_parent_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ofqvhz8puoxyyh09oweayiw88',
+ targetTableId: 'ofqvhz8puoxyyh09oweayiw88',
+ sourceFieldId: 'm3abfwridybrigh775bq0kxdj',
+ targetFieldId: 'dvmwsbmclafso0iqsjpwrgn4f',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '7gyiz4r4pibfpxr4uci6vrqzs',
+ name: 'news_comment_to_story_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ajoz1epyky9jtg1wliayl82m4',
+ targetTableId: 'mh1h5ntv55nfxt4s1u6ios9he',
+ sourceFieldId: '5e6oabu2eurmvlfa1e6za7bpc',
+ targetFieldId: 'igrc5orm9boi81gc8iit1dzcm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '7rzsabkoemft5nw6vjkudke1g',
+ name: 'news_item_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ofqvhz8puoxyyh09oweayiw88',
+ targetTableId: 'ajoz1epyky9jtg1wliayl82m4',
+ sourceFieldId: 'dvmwsbmclafso0iqsjpwrgn4f',
+ targetFieldId: '5wijgjk66fnul2ajxludgzi1s',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '8ppmvs6xqgju3c64uar8sjavk',
+ name: 'accounts_customuser_groups_customuser_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'qg6no3tnfqchvkpet3y8aghl8',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: 'a1a825bk8lhktp8m76qsn4c4g',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a9ngkvwzx0secviq5zbfakmss',
+ name: 'accounts_customuser_parent_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: 'pxcjqcpc4y7dk8bk5d4go7ixl',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ca4e80lutdv0d78c0ptlc3439',
+ name: 'django_admin_log_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'vzqx78izurt09rp4hp5d4kq7x',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: 'cw6blljibjcfbct97qupq7d4y',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'csygii52uhx42xwll1vv6xhy3',
+ name: 'accounts_customuser_used_invitation_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ targetTableId: 'pqnp5obu471t7nksmopphd7nc',
+ sourceFieldId: 'ihoqh48haisti4cjqibjl22cz',
+ targetFieldId: '740mvsq8f58osmihmj5e649wg',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e14s4td4ftlcodmu2iy2fa9i6',
+ name: 'emaildigest_anonymoussubscription_logged_in_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '9hn3pgkwfddnv17sq0q8gtsag',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: 't3bjnl79csa6arwa4uq9iebso',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e8mysaz4folexvbql9cdm2owh',
+ name: 'accounts_passwordresetrequest_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'eq1zlyk8ggtcawt0jz3bsol5i',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: 'q3sx6ty1nda73ommua0qipkz5',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gnin4aowoj9pbpw9mi2utdddn',
+ name: 'accounts_emailverification_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'afg1f12jkr6r28fvmti3nmmum',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: 'mcgdffj2wltvrot9jkjinh9yo',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gtdvdkvnt86f3if1rg273fp5w',
+ name: 'accounts_invitation_inviting_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'pqnp5obu471t7nksmopphd7nc',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: 'kadleryxytclz1u05h2dix71r',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hlrikpj6kweb9rogahyc9p1ke',
+ name: 'news_vote_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '5by7ufdjxc2q77rob07wq4rtv',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: '7otkg1lumjegx14fm1vc12btd',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i826yd7ybvxlhxuy5cmnn2q29',
+ name: 'news_story_duplicate_of_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'mh1h5ntv55nfxt4s1u6ios9he',
+ targetTableId: 'mh1h5ntv55nfxt4s1u6ios9he',
+ sourceFieldId: 'imkqmd19m4bi1yqvhfkce56df',
+ targetFieldId: 'igrc5orm9boi81gc8iit1dzcm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iafr2bf5bieu3ly99sobdls85',
+ name: 'auth_group_permissions_permission_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'vwcy6rcl0g7djra51h3uys1co',
+ targetTableId: 'hj2bexl6a27ghf8k9wiv8l12m',
+ sourceFieldId: 'q3objily8g769soz3mmkcdedx',
+ targetFieldId: 'lywozozq8nia6swlrruargobg',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jco35mupuodlcraianlicfu3c',
+ name: 'auth_group_permissions_group_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'vwcy6rcl0g7djra51h3uys1co',
+ targetTableId: 'qey85j4r4vmwhte8r9wimsz8k',
+ sourceFieldId: 'rcg2zts0j2zhvb3rzlhtlcwy1',
+ targetFieldId: '3uc872q2eah73cmfok4m2nha4',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kmfhkkg517uj2ykip7bqm5l6r',
+ name: 'accounts_customuser_user_permissions_customuser_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 's4vhkwlxqb8cl580p2amlsyw4',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: '16fr1mio7jua8epe94eizgwxv',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l7xmngu7llggol768rx0kho7v',
+ name: 'emaildigest_unsubscription_subscription_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '4r30mjer61qetdcubllpgvtnp',
+ targetTableId: 'n2icqo5m7ii7vslxgltboicqb',
+ sourceFieldId: 'nd0zshvc0pe50mx0hy4d9ujfy',
+ targetFieldId: 'upjfup67uacxrty1dplvwm1sp',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm1inqvh8fraijzxvia0j2l3jp',
+ name: 'news_vote_item_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '5by7ufdjxc2q77rob07wq4rtv',
+ targetTableId: 'ofqvhz8puoxyyh09oweayiw88',
+ sourceFieldId: 'v78vdsjfh69p96x1d0cqfmz6k',
+ targetFieldId: 'dvmwsbmclafso0iqsjpwrgn4f',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p4oh7hnxbvlj2dsr19z7z1p94',
+ name: 'accounts_customuser_groups_group_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'qg6no3tnfqchvkpet3y8aghl8',
+ targetTableId: 'qey85j4r4vmwhte8r9wimsz8k',
+ sourceFieldId: 'm1dqtgv21q9vhe0adk8xrakpw',
+ targetFieldId: '3uc872q2eah73cmfok4m2nha4',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qr4il8s1863gj1xwtjfovqd2h',
+ name: 'auth_permission_content_type_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'hj2bexl6a27ghf8k9wiv8l12m',
+ targetTableId: 'ew2veiwmyff5bi2tz6ask1unb',
+ sourceFieldId: 'yhnlxws88q3wmku6pvicgu0zh',
+ targetFieldId: 'gb9snc1ysqjx5udv19o9ciri1',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'th8f5q0hsehygjsnsmj49nin9',
+ name: 'emaildigest_subscription_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'n2icqo5m7ii7vslxgltboicqb',
+ targetTableId: '9hn3pgkwfddnv17sq0q8gtsag',
+ sourceFieldId: 'upjfup67uacxrty1dplvwm1sp',
+ targetFieldId: 'p5inc2slgnhk2nh7ulh0s4jqc',
+ sourceCardinality: 'one',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xxzvzgqnkzakfatoslmuexpnl',
+ name: 'news_item_user_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ofqvhz8puoxyyh09oweayiw88',
+ targetTableId: 'uogpgkpokaqxphsyo9xa4rqni',
+ sourceFieldId: 'jzofaf88bcg4h519xrsq0c7nj',
+ targetFieldId: 'v2khilycncdnmj4i1fqmdmcae',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yqcjwtlg6hdw2fuv0zs0dr20m',
+ name: 'accounts_customuser_user_permissions_permission_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 's4vhkwlxqb8cl580p2amlsyw4',
+ targetTableId: 'hj2bexl6a27ghf8k9wiv8l12m',
+ sourceFieldId: '9d73cxg805mo5dnlp4q38qglw',
+ targetFieldId: 'lywozozq8nia6swlrruargobg',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zm75ovy5pk4nr96bjz00o8cyw',
+ name: 'emaildigest_unsubscription_from_digest_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '4r30mjer61qetdcubllpgvtnp',
+ targetTableId: 'fj13bit1sskhfzqn6vyveka71',
+ sourceFieldId: 'irpmysxs41unttoq8hc9p1bne',
+ targetFieldId: 'e9mq1usut3gdrnhdn61ax9pjv',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zm8zek80344gykvhrwyubnd0k',
+ name: 'emaildigest_emaildigest_stories_emaildigest_id_foreign',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '67f6pc9x0uyyjmwhsc09z86b5',
+ targetTableId: 'fj13bit1sskhfzqn6vyveka71',
+ sourceFieldId: 'cktumifnf94p01uysb31ajgkv',
+ targetFieldId: 'e9mq1usut3gdrnhdn61ax9pjv',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/monica-db.ts b/src/templates-data/templates/monica-db.ts
index e93a5901..3a2da213 100644
--- a/src/templates-data/templates/monica-db.ts
+++ b/src/templates-data/templates/monica-db.ts
@@ -10,7 +10,7 @@ export const monicaDb: Template = {
description: 'Open Source eCommerce Framework on Symfony',
image,
imageDark,
- tags: ['MySQL', 'Open Source', 'Laravel', 'Monica'],
+ tags: ['MySQL', 'Open Source', 'Laravel'],
featured: true,
url: 'https://github.com/monicahq/monica',
diagram: {