Skip to content

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

fix(templates): add six more templates (ticketit, snipe-it, refinerycms, comfortable-mexican-sofa, buddypress, lobsters) (#402)

Jonathan Fishner07d374574775
diff --git a/src/assets/templates/buddypress-dark.png b/src/assets/templates/buddypress-dark.png
new file mode 100644
index 00000000..a116cf4b
Binary files /dev/null and b/src/assets/templates/buddypress-dark.png differ
diff --git a/src/assets/templates/buddypress.png b/src/assets/templates/buddypress.png
new file mode 100644
index 00000000..c753f68d
Binary files /dev/null and b/src/assets/templates/buddypress.png differ
diff --git a/src/assets/templates/comfortable-mexican-sofa-db-dark.png b/src/assets/templates/comfortable-mexican-sofa-db-dark.png
new file mode 100644
index 00000000..6b597b61
Binary files /dev/null and b/src/assets/templates/comfortable-mexican-sofa-db-dark.png differ
diff --git a/src/assets/templates/comfortable-mexican-sofa-db.png b/src/assets/templates/comfortable-mexican-sofa-db.png
new file mode 100644
index 00000000..faebdfea
Binary files /dev/null and b/src/assets/templates/comfortable-mexican-sofa-db.png differ
diff --git a/src/assets/templates/lobsters-db-dark.png b/src/assets/templates/lobsters-db-dark.png
new file mode 100644
index 00000000..cc4f2f1b
Binary files /dev/null and b/src/assets/templates/lobsters-db-dark.png differ
diff --git a/src/assets/templates/lobsters-db.png b/src/assets/templates/lobsters-db.png
new file mode 100644
index 00000000..a005209e
Binary files /dev/null and b/src/assets/templates/lobsters-db.png differ
diff --git a/src/assets/templates/refinerycms-db-dark.png b/src/assets/templates/refinerycms-db-dark.png
new file mode 100644
index 00000000..29141fe9
Binary files /dev/null and b/src/assets/templates/refinerycms-db-dark.png differ
diff --git a/src/assets/templates/refinerycms-db.png b/src/assets/templates/refinerycms-db.png
new file mode 100644
index 00000000..b6bad443
Binary files /dev/null and b/src/assets/templates/refinerycms-db.png differ
diff --git a/src/assets/templates/snipe-it-db-dark.png b/src/assets/templates/snipe-it-db-dark.png
new file mode 100644
index 00000000..daec800c
Binary files /dev/null and b/src/assets/templates/snipe-it-db-dark.png differ
diff --git a/src/assets/templates/snipe-it-db.png b/src/assets/templates/snipe-it-db.png
new file mode 100644
index 00000000..7866b543
Binary files /dev/null and b/src/assets/templates/snipe-it-db.png differ
diff --git a/src/assets/templates/ticketit-db-dark.png b/src/assets/templates/ticketit-db-dark.png
new file mode 100644
index 00000000..6ec10a73
Binary files /dev/null and b/src/assets/templates/ticketit-db-dark.png differ
diff --git a/src/assets/templates/ticketit-db.png b/src/assets/templates/ticketit-db.png
new file mode 100644
index 00000000..02c6cf2e
Binary files /dev/null and b/src/assets/templates/ticketit-db.png differ
diff --git a/src/templates-data/templates-data.ts b/src/templates-data/templates-data.ts
index 25287a3d..22f3ab50 100644
--- a/src/templates-data/templates-data.ts
+++ b/src/templates-data/templates-data.ts
@@ -14,6 +14,12 @@ import { voyagerDb } from './templates/voyager-db';
import { koelDb } from './templates/koel-db';
import { laravelPermissionDb } from './templates/laravel-permission-db';
import { gravityDb } from './templates/gravity-db';
+import { ticketitDb } from './templates/ticketit-db';
+import { lobstersDb } from './templates/lobsters-db';
+import { refinerycmsDb } from './templates/refinerycms-db';
+import { buddypressDb } from './templates/buddypress-db';
+import { snipeItDb } from './templates/snipe-it-db';
+import { ComfortableMexicanSofaDb } from './templates/comfortable-mexican-sofa-db';
export interface Template {
slug: string;
@@ -44,4 +50,10 @@ export const templates: Template[] = [
koelDb,
laravelPermissionDb,
gravityDb,
+ ticketitDb,
+ lobstersDb,
+ refinerycmsDb,
+ buddypressDb,
+ snipeItDb,
+ ComfortableMexicanSofaDb,
];
diff --git a/src/templates-data/templates/buddypress-db.ts b/src/templates-data/templates/buddypress-db.ts
new file mode 100644
index 00000000..88ecfe73
--- /dev/null
+++ b/src/templates-data/templates/buddypress-db.ts
@@ -0,0 +1,2662 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/buddypress.png';
+import imageDark from '@/assets/templates/buddypress-dark.png';
+
+export const buddypressDb: Template = {
+ slug: 'buddypress-database',
+ name: 'BuddyPress',
+ shortDescription: 'Social networking plugin for WordPress',
+ description:
+ 'Transform your WordPress site into a social network with profiles, groups, messaging, and more by Automattic',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'WordPress'],
+ featured: true,
+ url: 'https://buddypress.org',
+ diagram: {
+ id: 'buddypress_db',
+ name: 'buddypress-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.MYSQL,
+ tables: [
+ {
+ id: '059yiztfxc81c40ou8axzp6ed',
+ name: 'bp_messages_notices',
+ schema: 't_buddypress',
+ x: 900,
+ y: 1100,
+ fields: [
+ {
+ id: '4tk0dxzvxghbx6h4kvbebwyix',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6ag9nykju26g65rq867kmpq0h',
+ name: 'subject',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '6u25set1yxj58pjyjf89uquu0',
+ name: 'message',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gradl2h15nzpns2sowt6rn668',
+ name: 'date_sent',
+ type: {
+ id: 'timestamp',
+ name: 'timestamp',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uyda0a049bt6hat5cgxnl17uk',
+ name: 'is_active',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'exztwt2i37m0bowspzpzq3fna',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['4tk0dxzvxghbx6h4kvbebwyix'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'twg1wflzaxqb3qv1ihr1ldgbh',
+ name: 'bp_messages_notices_pkey',
+ unique: true,
+ fieldIds: ['4tk0dxzvxghbx6h4kvbebwyix'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0ucnx1brbrk8xl5nlofp9uae1',
+ name: 'bp_xprofile_fields',
+ schema: 't_buddypress',
+ x: 623.6067977499788,
+ y: -825.5282581475768,
+ fields: [
+ {
+ id: '7vtf8adnbdwii7ja42i7h0l4h',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't0zyx4xgmoenrhuy7qkegfh46',
+ name: 'group_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xrfucst4r34fceup45a5kp7e0',
+ name: 'parent_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6u2sq00zwzts8cn35v4iztcst',
+ name: 'type',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l8uei7qggsojvpsb78bmlx6q0',
+ name: 'name',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '49w3kyy1mypk1p8nqxwin2vvl',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'inauc48d1t818n3sj370ufbd0',
+ name: 'is_required',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gkm6f2i4xwwjy45p9dl5oh1zn',
+ name: 'is_default_option',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '983gewks8fpk7p6fxgleimm20',
+ name: 'field_order',
+ type: {
+ id: 'int',
+ name: 'int',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w2d6rg1qpti3hr411ncwipduu',
+ name: 'option_order',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '0gxmxv5hv3p5x97xxbrsvv74c',
+ name: 'order_by',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y468iy1opl7srygeq16n25k4o',
+ name: 'can_delete',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '59ufysqm7otsnshahoo3jfgfj',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['7vtf8adnbdwii7ja42i7h0l4h'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f6tkjzxv8mnvcekdlxu2qlstc',
+ name: 'bp_xprofile_fields_pkey',
+ unique: true,
+ fieldIds: ['7vtf8adnbdwii7ja42i7h0l4h'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '8c8abnkkqp4fole5dugsc2fhg',
+ name: 'bp_xprofile_fields_group_id_fkey',
+ unique: false,
+ fieldIds: ['t0zyx4xgmoenrhuy7qkegfh46'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k2uandop8ea39jqg1wo18tn7a',
+ name: 'bp_xprofile_fields_parent_id_fkey',
+ unique: false,
+ fieldIds: ['xrfucst4r34fceup45a5kp7e0'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '182bfxdmh6lcjcdd8lb8g840z',
+ name: 'bp_messages_meta',
+ schema: 't_buddypress',
+ x: 500,
+ y: 1100,
+ fields: [
+ {
+ id: 'pub98lsm85beib347pzmvu1x0',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fil4sj973p5ic0cxsofcceg6l',
+ name: 'message_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xf1wj4njcxoqu75izy0or0cna',
+ name: 'meta_key',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iteeymoc9wk8lp5vxxbn898zk',
+ name: 'meta_value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'b6q0hblal4jlx566siw2gmkrp',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['pub98lsm85beib347pzmvu1x0'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lq0jcpxg4axgahyvx6bfpjao0',
+ name: 'bp_messages_meta_pkey',
+ unique: true,
+ fieldIds: ['pub98lsm85beib347pzmvu1x0'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lc5c7vf80mbqsxqrfk4uv62pd',
+ name: 'bp_messages_meta_message_id_fkey',
+ unique: false,
+ fieldIds: ['fil4sj973p5ic0cxsofcceg6l'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3ruc34u292x94108z8a1zu379',
+ name: 'bp_invitations',
+ schema: 't_buddypress',
+ x: -235.73883210594317,
+ y: 787.6602925035411,
+ fields: [
+ {
+ id: 'ct172igfnx4394dfx5rvbz9ni',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rg4rg5uvierhzk5475jlyijit',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x93lww5rb7buw8efivfj1rpxf',
+ name: 'inviter_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's5ur9i91nvhs3d195atltaycy',
+ name: 'invite_email',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i46gpg3tiri5q8lsox4dewcwx',
+ name: 'class',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '37u1kmwapjwgpekgckyaycxr9',
+ name: 'item_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jbxvzsw2kvc53blkmxv6fip87',
+ name: 'component',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'htmi91t305tz37j5iorfvacze',
+ name: 'type',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lr9lak2q98qymhiesgkfydi97',
+ name: 'content',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mtt04ltj35lw2ipmh3rndogzy',
+ name: 'date_modified',
+ type: {
+ id: 'timestamp',
+ name: 'timestamp',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g0i64bz4wax9xhvpyw6x854lv',
+ name: 'invite_sent',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4r8imy20wayosy6bnfl92oc9h',
+ name: 'accepted',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'xnh5h5hza2i7o41c9ngb27l37',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['ct172igfnx4394dfx5rvbz9ni'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '9bip1nccbmpyly9j1qa5hegeo',
+ name: 'bp_invitations_pkey',
+ unique: true,
+ fieldIds: ['ct172igfnx4394dfx5rvbz9ni'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mehv6e36izqekbvg74wpxbzqc',
+ name: 'idx_bp_invitations_user_id',
+ unique: false,
+ fieldIds: ['rg4rg5uvierhzk5475jlyijit'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xwf2jc383wn13dw0j9s2nhtcu',
+ name: 'bp_invitations_inviter_id_fkey',
+ unique: false,
+ fieldIds: ['x93lww5rb7buw8efivfj1rpxf'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '46k8x0rzkammqzi3068tm8412',
+ name: 'bp_xprofile_data',
+ schema: 't_buddypress',
+ x: 223.60679774997882,
+ y: -825.5282581475768,
+ fields: [
+ {
+ id: 'mz0yqh3t4v0ys13z8u40b5ah7',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lan4pjnwazuaf2jg61w55ve9o',
+ name: 'field_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xqkn6nwcfq91007zu3hywq2y8',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a1cp59h9t4pix6g7mytjioqrv',
+ name: 'value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cdkabesndgz0xf3fyvfmkx567',
+ name: 'last_updated',
+ type: {
+ id: 'timestamp',
+ name: 'timestamp',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '5lpj1hhpofr105ovvyo49zcq4',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['mz0yqh3t4v0ys13z8u40b5ah7'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '9xv8xli7cv6kbtj6bis7semkm',
+ name: 'bp_xprofile_data_pkey',
+ unique: true,
+ fieldIds: ['mz0yqh3t4v0ys13z8u40b5ah7'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zg27pyh5fil4lxjhx0e47w0dh',
+ name: 'idx_bp_xprofile_data_user_id',
+ unique: false,
+ fieldIds: ['xqkn6nwcfq91007zu3hywq2y8'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q7nxh40so0ucxpnxiwwedgbuj',
+ name: 'bp_xprofile_data_field_id_fkey',
+ unique: false,
+ fieldIds: ['lan4pjnwazuaf2jg61w55ve9o'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b4eufh824hhgys59in0fz3r6x',
+ name: 'bp_messages_recipients',
+ schema: 't_buddypress',
+ x: -300.00000000000006,
+ y: -199.99999999999994,
+ fields: [
+ {
+ id: '64pefy5dogolrpbs8fdmnazs4',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8kxoyt4l9rlhgyjdmz0feqqcw',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uu67r32fln1dzermdh9v4xl7j',
+ name: 'thread_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vb3vwvlndjojjzbgfhopl9j6z',
+ name: 'unread_count',
+ type: {
+ id: 'int',
+ name: 'int',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2zmctd5l80mjucqt8av57dnip',
+ name: 'sender_only',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rwgs4p8dwu3vnaits5dmwks5p',
+ name: 'is_deleted',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'v7disi7kg0a1dwe8i4yc8d037',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['64pefy5dogolrpbs8fdmnazs4'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l7swasiafhxa726bh1rrsdzbt',
+ name: 'bp_messages_recipients_pkey',
+ unique: true,
+ fieldIds: ['64pefy5dogolrpbs8fdmnazs4'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ebubs3chv8k4rm3q7ew5ignmd',
+ name: 'bp_messages_recipients_user_id_fkey',
+ unique: false,
+ fieldIds: ['8kxoyt4l9rlhgyjdmz0feqqcw'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd1lncniyjasy10qtlh05875s6',
+ name: 'bp_messages_messages',
+ schema: 't_buddypress',
+ x: -329.67281492796104,
+ y: 287.8266089682545,
+ fields: [
+ {
+ id: 'xychdr3imufzmp6nm9qblcaoh',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sqdb2kidpp7o4pf3ujjp4bxpk',
+ name: 'thread_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'go5u77onu7el641aoe6xqcrqz',
+ name: 'sender_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pra80p3v2kqlbkg34id5owb6e',
+ name: 'subject',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a7h5f38jlvk22jc8fzn23chby',
+ name: 'message',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '91ap9bcf3hb95l213h617rsgx',
+ name: 'date_sent',
+ type: {
+ id: 'timestamp',
+ name: 'timestamp',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '7g3ttk99o8sgij1fylwd34v4f',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['xychdr3imufzmp6nm9qblcaoh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '99wpertbjn3t28cnmp9p0d26o',
+ name: 'bp_messages_messages_pkey',
+ unique: true,
+ fieldIds: ['xychdr3imufzmp6nm9qblcaoh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ahggsxoll37uom53xk9tz5q6i',
+ name: 'bp_messages_messages_sender_id_fkey',
+ unique: false,
+ fieldIds: ['go5u77onu7el641aoe6xqcrqz'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'drvg0j0jvuc41vayd9n7tfnem',
+ name: 'wp_users',
+ schema: 't_buddypress',
+ x: 100,
+ y: 100,
+ fields: [
+ {
+ id: '20raspr0lc2pnrjndvdb42m8p',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'uh6larrv1pjigi7golausxyxk',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['20raspr0lc2pnrjndvdb42m8p'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vvw3mzrkl2nv6ih7eseyfd1s7',
+ name: 'wp_users_pkey',
+ unique: true,
+ fieldIds: ['20raspr0lc2pnrjndvdb42m8p'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'foyo9qc81pcu14cjn29bxui8e',
+ name: 'bp_user_blogs_blogmeta',
+ schema: 't_buddypress',
+ x: 526.393202250021,
+ y: -375.52825814757676,
+ fields: [
+ {
+ id: 'uh9bn64wny5eu2nl1oxnghdbx',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gtcvyoa8pt9nta8zyu01030sx',
+ name: 'blog_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p3rlhkzfgjc7qhzgfvil5x2hd',
+ name: 'meta_key',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xhg4dbd914k9i5rw94pkbs1l5',
+ name: 'meta_value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'd8gx77jexthd0r3scs166nnpr',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['uh9bn64wny5eu2nl1oxnghdbx'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '1tvucwmwpkrfhyvfevg6xtv23',
+ name: 'bp_user_blogs_blogmeta_pkey',
+ unique: true,
+ fieldIds: ['uh9bn64wny5eu2nl1oxnghdbx'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5796xarleivcwoqqqqijgnnlp',
+ name: 'bp_user_blogs_blogmeta_blog_id_fkey',
+ unique: false,
+ fieldIds: ['gtcvyoa8pt9nta8zyu01030sx'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'icv205n7ujs3c0ta7s50uihwg',
+ name: 'bp_notifications_meta',
+ schema: 't_buddypress',
+ x: -273.6067977499791,
+ y: -643.8926261462365,
+ fields: [
+ {
+ id: 's5ps6c2fvb50jr69qfil8ntvd',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'txrrkzzaz7zfb0qq9wasu2fep',
+ name: 'notification_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'krnmy9klvtz70rccvgbpxy2vk',
+ name: 'meta_key',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '8sn523hfh8cz86wxqca4yx7zw',
+ name: 'meta_value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '2g02ltfwuxzkp6fyzhdndrrae',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['s5ps6c2fvb50jr69qfil8ntvd'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uuujqoybeg115bzr1sm3526cz',
+ name: 'bp_notifications_meta_pkey',
+ unique: true,
+ fieldIds: ['s5ps6c2fvb50jr69qfil8ntvd'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qznusp12k9kp3758y8gmpj4sk',
+ name: 'bp_notifications_meta_notification_id_fkey',
+ unique: false,
+ fieldIds: ['txrrkzzaz7zfb0qq9wasu2fep'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k4tieh67rm66vqdg6dtacxo6b',
+ name: 'bp_activity',
+ schema: 't_buddypress',
+ x: 500,
+ y: 100,
+ fields: [
+ {
+ id: 'yom9ch2obagddi4lwenhlzyf1',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jljs3i2114vg4uqkzg00240ne',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '792bgf4ze8osajticafdbkhmv',
+ name: 'component',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '52204nhuu7b6jahz92j36pg7v',
+ name: 'type',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '8sp33bk6kgqdsul68aqnwzgne',
+ name: 'action',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i8irbk0n04z011u5095o77tgr',
+ name: 'content',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r4aqzojjucrc042m2y26jusrg',
+ name: 'primary_link',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p5hrg44y51tviutzq2zght497',
+ name: 'secondary_item_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k6iw02o46k5u949uwnemfmh39',
+ name: 'date_recorded',
+ type: {
+ id: 'timestamp',
+ name: 'timestamp',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uip6el78tsd5n5g4s9wuxz79g',
+ name: 'hide_sitewide',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9isdtlacosyk9cwqgjllbe3ef',
+ name: 'mptt_left',
+ type: {
+ id: 'int',
+ name: 'int',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bnsvmca595ls623vud2kemw6s',
+ name: 'mptt_right',
+ type: {
+ id: 'int',
+ name: 'int',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jsxaz0z2ovuj7zje2obw7kbe7',
+ name: 'is_spam',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'rxlnvw9k51mjm8wgiq1yg2cjn',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['yom9ch2obagddi4lwenhlzyf1'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bpumht88796efuogljcvg00q6',
+ name: 'bp_activity_pkey',
+ unique: true,
+ fieldIds: ['yom9ch2obagddi4lwenhlzyf1'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pi96h7tsdsr3hqawvgnit5gq9',
+ name: 'idx_bp_activity_user_id',
+ unique: false,
+ fieldIds: ['jljs3i2114vg4uqkzg00240ne'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l6rhi1on83arxcqhwn0rcigq1',
+ name: 'bp_notifications',
+ schema: 't_buddypress',
+ x: -673.606797749979,
+ y: -193.89262614623647,
+ fields: [
+ {
+ id: 'xac2in3r7fi62rsi3o8bu9eoo',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x8mrvjck0lwinz2dlswtu5owk',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9o45kjngpyhbo2823xcraydqo',
+ name: 'item_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3zehu1iwijbjxio7nvknmiy80',
+ name: 'secondary_item_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0dvxxp1ex7m86xqrp59kgt69m',
+ name: 'component_name',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '0t43ke2o3k25gjmos9farxqhv',
+ name: 'component_action',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'udouxvx394nep8ig0osx8ile2',
+ name: 'date_notified',
+ type: {
+ id: 'timestamp',
+ name: 'timestamp',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nniftibohlfd9b9xsqac21vec',
+ name: 'is_new',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '2aohib162eftt0lj1ql8luv26',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['xac2in3r7fi62rsi3o8bu9eoo'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r2aerevbub0mo6hd1cjegwwmo',
+ name: 'bp_notifications_pkey',
+ unique: true,
+ fieldIds: ['xac2in3r7fi62rsi3o8bu9eoo'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '0cdjpq6dvylgrckucsdjy4rd2',
+ name: 'idx_bp_notifications_user_id',
+ unique: false,
+ fieldIds: ['x8mrvjck0lwinz2dlswtu5owk'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oi64stiw9u6qtfsf19zxbyxku',
+ name: 'bp_xprofile_groups',
+ schema: 't_buddypress',
+ x: 1023.6067977499788,
+ y: -825.5282581475768,
+ fields: [
+ {
+ id: '8v8kdunpl37k799mf5uasi22k',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5nugmovumfe8nz0ycc9wjqt19',
+ name: 'name',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '0iz6o97l62ko8irmg3ggy5rse',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f5a25u2vbfsg5cedofniusap9',
+ name: 'group_order',
+ type: {
+ id: 'int',
+ name: 'int',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'voz9ixhawap9yz8w3nh1j2epo',
+ name: 'can_delete',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '8j5drgbf6mo6d6j4s5fh7wap5',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['8v8kdunpl37k799mf5uasi22k'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tcv4wtkz6roviu5htu37n4wz4',
+ name: 'bp_xprofile_groups_pkey',
+ unique: true,
+ fieldIds: ['8v8kdunpl37k799mf5uasi22k'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qgfirumgbbvwujwlnhfkmmoxw',
+ name: 'bp_xprofile_meta',
+ schema: 't_buddypress',
+ x: 1040.6309954517574,
+ y: -440.8820078303851,
+ fields: [
+ {
+ id: 'v8cps72bt4ri289rjs0rmf8nz',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6ih5f6rsk2ux94gmhrzer60xe',
+ name: 'object_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kq9q3w8dieie48j40i8hnlpne',
+ name: 'object_type',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ibq07eeib0kcpaxibzbqhx6tq',
+ name: 'meta_key',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o5vrgnbz549lxpc2ov62qfpjo',
+ name: 'meta_value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '6gao70akr8oi3r4maqbpfx9q5',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['v8cps72bt4ri289rjs0rmf8nz'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5a0jsrji97549w0gbjfu6weg2',
+ name: 'bp_xprofile_meta_pkey',
+ unique: true,
+ fieldIds: ['v8cps72bt4ri289rjs0rmf8nz'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rud8tedore8ir3u7080m1liyh',
+ name: 'bp_groups_members',
+ schema: 't_buddypress',
+ x: 117.54078057199685,
+ y: 681.5942753255588,
+ fields: [
+ {
+ id: 'adg5x0olbsyh7ber4l3o4qnpp',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fsjydmw5gwnj9lu0bj1v2ufvc',
+ name: 'group_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qkf64p60rlagsd7y3cekv2eom',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '24g8m8h5z8972cfsqy3l84zoy',
+ name: 'inviter_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nmqt3a10610a7ghuyy4eiizsl',
+ name: 'is_admin',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9c31hkv6jq9e295wly8kro6gc',
+ name: 'is_mod',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bn02ly7tqme86wcms7st35ynh',
+ name: 'user_title',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qpfklesde8dsm0quemiexc2ww',
+ name: 'date_modified',
+ type: {
+ id: 'timestamp',
+ name: 'timestamp',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qhdf74hjlitk8qcfyiymnvhdg',
+ name: 'comments',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '090hnagkggla4h9jbkfc7c05l',
+ name: 'is_confirmed',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2xkcludyjl3b1xhtcaji1sv10',
+ name: 'is_banned',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yq4nb4pq30jc076o1qhd47x4q',
+ name: 'invite_sent',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '3b2uahu116xucljga0v0yyylh',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['adg5x0olbsyh7ber4l3o4qnpp'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '6ax7l6ki01u4bx4v5e4q7r830',
+ name: 'bp_groups_members_pkey',
+ unique: true,
+ fieldIds: ['adg5x0olbsyh7ber4l3o4qnpp'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5zgvboxkn5dq8vp349dvfaccb',
+ name: 'bp_groups_members_group_id_fkey',
+ unique: false,
+ fieldIds: ['fsjydmw5gwnj9lu0bj1v2ufvc'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c27jmsuf8vnmbqa2hynfnmhtp',
+ name: 'bp_groups_members_inviter_id_fkey',
+ unique: false,
+ fieldIds: ['24g8m8h5z8972cfsqy3l84zoy'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '3n8wb4ik5sfc49kj8t3wkror1',
+ name: 'bp_groups_members_user_id_fkey',
+ unique: false,
+ fieldIds: ['qkf64p60rlagsd7y3cekv2eom'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rwwyt7vhwolkbjdlukin5422o',
+ name: 'bp_groups_groupmeta',
+ schema: 't_buddypress',
+ x: 1217.540780571997,
+ y: 681.5942753255588,
+ fields: [
+ {
+ id: 'lfntt8w81u5gmgbnbtnplva86',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y8jmvj2vjy3c6xy6vgf655bbr',
+ name: 'group_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4gvewxkofo9zdcwkl9bhzndrd',
+ name: 'meta_key',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tz0z7k4ty71rvspwusrbjak6d',
+ name: 'meta_value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'j37qh6fwv28x8foq26sfy4elv',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['lfntt8w81u5gmgbnbtnplva86'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h5j5bovqnehl6946dy7v92iy8',
+ name: 'bp_groups_groupmeta_pkey',
+ unique: true,
+ fieldIds: ['lfntt8w81u5gmgbnbtnplva86'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '93psw512f21nknq3t410850uo',
+ name: 'bp_groups_groupmeta_group_id_fkey',
+ unique: false,
+ fieldIds: ['y8jmvj2vjy3c6xy6vgf655bbr'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sov1d5texnfqy3zv4jy1ii3qm',
+ name: 'bp_groups',
+ schema: 't_buddypress',
+ x: 817.5407805719968,
+ y: 681.5942753255588,
+ fields: [
+ {
+ id: 'fofypge347j4obqrf5v82ro9l',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ska8vst7pewde5rooetpvxd0l',
+ name: 'creator_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e6vzavakdd4havqdj3d7p8e32',
+ name: 'name',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vcfuhswj7jc3boqrxyieah16d',
+ name: 'slug',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ngh1vn7lb0fj3tjns01vof1pe',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wilo84pw70no0omgwvt3qlmwn',
+ name: 'status',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sdlkvv6m443a3gcrduff2kd84',
+ name: 'parent_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l9qjkg2lo7kwpjlu93kv8g438',
+ name: 'enable_forum',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '91mwpqnbn9bb4gltcuir0ex6b',
+ name: 'date_created',
+ type: {
+ id: 'timestamp',
+ name: 'timestamp',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '5xepzfdw2ewbyfg163jwbtvpw',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['fofypge347j4obqrf5v82ro9l'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kem0ujqxyml49r6am9oyiaazt',
+ name: 'bp_groups_pkey',
+ unique: true,
+ fieldIds: ['fofypge347j4obqrf5v82ro9l'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wizrrdkditzukj6s5by0609zr',
+ name: 'bp_groups_slug_key',
+ unique: true,
+ fieldIds: ['vcfuhswj7jc3boqrxyieah16d'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 's354dfgb1su0kmytkwxcq5k8p',
+ name: 'idx_bp_groups_slug',
+ unique: false,
+ fieldIds: ['vcfuhswj7jc3boqrxyieah16d'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '3vzdx250alcfgb3x50bdsji98',
+ name: 'bp_groups_creator_id_fkey',
+ unique: false,
+ fieldIds: ['ska8vst7pewde5rooetpvxd0l'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nh1dnt80g50ewwqs6edtbwijm',
+ name: 'bp_groups_parent_id_fkey',
+ unique: false,
+ fieldIds: ['sdlkvv6m443a3gcrduff2kd84'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't4v5ai87elxmw42wa9mwbd90t',
+ name: 'bp_activity_meta',
+ schema: 't_buddypress',
+ x: 900,
+ y: 100,
+ fields: [
+ {
+ id: 'kac8bvom7y6cyybcf3x86dd2e',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7dnj2czueumn0myadaqbrs744',
+ name: 'activity_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j5hmc7mymxkf2cl85p709unx0',
+ name: 'meta_key',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c444xh5dqwwb1qw0umx2tk160',
+ name: 'meta_value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '5j4d4yiejibpvnsg0uo3ham4l',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['kac8bvom7y6cyybcf3x86dd2e'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2i9h887o98jv0jkhsy16a9i40',
+ name: 'bp_activity_meta_pkey',
+ unique: true,
+ fieldIds: ['kac8bvom7y6cyybcf3x86dd2e'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lz3coh4qysk2fryq29zq2ej1w',
+ name: 'bp_activity_meta_activity_id_fkey',
+ unique: false,
+ fieldIds: ['7dnj2czueumn0myadaqbrs744'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y0iqkz3dzc92fatqrk8n84jwr',
+ name: 'bp_friends',
+ schema: 't_buddypress',
+ x: 423.60679774997897,
+ y: 543.8926261462366,
+ fields: [
+ {
+ id: 'ss9jn6mdx88oshid82iz85q1j',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vs7s6ikaopi6fcn2kphxpzo6q',
+ name: 'initiator_user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zwqbf58u4nknoa8ryavdoljgw',
+ name: 'friend_user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jwdwp5l5rfkl5w3qt7jjsvtkp',
+ name: 'is_confirmed',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dfofwefhygheh9o3ohlpz7lo6',
+ name: 'is_limited',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hmnmctbhjp1gxxjqcd1orfupk',
+ name: 'date_created',
+ type: {
+ id: 'timestamp',
+ name: 'timestamp',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '8fj0yuldcsphv3f8b1f8tcmks',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['ss9jn6mdx88oshid82iz85q1j'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k3sguvvlzpb3lakbq667rqlw6',
+ name: 'bp_friends_pkey',
+ unique: true,
+ fieldIds: ['ss9jn6mdx88oshid82iz85q1j'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mhlb4fxyzx318pztercs941yc',
+ name: 'idx_bp_friends_initiator_user_id',
+ unique: false,
+ fieldIds: ['vs7s6ikaopi6fcn2kphxpzo6q'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5oom9blim2zodtui42qs63rke',
+ name: 'idx_bp_friends_friend_user_id',
+ unique: false,
+ fieldIds: ['zwqbf58u4nknoa8ryavdoljgw'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yha897emvtfpy8sh1dhkp8ces',
+ name: 'bp_user_blogs',
+ schema: 't_buddypress',
+ x: 126.39320225002098,
+ y: -375.52825814757676,
+ fields: [
+ {
+ id: 'mo2j1vu6o8anxcm1tx9mwav74',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h4kql937zhahikpk1dr3fto1t',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vchjh7pwpstxbwlrjj66z1r8v',
+ name: 'blog_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ils79hwa03ek2mpl2dodq9hib',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['mo2j1vu6o8anxcm1tx9mwav74'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a966e9qm1jz4b02u2ar5430s8',
+ name: 'bp_user_blogs_pkey',
+ unique: true,
+ fieldIds: ['mo2j1vu6o8anxcm1tx9mwav74'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'awk6o2zllypm6u8z8z536nmof',
+ name: 'bp_user_blogs_user_id_fkey',
+ unique: false,
+ fieldIds: ['h4kql937zhahikpk1dr3fto1t'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '25githy0r9hmzkgpw8xslu069',
+ name: 'bp_messages_messages_sender_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'd1lncniyjasy10qtlh05875s6',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'go5u77onu7el641aoe6xqcrqz',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2ihrl7c1gt40amlagoeyla0xo',
+ name: 'bp_groups_creator_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'sov1d5texnfqy3zv4jy1ii3qm',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'ska8vst7pewde5rooetpvxd0l',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '48m06juagc4v5dm6oicjou4js',
+ name: 'bp_invitations_inviter_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: '3ruc34u292x94108z8a1zu379',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'x93lww5rb7buw8efivfj1rpxf',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '6iomkd1qtcxdkqppl9qakhcwi',
+ name: 'bp_activity_user_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'k4tieh67rm66vqdg6dtacxo6b',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'jljs3i2114vg4uqkzg00240ne',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '6t62nss53ov0ub28fl1ywbr3q',
+ name: 'bp_groups_members_group_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'rud8tedore8ir3u7080m1liyh',
+ targetTableId: 'sov1d5texnfqy3zv4jy1ii3qm',
+ sourceFieldId: 'fsjydmw5gwnj9lu0bj1v2ufvc',
+ targetFieldId: 'fofypge347j4obqrf5v82ro9l',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '826yttkkpbp1qpb7dbvl3f08f',
+ name: 'bp_user_blogs_blogmeta_blog_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'foyo9qc81pcu14cjn29bxui8e',
+ targetTableId: 'yha897emvtfpy8sh1dhkp8ces',
+ sourceFieldId: 'gtcvyoa8pt9nta8zyu01030sx',
+ targetFieldId: 'mo2j1vu6o8anxcm1tx9mwav74',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ag2700w0ai7czm66mt244ba3v',
+ name: 'bp_notifications_user_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'l6rhi1on83arxcqhwn0rcigq1',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'x8mrvjck0lwinz2dlswtu5owk',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b6ggz8kyuuvdj0igu0ujz9p8r',
+ name: 'bp_xprofile_data_user_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: '46k8x0rzkammqzi3068tm8412',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'xqkn6nwcfq91007zu3hywq2y8',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bk7yfpuxwz0ofzm3f7pke79rc',
+ name: 'bp_groups_members_inviter_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'rud8tedore8ir3u7080m1liyh',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: '24g8m8h5z8972cfsqy3l84zoy',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bsr2wg750445im2zv427ui8xt',
+ name: 'bp_groups_groupmeta_group_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'rwwyt7vhwolkbjdlukin5422o',
+ targetTableId: 'sov1d5texnfqy3zv4jy1ii3qm',
+ sourceFieldId: 'y8jmvj2vjy3c6xy6vgf655bbr',
+ targetFieldId: 'fofypge347j4obqrf5v82ro9l',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd5hybsjkjhifvwqhkd6thj5hw',
+ name: 'bp_xprofile_data_field_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: '46k8x0rzkammqzi3068tm8412',
+ targetTableId: '0ucnx1brbrk8xl5nlofp9uae1',
+ sourceFieldId: 'lan4pjnwazuaf2jg61w55ve9o',
+ targetFieldId: '7vtf8adnbdwii7ja42i7h0l4h',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hwg1gpfjksdxjr8tcps7pjzg8',
+ name: 'bp_groups_parent_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'sov1d5texnfqy3zv4jy1ii3qm',
+ targetTableId: 'sov1d5texnfqy3zv4jy1ii3qm',
+ sourceFieldId: 'sdlkvv6m443a3gcrduff2kd84',
+ targetFieldId: 'fofypge347j4obqrf5v82ro9l',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i7wzeewx16b9l7wez3mymy6ni',
+ name: 'bp_notifications_meta_notification_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'icv205n7ujs3c0ta7s50uihwg',
+ targetTableId: 'l6rhi1on83arxcqhwn0rcigq1',
+ sourceFieldId: 'txrrkzzaz7zfb0qq9wasu2fep',
+ targetFieldId: 'xac2in3r7fi62rsi3o8bu9eoo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n87thw0wj8iduz73lmd6ebg74',
+ name: 'bp_xprofile_fields_group_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: '0ucnx1brbrk8xl5nlofp9uae1',
+ targetTableId: 'oi64stiw9u6qtfsf19zxbyxku',
+ sourceFieldId: 't0zyx4xgmoenrhuy7qkegfh46',
+ targetFieldId: '8v8kdunpl37k799mf5uasi22k',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o68lf81yjjnpccjbepif3dxwh',
+ name: 'bp_friends_friend_user_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'y0iqkz3dzc92fatqrk8n84jwr',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'zwqbf58u4nknoa8ryavdoljgw',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oggu3g17vtfkbh0aaefl5ha6p',
+ name: 'bp_user_blogs_user_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'yha897emvtfpy8sh1dhkp8ces',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'h4kql937zhahikpk1dr3fto1t',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qvorjwmwiplluwmt3y0lsy1ip',
+ name: 'bp_messages_recipients_user_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'b4eufh824hhgys59in0fz3r6x',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: '8kxoyt4l9rlhgyjdmz0feqqcw',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qz6b9dl88cc80z7wf78pnk7tg',
+ name: 'bp_messages_meta_message_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: '182bfxdmh6lcjcdd8lb8g840z',
+ targetTableId: '059yiztfxc81c40ou8axzp6ed',
+ sourceFieldId: 'fil4sj973p5ic0cxsofcceg6l',
+ targetFieldId: '4tk0dxzvxghbx6h4kvbebwyix',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rknag7on3me2lprpohkhgennd',
+ name: 'bp_friends_initiator_user_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'y0iqkz3dzc92fatqrk8n84jwr',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'vs7s6ikaopi6fcn2kphxpzo6q',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sbf19ftk3kzei3yh41602v1uw',
+ name: 'bp_activity_meta_activity_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 't4v5ai87elxmw42wa9mwbd90t',
+ targetTableId: 'k4tieh67rm66vqdg6dtacxo6b',
+ sourceFieldId: '7dnj2czueumn0myadaqbrs744',
+ targetFieldId: 'yom9ch2obagddi4lwenhlzyf1',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sbrhn18o9p9bvci4dkfsppten',
+ name: 'bp_invitations_user_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: '3ruc34u292x94108z8a1zu379',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'rg4rg5uvierhzk5475jlyijit',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vlkhmklehzon6s5si33l1krv0',
+ name: 'bp_xprofile_fields_parent_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: '0ucnx1brbrk8xl5nlofp9uae1',
+ targetTableId: '0ucnx1brbrk8xl5nlofp9uae1',
+ sourceFieldId: 'xrfucst4r34fceup45a5kp7e0',
+ targetFieldId: '7vtf8adnbdwii7ja42i7h0l4h',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z12d64p49vlhy7qyl8bmq29p6',
+ name: 'bp_groups_members_user_id_fkey',
+ sourceSchema: 't_buddypress',
+ targetSchema: 't_buddypress',
+ sourceTableId: 'rud8tedore8ir3u7080m1liyh',
+ targetTableId: 'drvg0j0jvuc41vayd9n7tfnem',
+ sourceFieldId: 'qkf64p60rlagsd7y3cekv2eom',
+ targetFieldId: '20raspr0lc2pnrjndvdb42m8p',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/comfortable-mexican-sofa-db.ts b/src/templates-data/templates/comfortable-mexican-sofa-db.ts
new file mode 100644
index 00000000..75ea22d0
--- /dev/null
+++ b/src/templates-data/templates/comfortable-mexican-sofa-db.ts
@@ -0,0 +1,1607 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/comfortable-mexican-sofa-db.png';
+import imageDark from '@/assets/templates/comfortable-mexican-sofa-db-dark.png';
+
+export const ComfortableMexicanSofaDb: Template = {
+ slug: 'comfortable-mexican-sofa-database',
+ name: 'ComfortableMexicanSofa',
+ shortDescription: 'Rails CMS - ComfortableMexicanSofa',
+ description:
+ 'A powerful Ruby on Rails 5.2+ CMS (Content Management System) Engine',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Rails', 'CMS'],
+ featured: true,
+ url: 'https://github.com/comfy/comfortable-mexican-sofa',
+ diagram: {
+ id: 'comfortable_mexican_sofa_db',
+ name: 'comfortable-mexican-sofa-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '1i1n19xwucw76ftnnid8z7t2o',
+ name: 'comfy_cms_sites',
+ schema: 'public',
+ x: 607.203068634559,
+ y: 205.91655420936638,
+ fields: [
+ {
+ id: 'a2hyi3q08x3a1hp394ebbb66h',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('comfy_cms_sites_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '8bxj4xa6rywvosk8ekofzaz35',
+ name: 'label',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nbtc2wglf8xkl7znqie3at6h7',
+ name: 'identifier',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7nk84w17fgjfcn84qyp4vqhj4',
+ name: 'hostname',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xvubpmmhixw5cs46zgakqr36r',
+ name: 'path',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mqpx5e62hvz8m2plgyyhp6a2t',
+ name: 'locale',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0h85xog67px24oqmzhib6yfbz',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9xilgpouep3ilbgvcqsz6i8xt',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'vugnpzdi7bf2cfrt7113l2n4v',
+ name: 'comfy_cms_sites_identifier_key',
+ unique: true,
+ fieldIds: ['nbtc2wglf8xkl7znqie3at6h7'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '8vh92c3er6lelsm0j1pgbrje3',
+ name: 'comfy_cms_sites_pkey',
+ unique: true,
+ fieldIds: ['a2hyi3q08x3a1hp394ebbb66h'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4gz554fu1is9nn8kokdv8k8lw',
+ name: 'comfy_cms_files',
+ schema: 'public',
+ x: 1020.2260896719633,
+ y: -330.5225130514104,
+ fields: [
+ {
+ id: 'hsm3jnswoloro6813a5p5uuex',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('comfy_cms_files_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kemt4iwpzt3qf6gtfaf8zr3av',
+ name: 'site_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e2nr7ks3slw8yztccnh06f1m7',
+ name: 'label',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w7c6tok6nwealgzyk6khrfq0y',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l3htahdq7e4gssdxnplb884de',
+ name: 'position',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's9nl9d8uwtjrdihqzvqhj6qm6',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g4yoyg2v5zraqq81ukwx0u8xa',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ys5r9nrnwa8vff42mw0ftuo8l',
+ name: 'comfy_cms_files_pkey',
+ unique: true,
+ fieldIds: ['hsm3jnswoloro6813a5p5uuex'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '8h1j1qttxran6h04gfvkpqzh7',
+ name: 'idx_comfy_cms_files',
+ unique: false,
+ fieldIds: [
+ 'kemt4iwpzt3qf6gtfaf8zr3av',
+ 'l3htahdq7e4gssdxnplb884de',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rtz0dwod40zqc4agv0semgyyj',
+ name: 'comfy_cms_files_site_id_position_key',
+ unique: true,
+ fieldIds: [
+ 'kemt4iwpzt3qf6gtfaf8zr3av',
+ 'l3htahdq7e4gssdxnplb884de',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6m12iicr5bmvmjh7vc4nnxwx4',
+ name: 'comfy_cms_snippets',
+ schema: 'public',
+ x: 555.1477368632752,
+ y: -228.3031264459148,
+ fields: [
+ {
+ id: 'uvy743vegv4khu0lorjnvbyiw',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('comfy_cms_snippets_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '5ma4bqfgltiom4f52uy265ahr',
+ name: 'site_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n8nqm3k04418heznsuiw62ckd',
+ name: 'label',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k8m4pz4gn8cjgn3fgso3yybc6',
+ name: 'identifier',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ktpth3ljnbjjhmveit45v6q4j',
+ name: 'content',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e6gzbg1dwy39n3uvgxdkvjwsd',
+ name: 'position',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b7uxypx2zgdkz87j1bucw56dy',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dpfauggf6mb8v97qft1cp84g7',
+ name: 'updated_at',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ugtajh55einv0w1as32k8ri0p',
+ name: 'idx_comfy_cms_snippets',
+ unique: false,
+ fieldIds: [
+ '5ma4bqfgltiom4f52uy265ahr',
+ 'k8m4pz4gn8cjgn3fgso3yybc6',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k1z087zzwq0ku42plzsahvgkn',
+ name: 'comfy_cms_snippets_site_id_identifier_key',
+ unique: true,
+ fieldIds: [
+ '5ma4bqfgltiom4f52uy265ahr',
+ 'k8m4pz4gn8cjgn3fgso3yybc6',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r8rriohbeqg3fco25fcl3vfjb',
+ name: 'comfy_cms_snippets_pkey',
+ unique: true,
+ fieldIds: ['uvy743vegv4khu0lorjnvbyiw'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bpeqtu17nlds7fk9qt6ouax09',
+ name: 'comfy_cms_revisions',
+ schema: 'public',
+ x: -41.43747739370838,
+ y: -418.7551568493834,
+ fields: [
+ {
+ id: 'vwjv1tpj9swhqpl0sp4yku2xa',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('comfy_cms_revisions_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '53owojbphqee657dnec46qj4n',
+ name: 'record_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iflix9rs1nr0vwdxer4pl15bv',
+ name: 'record_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jom8gfntmivq3rdqjxthm02e7',
+ name: 'data',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qxgj8m7fqil2r4hee3cdxhpym',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'f2rts3fagxrer5s08cvxvbab7',
+ name: 'comfy_cms_revisions_record_type_record_id_created_at_key',
+ unique: true,
+ fieldIds: [
+ '53owojbphqee657dnec46qj4n',
+ 'iflix9rs1nr0vwdxer4pl15bv',
+ 'qxgj8m7fqil2r4hee3cdxhpym',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qlwz0yr1dd6tuk856dfc50hhu',
+ name: 'comfy_cms_revisions_pkey',
+ unique: true,
+ fieldIds: ['vwjv1tpj9swhqpl0sp4yku2xa'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cyfncpo2zosklocsicymvl4g2',
+ name: 'comfy_cms_categorizations',
+ schema: 'public',
+ x: 1331.039770672155,
+ y: -169.01134582534618,
+ fields: [
+ {
+ id: '80xj3jejisj80x7c36jiq7jkk',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('comfy_cms_categorizations_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '31nek4b2kuigij52w2r11h9g8',
+ name: 'category_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i8pknlei7jbvml67hcgkppkv4',
+ name: 'categorized_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5efokkfv8xj0ezihwq9vwld6k',
+ name: 'categorized_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '4hkdkoibh879kpg5ixcgcval8',
+ name: 'comfy_cms_categorizations_category_id_categorized_type_cate_key',
+ unique: true,
+ fieldIds: [
+ '31nek4b2kuigij52w2r11h9g8',
+ 'i8pknlei7jbvml67hcgkppkv4',
+ '5efokkfv8xj0ezihwq9vwld6k',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '6w0y2wxbz70w78gntc2doram3',
+ name: 'idx_comfy_cms_categorizations',
+ unique: false,
+ fieldIds: [
+ '31nek4b2kuigij52w2r11h9g8',
+ 'i8pknlei7jbvml67hcgkppkv4',
+ '5efokkfv8xj0ezihwq9vwld6k',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '4l1axse9ewvlff6iwc72nfa4a',
+ name: 'comfy_cms_categorizations_pkey',
+ unique: true,
+ fieldIds: ['80xj3jejisj80x7c36jiq7jkk'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e5834gyvmwro9zxtg3b5cw3bz',
+ name: 'comfy_cms_pages',
+ schema: 'public',
+ x: 662.6829427804548,
+ y: 668.0517088348578,
+ fields: [
+ {
+ id: 'y8j19xae7nn91wn0m7aebp5h0',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('comfy_cms_pages_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fa381qe39zwfs3bkhb99lfs9f',
+ name: 'site_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'du2trf4cbs0tsezfdwymoavhp',
+ name: 'layout_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uxc4pj43vq7pdr1eikkgqxmus',
+ name: 'parent_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fpmprec23i7bkqqa1xqtkrvzh',
+ name: 'target_page_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1k2yq61cqrs8kso303vrw4ome',
+ name: 'label',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fe1ytks9wbi9fddf47op5h9r8',
+ name: 'slug',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iwn2e2bqt9t87vean88uoy5p5',
+ name: 'full_path',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm7p3cagtdjefx06u4vrib6v14',
+ name: 'content_cache',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z9soyv27f3xolxv0801vi7dgq',
+ name: 'is_published',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: 'true',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bwyl6de3l5lbxfh3wy2y8hw8x',
+ name: 'position',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kjln20azmmcynt6wy14l8hsl2',
+ name: 'children_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lzc9npr5qp2ynj2vw7afz9rty',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '88xuyadd1wdfw73fwrh9zf45c',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'vo15t1ws5xln7bt5ixnqfm9sg',
+ name: 'idx_comfy_cms_pages_full_path',
+ unique: false,
+ fieldIds: [
+ 'fa381qe39zwfs3bkhb99lfs9f',
+ 'iwn2e2bqt9t87vean88uoy5p5',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c4amy2sqghpq7nrfcgke6mm2v',
+ name: 'comfy_cms_pages_slug_key',
+ unique: true,
+ fieldIds: ['fe1ytks9wbi9fddf47op5h9r8'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ujw1dat9o1mjrkjms3f55nw2c',
+ name: 'comfy_cms_pages_site_id_full_path_key',
+ unique: true,
+ fieldIds: [
+ 'fa381qe39zwfs3bkhb99lfs9f',
+ 'iwn2e2bqt9t87vean88uoy5p5',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rq35dpca7famqkzmsyylxcpol',
+ name: 'comfy_cms_pages_pkey',
+ unique: true,
+ fieldIds: ['y8j19xae7nn91wn0m7aebp5h0'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jpvv0pdp82w3vvpmdi9yu79ef',
+ name: 'comfy_cms_fragments',
+ schema: 'public',
+ x: 1125.8068396463786,
+ y: 506.880687983534,
+ fields: [
+ {
+ id: 'm0s6k37m1oom3wihysdnj3imt',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('comfy_cms_fragments_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 't388xy2ksn68e3dqg689itbv1',
+ name: 'recordable_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y3u0b8fi951vpj3zob1tpjqzj',
+ name: 'recordable_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5kftfbvqps0segb7chn4p1sxl',
+ name: 'identifier',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pbzkl3drt5citimcz5ud6l4ee',
+ name: 'tag',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k7cptmkwjjrn1hzpwa8kxwgzx',
+ name: 'content',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '60v7n5m6s9nnoa88u9watqx5t',
+ name: 'boolean',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't2k02w621znunzmb9eb364o9m',
+ name: 'datetime',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6n2qcdgxfeerac0rx713p6db8',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a3313v4ymwp4kc2om16yv2bug',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'dl6cyf8yqgwi6zxkknnqqlihu',
+ name: 'comfy_cms_fragments_pkey',
+ unique: true,
+ fieldIds: ['m0s6k37m1oom3wihysdnj3imt'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a8bfgynwe32gw61wk9zu26izz',
+ name: 'idx_comfy_cms_fragments',
+ unique: false,
+ fieldIds: [
+ 't388xy2ksn68e3dqg689itbv1',
+ 'y3u0b8fi951vpj3zob1tpjqzj',
+ '5kftfbvqps0segb7chn4p1sxl',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vb4ynhwszf6l38zu9wtx2r78i',
+ name: 'comfy_cms_fragments_recordable_id_recordable_type_identifie_key',
+ unique: true,
+ fieldIds: [
+ 't388xy2ksn68e3dqg689itbv1',
+ 'y3u0b8fi951vpj3zob1tpjqzj',
+ '5kftfbvqps0segb7chn4p1sxl',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'knry1hxcqwwa09vnlpyunt6a8',
+ name: 'comfy_cms_layouts',
+ schema: 'public',
+ x: -417.3295112025886,
+ y: -0.01703883250047511,
+ fields: [
+ {
+ id: 'vvpb6i0zl180z0xtkbkmbt8zq',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('comfy_cms_layouts_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g5f55dk6u10i0e8twlopis5yn',
+ name: 'site_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7lg3lic3upf5opwjhorqve3n7',
+ name: 'parent_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nypj8f9ge4by4pds1jskvpj09',
+ name: 'app_layout',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cb7bkgpw11yjvz64pi91jqcmh',
+ name: 'label',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wgr37zn8b6j31whn35jisbnfp',
+ name: 'identifier',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bjzpv4r293wagif7rs7vtbs6j',
+ name: 'content',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r9dzwl2pkctxvoey4gjo85ibv',
+ name: 'css',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sb4t7nwxx2dl16oseryk7jdd1',
+ name: 'js',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uqdj1ajkrrf2zlm48a9pg0r3y',
+ name: 'position',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n3yv8vh9zad5zgpyjiri2zz64',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vad7ga2i4i6r5155127awywsb',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'audt2e5o01r0gak8oxbg2zvb0',
+ name: 'comfy_cms_layouts_site_id_identifier_key',
+ unique: true,
+ fieldIds: [
+ 'g5f55dk6u10i0e8twlopis5yn',
+ 'wgr37zn8b6j31whn35jisbnfp',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pahvbcuq0isyvr105qf4eopra',
+ name: 'idx_comfy_cms_layouts',
+ unique: false,
+ fieldIds: [
+ 'g5f55dk6u10i0e8twlopis5yn',
+ 'wgr37zn8b6j31whn35jisbnfp',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cxopbq1wyvbfg0fhcjad7w8pn',
+ name: 'comfy_cms_layouts_pkey',
+ unique: true,
+ fieldIds: ['vvpb6i0zl180z0xtkbkmbt8zq'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'og53dwps4q7txai0egunnh6zb',
+ name: 'comfy_cms_translations',
+ schema: 'public',
+ x: -93.51741252208262,
+ y: 488.71081161796053,
+ fields: [
+ {
+ id: 'vcf3qw3w08vbi1y3giku8jjbd',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('comfy_cms_translations_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mhn2bonfsd00rqia8lb7xbe62',
+ name: 'locale',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm92nfn5papv27p2dx5zxaalkp',
+ name: 'layout_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd8cm7femomjqul6q7ivzj9ehi',
+ name: 'page_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'laz84kf43o2k9dao2k31f4z7h',
+ name: 'label',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8z5ahzbm6vcmxh333kkw6pnou',
+ name: 'content_cache',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c5ir6j00habaly8w7r9ec3007',
+ name: 'is_published',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: 'true',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zelme1en34qemwre4i9k8cnmr',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xva9vjrgao3cbgaaqqer26xnc',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'tldm4evjlx0h2bfr0onc03ys2',
+ name: 'idx_comfy_cms_translations',
+ unique: false,
+ fieldIds: [
+ 'mhn2bonfsd00rqia8lb7xbe62',
+ 'm92nfn5papv27p2dx5zxaalkp',
+ 'd8cm7femomjqul6q7ivzj9ehi',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nf9dzxg2ciy86qq9o24bbk24i',
+ name: 'comfy_cms_translations_pkey',
+ unique: true,
+ fieldIds: ['vcf3qw3w08vbi1y3giku8jjbd'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's88553ow908alh5oai78mda7r',
+ name: 'comfy_cms_categories',
+ schema: 'public',
+ x: 1379.3920137143991,
+ y: 200.01703883250048,
+ fields: [
+ {
+ id: '76g8ntmzax7x5la7tjh1nc81e',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('comfy_cms_categories_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '9wzko2usjtxzmtha8iwjtyh36',
+ name: 'site_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dhvm5i7whcc1shu8yd3j3j281',
+ name: 'label',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jp5qxf4ahf2b1blzr0t0c10fj',
+ name: 'categorized_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'u1a25vc3fx7dvd7esa3569p69',
+ name: 'comfy_cms_categories_site_id_categorized_type_label_key',
+ unique: true,
+ fieldIds: [
+ '9wzko2usjtxzmtha8iwjtyh36',
+ 'jp5qxf4ahf2b1blzr0t0c10fj',
+ 'dhvm5i7whcc1shu8yd3j3j281',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p1986ujktrv7yec63i9op4yli',
+ name: 'comfy_cms_categories_pkey',
+ unique: true,
+ fieldIds: ['76g8ntmzax7x5la7tjh1nc81e'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '33ca24mqyw0edfw8nm4tahc3a',
+ name: 'comfy_cms_revisions_record_id_fk',
+ sourceSchema: 'public',
+ sourceTableId: 'bpeqtu17nlds7fk9qt6ouax09',
+ targetSchema: 'public',
+ targetTableId: '6m12iicr5bmvmjh7vc4nnxwx4',
+ sourceFieldId: 'iflix9rs1nr0vwdxer4pl15bv',
+ targetFieldId: 'uvy743vegv4khu0lorjnvbyiw',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '37d5nyoucm96qyjrc4j8tnfa4',
+ name: 'comfy_cms_categories_site_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 's88553ow908alh5oai78mda7r',
+ targetTableId: '1i1n19xwucw76ftnnid8z7t2o',
+ sourceFieldId: '9wzko2usjtxzmtha8iwjtyh36',
+ targetFieldId: 'a2hyi3q08x3a1hp394ebbb66h',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '3axngwbad8wo46zbk6ycfrt79',
+ name: 'comfy_cms_revisions_record_id_fk',
+ sourceSchema: 'public',
+ sourceTableId: 'bpeqtu17nlds7fk9qt6ouax09',
+ targetSchema: 'public',
+ targetTableId: 'e5834gyvmwro9zxtg3b5cw3bz',
+ sourceFieldId: 'iflix9rs1nr0vwdxer4pl15bv',
+ targetFieldId: 'y8j19xae7nn91wn0m7aebp5h0',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '6gz2382uk6rbtvshq9l1zzqys',
+ name: 'comfy_cms_translations_page_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'og53dwps4q7txai0egunnh6zb',
+ targetTableId: 'e5834gyvmwro9zxtg3b5cw3bz',
+ sourceFieldId: 'd8cm7femomjqul6q7ivzj9ehi',
+ targetFieldId: 'y8j19xae7nn91wn0m7aebp5h0',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '74zqqon9vqax6krkvxzdhizwj',
+ name: 'comfy_cms_revisions_record_id_fk',
+ sourceSchema: 'public',
+ sourceTableId: 'bpeqtu17nlds7fk9qt6ouax09',
+ targetSchema: 'public',
+ targetTableId: 'knry1hxcqwwa09vnlpyunt6a8',
+ sourceFieldId: 'iflix9rs1nr0vwdxer4pl15bv',
+ targetFieldId: 'vvpb6i0zl180z0xtkbkmbt8zq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dcfp1of3r49syon1m7ji7r4jz',
+ name: 'comfy_cms_translations_layout_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'og53dwps4q7txai0egunnh6zb',
+ targetTableId: 'knry1hxcqwwa09vnlpyunt6a8',
+ sourceFieldId: 'm92nfn5papv27p2dx5zxaalkp',
+ targetFieldId: 'vvpb6i0zl180z0xtkbkmbt8zq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fbfi778xy1oafoaorb69l7xpx',
+ name: 'comfy_cms_pages_parent_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'e5834gyvmwro9zxtg3b5cw3bz',
+ targetTableId: 'e5834gyvmwro9zxtg3b5cw3bz',
+ sourceFieldId: 'uxc4pj43vq7pdr1eikkgqxmus',
+ targetFieldId: 'y8j19xae7nn91wn0m7aebp5h0',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j7mbc1pgg3gxhcw1mtw33q2eu',
+ name: 'comfy_cms_categorizations_category_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'cyfncpo2zosklocsicymvl4g2',
+ targetTableId: 's88553ow908alh5oai78mda7r',
+ sourceFieldId: '31nek4b2kuigij52w2r11h9g8',
+ targetFieldId: '76g8ntmzax7x5la7tjh1nc81e',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k7obmh3n8juorg1l87fiiij8g',
+ name: 'comfy_cms_pages_layout_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'e5834gyvmwro9zxtg3b5cw3bz',
+ targetTableId: 'knry1hxcqwwa09vnlpyunt6a8',
+ sourceFieldId: 'du2trf4cbs0tsezfdwymoavhp',
+ targetFieldId: 'vvpb6i0zl180z0xtkbkmbt8zq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kjlielgazpuvg5lzb5i5d6q15',
+ name: 'comfy_cms_pages_target_page_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'e5834gyvmwro9zxtg3b5cw3bz',
+ targetTableId: 'e5834gyvmwro9zxtg3b5cw3bz',
+ sourceFieldId: 'fpmprec23i7bkqqa1xqtkrvzh',
+ targetFieldId: 'y8j19xae7nn91wn0m7aebp5h0',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mvs0re4fz6xs7ivjev7yxqxw4',
+ name: 'comfy_cms_files_site_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '4gz554fu1is9nn8kokdv8k8lw',
+ targetTableId: '1i1n19xwucw76ftnnid8z7t2o',
+ sourceFieldId: 'kemt4iwpzt3qf6gtfaf8zr3av',
+ targetFieldId: 'a2hyi3q08x3a1hp394ebbb66h',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q6hdn2vkibid8ffhdpoajdg32',
+ name: 'comfy_cms_snippets_site_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '6m12iicr5bmvmjh7vc4nnxwx4',
+ targetTableId: '1i1n19xwucw76ftnnid8z7t2o',
+ sourceFieldId: '5ma4bqfgltiom4f52uy265ahr',
+ targetFieldId: 'a2hyi3q08x3a1hp394ebbb66h',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rzp18p74yxwu1u2y6y9euofm3',
+ name: 'comfy_cms_layouts_site_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'knry1hxcqwwa09vnlpyunt6a8',
+ targetTableId: '1i1n19xwucw76ftnnid8z7t2o',
+ sourceFieldId: 'g5f55dk6u10i0e8twlopis5yn',
+ targetFieldId: 'a2hyi3q08x3a1hp394ebbb66h',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 't7qh9ic3s8ivfkzk644qjl54i',
+ name: 'comfy_cms_pages_site_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'e5834gyvmwro9zxtg3b5cw3bz',
+ targetTableId: '1i1n19xwucw76ftnnid8z7t2o',
+ sourceFieldId: 'fa381qe39zwfs3bkhb99lfs9f',
+ targetFieldId: 'a2hyi3q08x3a1hp394ebbb66h',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w7seqm46riwegnvpp2ofzjv60',
+ name: 'comfy_cms_layouts_parent_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'knry1hxcqwwa09vnlpyunt6a8',
+ targetTableId: 'knry1hxcqwwa09vnlpyunt6a8',
+ sourceFieldId: '7lg3lic3upf5opwjhorqve3n7',
+ targetFieldId: 'vvpb6i0zl180z0xtkbkmbt8zq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/lobsters-db.ts b/src/templates-data/templates/lobsters-db.ts
new file mode 100644
index 00000000..6978a93a
--- /dev/null
+++ b/src/templates-data/templates/lobsters-db.ts
@@ -0,0 +1,1740 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/lobsters-db.png';
+import imageDark from '@/assets/templates/lobsters-db-dark.png';
+
+export const lobstersDb: Template = {
+ slug: 'lobsters-database',
+ name: 'Lobsters',
+ shortDescription: 'Computing-focused community centered',
+ description:
+ 'Around link aggregation and discussion - Example database schema diagram for lobsters',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Example Apps'],
+ featured: true,
+ url: 'https://github.com/SukhjinderArora/lobsters-clone',
+ diagram: {
+ id: 'lobsters_db',
+ name: 'lobsters-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.MYSQL,
+ tables: [
+ {
+ id: '0esn3myj5fkhmni76sz24uh1l',
+ name: 'moderation_logs',
+ schema: 'template1-db',
+ x: 123.66934023447857,
+ y: 478.0866225058478,
+ fields: [
+ {
+ id: '21hhgymxf90do74h1w1q6mm52',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h7ko8616u9ta7obi2uxt1vtfm',
+ name: 'story_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5ysqav2xzsya4b651h5h8dqwm',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jetuh9p8z0ws0ghqcnuqg0og5',
+ name: 'action',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ydznphqxtpe57a1a3i8ir4oj5',
+ name: 'created_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'apvn8uks8wnz79vajvkfnffi0',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['21hhgymxf90do74h1w1q6mm52'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '4ydtptqwm6sytm5zs7n8hkg2h',
+ name: 'story_id',
+ unique: false,
+ fieldIds: ['h7ko8616u9ta7obi2uxt1vtfm'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g89dr29ywnv09dshg8cjid5o7',
+ name: 'user_id',
+ unique: false,
+ fieldIds: ['5ysqav2xzsya4b651h5h8dqwm'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6x5l6o01cdnqxpdrnc6suhf2m',
+ name: 'invitations',
+ schema: 'template1-db',
+ x: 1097.940779583232,
+ y: 343.9145915377326,
+ fields: [
+ {
+ id: 'rthxkab63nht1rtk4na89vvr4',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n8qcyagm5r36v0g7c5jpp0bjx',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '54x4z9j1euuwxew1839afvgsv',
+ name: 'email',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '24gjs67cvg9c9hksywhrpw5qr',
+ name: 'created_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o7njvpa44tev2vj6y9m83zkge',
+ name: 'used_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '3j04y23qgcbay7fpj9gn1jx19',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['rthxkab63nht1rtk4na89vvr4'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c14qtbgt7gczwfdkdkau7ut70',
+ name: 'user_id',
+ unique: false,
+ fieldIds: ['n8qcyagm5r36v0g7c5jpp0bjx'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8nhj3tjdvouvomt1940t7pg5b',
+ name: 'tags',
+ schema: 'template1-db',
+ x: 900,
+ y: -349.99999999999994,
+ fields: [
+ {
+ id: 't88yt32caepwcwpbdwq6yunhp',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0w4n09pj2h388py97grbkddce',
+ name: 'tag_name',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'huvg0582nmyb5fo8rtsb99r27',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tuai1c8nsb2m9v2n13kjz9dvn',
+ name: 'created_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9wdx24kas7swv8vcobogqncmd',
+ name: 'updated_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'f4j6w753d5x30qi7txas9j4lf',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['t88yt32caepwcwpbdwq6yunhp'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ij668mgt7mde0t6p4n6vi7885',
+ name: 'tag_name',
+ unique: true,
+ fieldIds: ['0w4n09pj2h388py97grbkddce'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8zj7bm5sobx6lc8inxjiw08cs',
+ name: 'stories',
+ schema: 'template1-db',
+ x: 172.99933138344545,
+ y: -147.9955551822826,
+ fields: [
+ {
+ id: '9zhevj9k3sr71qunu9eto3k0j',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'omqqnbq8s94zukws29rjtrhp0',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fs6ghtypl0qot5umiqjwn6hdr',
+ name: 'title',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '85m7zkip1yvit4zst54k6mo8t',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ofiqtiv5blvk2psn5t83kmncc',
+ name: 'url',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b9jzb64nbhzhnp3yiy7r9k7ku',
+ name: 'created_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c32z1zomwho4qfm3imh6mxnx2',
+ name: 'updated_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oi1zd877r9ren51m98r7hv0b5',
+ name: 'moderated',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'blsninelkz0os2skws9d261md',
+ name: 'score',
+ type: {
+ id: 'int',
+ name: 'int',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'h9ol2i4zc00s858yj43x0r0cz',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['9zhevj9k3sr71qunu9eto3k0j'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qua7fpqb3ndh30wjalq3sq9ft',
+ name: 'user_id',
+ unique: false,
+ fieldIds: ['omqqnbq8s94zukws29rjtrhp0'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9wxfmjnnje5w59yerd73cz9dw',
+ name: 'users',
+ schema: 'template1-db',
+ x: 623.1687054530346,
+ y: -29.093576670229254,
+ fields: [
+ {
+ id: 'shvxpnxhrumb5o1wafxj07moo',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'natb552qnte01wjfzk7mf8ry0',
+ name: 'username',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2fo2zvpvhsi609mrz75zgpgqy',
+ name: 'email',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'crae77v32lox343aoabgcu8aw',
+ name: 'encrypted_password',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a01vyo0xc68jr2gzv1dr58pw8',
+ name: 'password_digest',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cmajazva1xeihpzytrsuknqnl',
+ name: 'created_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kj1qm117k1mon7vi8znotgqm7',
+ name: 'updated_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uagg25l03hz7asaivjv8il1ib',
+ name: 'settings',
+ type: {
+ id: 'json',
+ name: 'json',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4z5cajd9g919xfz5r3r1qhiz6',
+ name: 'banned',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kuqq40wp2jzc8y10m2ptl8mc0',
+ name: 'is_admin',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '5qjl9x9elrve58s3bfyg0x0hz',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['shvxpnxhrumb5o1wafxj07moo'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5ffp4jrx998r77jdujprs6ozt',
+ name: 'username',
+ unique: true,
+ fieldIds: ['natb552qnte01wjfzk7mf8ry0'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bmspaixcc45d8jk5fz8vt7050',
+ name: 'ar_internal_metadata',
+ schema: 'template1-db',
+ x: -429.9631042251518,
+ y: 637.9808834960214,
+ fields: [
+ {
+ id: 'xz1icgseeq3ovbb7z31d66vi1',
+ name: 'key',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '7kgige8lmojblyssuzjpanryo',
+ name: 'value',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '7wwr4uasthbck7z8tdnjpzm7v',
+ name: 'created_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ypyxb7qqdo2jp7sier21gzgv9',
+ name: 'updated_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'xxc4la3pco7uvm4m87oxzdi8b',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['xz1icgseeq3ovbb7z31d66vi1'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c5r9i6m7x1vagsnj5kkhzo9ej',
+ name: 'hidden_stories',
+ schema: 'template1-db',
+ x: 671.5181135791465,
+ y: 599.3883097506239,
+ fields: [
+ {
+ id: 'w4kgz2l7iiz1lvdd71z935glc',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bsa025se8d113zak2hp04ny5k',
+ name: 'story_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4uqxqamzp2k18pgq2dgbcwlv4',
+ name: 'hidden_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ljqgccfbcxqpwzrlawem53wty',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: [
+ 'w4kgz2l7iiz1lvdd71z935glc',
+ 'bsa025se8d113zak2hp04ny5k',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tndifhhdahgwf83iylebga6lq',
+ name: 'story_id',
+ unique: false,
+ fieldIds: ['bsa025se8d113zak2hp04ny5k'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gulkegqq5s0x6jcpa1tulvoo2',
+ name: 'votes',
+ schema: 'template1-db',
+ x: 192.8932188134524,
+ y: -677.8174593052022,
+ fields: [
+ {
+ id: 'gjj355pgsoxca1mjlliw91kga',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9jubc2tz9e96uqq00osf2a0n9',
+ name: 'story_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '02i1fxp0hyc6stx29u1imhymj',
+ name: 'comment_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vb0snqwvsfdwapchggif7943p',
+ name: 'vote',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pysfn1qhipt6yf8w4kw9qlpp5',
+ name: 'voted_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '9pfqj6wacxxuv8y6076l8kqzu',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: [
+ 'gjj355pgsoxca1mjlliw91kga',
+ '9jubc2tz9e96uqq00osf2a0n9',
+ '02i1fxp0hyc6stx29u1imhymj',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bfsccksiuqpr5i04bidh89kjz',
+ name: 'story_id',
+ unique: false,
+ fieldIds: ['9jubc2tz9e96uqq00osf2a0n9'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '7end0b184a30shiyytyglcccf',
+ name: 'comment_id',
+ unique: false,
+ fieldIds: ['02i1fxp0hyc6stx29u1imhymj'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jh8ibbu5ujypvs3v7mvonb7ic',
+ name: 'saved_stories',
+ schema: 'template1-db',
+ x: -311.0309810787983,
+ y: -157.18966268712256,
+ fields: [
+ {
+ id: 'njisjg85dvav35ef72nkfi8hb',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0jqum4f9sa3ayfsx6661eqx1h',
+ name: 'story_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ldr49z7wra5nhk7rjaq5nbuck',
+ name: 'saved_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'i6fvafiicjg66znpwusae91zt',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: [
+ 'njisjg85dvav35ef72nkfi8hb',
+ '0jqum4f9sa3ayfsx6661eqx1h',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y25sjqevluwtad09scm7mkcsy',
+ name: 'story_id',
+ unique: false,
+ fieldIds: ['0jqum4f9sa3ayfsx6661eqx1h'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mgfnl610ri6uf954o5aqzkxlz',
+ name: 'comments',
+ schema: 'template1-db',
+ x: -298.34185572378647,
+ y: -487.7154937881493,
+ fields: [
+ {
+ id: 'noumroprztpi610y3ak6rk281',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '81tp6ws27oibs7g9cyuwed7tv',
+ name: 'story_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vizwjv6dwzhtwiksbgyd7skom',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ffruvi2ydbtv6agub9ibzj0fc',
+ name: 'body',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cpy0wkkb00nkstr6szhiimzfs',
+ name: 'created_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6hslr8hncmobcsff734m6devv',
+ name: 'updated_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'xqqlyjzgmgbztb7lscjbh3owh',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['noumroprztpi610y3ak6rk281'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '4l0mx62tx8gmu5xbv5pu2p4m3',
+ name: 'story_id',
+ unique: false,
+ fieldIds: ['81tp6ws27oibs7g9cyuwed7tv'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '9ojyf1ca2bdjv2l89eiwrejkc',
+ name: 'user_id',
+ unique: false,
+ fieldIds: ['vizwjv6dwzhtwiksbgyd7skom'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rqmsv56dskx4lbsitwc2dxzwq',
+ name: 'schema_migrations',
+ schema: 'template1-db',
+ x: 122.04134059256535,
+ y: 865.593242361952,
+ fields: [
+ {
+ id: 'nb2ppkolr4keszfi8vmkbuq5x',
+ name: 'version',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'n0m23qqv7rma3d6i7ik86fl9m',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['nb2ppkolr4keszfi8vmkbuq5x'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rz7hh0d24mgp2e3pnqh2pgjem',
+ name: 'messages',
+ schema: 'template1-db',
+ x: 1184.1754334714758,
+ y: -104.02199763592256,
+ fields: [
+ {
+ id: 'u5a9h1iqjjrczscqe47u1xddw',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kycu1ck60p5jdubmvcv538ctv',
+ name: 'sender_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uj0fvw4nal00c1bbttw3kw4x2',
+ name: 'recipient_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mlyo4ieba7moxvoczghl331ec',
+ name: 'subject',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jt84imdzs0wav71n7kgoyrfdm',
+ name: 'body',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'njzqol7jf4adr79o5rcb7ia6w',
+ name: 'created_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ushq7y57kizavsc5fs3h8sr9d',
+ name: 'read_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5o83ckvpc3utxcnevpso6xho9',
+ name: 'deleted_by_sender',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ {
+ id: '52znmere91ed75cqg9gjckq94',
+ name: 'deleted_by_recipient',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'biqwp3qorbfqq6z6mc5mi71uu',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['u5a9h1iqjjrczscqe47u1xddw'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o4ntvss0g2p9nwz7itcqmiwx9',
+ name: 'sender_id',
+ unique: false,
+ fieldIds: ['kycu1ck60p5jdubmvcv538ctv'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xghta3vlhhv0n54jtirue4ld2',
+ name: 'recipient_id',
+ unique: false,
+ fieldIds: ['uj0fvw4nal00c1bbttw3kw4x2'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vyocfr4c0h0mczrcnst51bn5e',
+ name: 'story_tags',
+ schema: 'template1-db',
+ x: 499.99999999999994,
+ y: -349.99999999999994,
+ fields: [
+ {
+ id: 'tvcn3axepfbhabumofkp69dr7',
+ name: 'story_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mv7s4vagr9itpxj8a49ldy1wu',
+ name: 'tag_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'h9d776e5tqbbbpnpqh0ln37ni',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: [
+ 'tvcn3axepfbhabumofkp69dr7',
+ 'mv7s4vagr9itpxj8a49ldy1wu',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ybbdt8gyuqi08qs554mw2xc8q',
+ name: 'tag_id',
+ unique: false,
+ fieldIds: ['mv7s4vagr9itpxj8a49ldy1wu'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y545uaplf9lfu57cy7rzydmdr',
+ name: 'domains',
+ schema: 'template1-db',
+ x: -159.0566808953813,
+ y: 712.7192699893121,
+ fields: [
+ {
+ id: 'lz7ntpwvnj86dvtn22zfzeogd',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xxm1f7jw6c9cdtnm06vvbpmv9',
+ name: 'domain',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ed5n0gyse2796jikar5iv0joq',
+ name: 'created_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '62fi68o9gduwkdx34bieuqylc',
+ name: 'updated_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'me1khgep9z9xxg39enogllw4b',
+ name: 'banned',
+ type: {
+ id: 'tinyint',
+ name: 'tinyint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'oyf3mo3gsn1olz93brf7jdxjh',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['lz7ntpwvnj86dvtn22zfzeogd'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '7fead2x6n02gfl4axno7rdav3',
+ name: 'domain',
+ unique: true,
+ fieldIds: ['xxm1f7jw6c9cdtnm06vvbpmv9'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zypz8joo0zka4c3epzavwxf11',
+ name: 'moderations',
+ schema: 'template1-db',
+ x: -373.94976977199997,
+ y: 273.86885893836813,
+ fields: [
+ {
+ id: 'i2wxi877h7mt5gvw9c6z0d981',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ro7w4qtopchdt65e0ksfhoidv',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pnd5hvg8usvb20bavk3j5ruiw',
+ name: 'story_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '76imw6tu4afs0om0otdxcjozp',
+ name: 'comment_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iieahrjwssmhmppecypy021pn',
+ name: 'reason',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jia3rurh6z5z6h2pectcuwub1',
+ name: 'suggested_action',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ collation: 'utf8mb4_0900_ai_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: '7qpa60pn9mjpg6zrvg1pmurl3',
+ name: 'created_at',
+ type: {
+ id: 'datetime',
+ name: 'datetime',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'aycd9xvo3aqfev0y69otts5a4',
+ name: 'PRIMARY',
+ unique: true,
+ fieldIds: ['i2wxi877h7mt5gvw9c6z0d981'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eabnd4h8yw95jf52v54k7xq0j',
+ name: 'user_id',
+ unique: false,
+ fieldIds: ['ro7w4qtopchdt65e0ksfhoidv'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nymwmr9tjtiqpqz06kidx3zk9',
+ name: 'story_id',
+ unique: false,
+ fieldIds: ['pnd5hvg8usvb20bavk3j5ruiw'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hbzri06emmuowfz5nstqdd3yy',
+ name: 'comment_id',
+ unique: false,
+ fieldIds: ['76imw6tu4afs0om0otdxcjozp'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '5ehh4fizbayu83h22h5jwm3ih',
+ name: 'stories_ibfk_1',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: '8zj7bm5sobx6lc8inxjiw08cs',
+ targetTableId: '9wxfmjnnje5w59yerd73cz9dw',
+ sourceFieldId: 'omqqnbq8s94zukws29rjtrhp0',
+ targetFieldId: 'shvxpnxhrumb5o1wafxj07moo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '5sqj6ygjsxwu1vnapmf3vt1yu',
+ name: 'votes_ibfk_2',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'gulkegqq5s0x6jcpa1tulvoo2',
+ targetTableId: '8zj7bm5sobx6lc8inxjiw08cs',
+ sourceFieldId: '9jubc2tz9e96uqq00osf2a0n9',
+ targetFieldId: '9zhevj9k3sr71qunu9eto3k0j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '6xt8hds5qrkt68td13rtud5id',
+ name: 'invitations_ibfk_1',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: '6x5l6o01cdnqxpdrnc6suhf2m',
+ targetTableId: '9wxfmjnnje5w59yerd73cz9dw',
+ sourceFieldId: 'n8qcyagm5r36v0g7c5jpp0bjx',
+ targetFieldId: 'shvxpnxhrumb5o1wafxj07moo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '79z2vmxn74i9wdhisgtmlbm43',
+ name: 'hidden_stories_ibfk_2',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'c5r9i6m7x1vagsnj5kkhzo9ej',
+ targetTableId: '8zj7bm5sobx6lc8inxjiw08cs',
+ sourceFieldId: 'bsa025se8d113zak2hp04ny5k',
+ targetFieldId: '9zhevj9k3sr71qunu9eto3k0j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '8634m9a6vuq0txn79hkuotj6z',
+ name: 'moderation_logs_ibfk_2',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: '0esn3myj5fkhmni76sz24uh1l',
+ targetTableId: '9wxfmjnnje5w59yerd73cz9dw',
+ sourceFieldId: '5ysqav2xzsya4b651h5h8dqwm',
+ targetFieldId: 'shvxpnxhrumb5o1wafxj07moo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '8wag23xsyxburegit2hw65hiu',
+ name: 'votes_ibfk_3',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'gulkegqq5s0x6jcpa1tulvoo2',
+ targetTableId: 'mgfnl610ri6uf954o5aqzkxlz',
+ sourceFieldId: '02i1fxp0hyc6stx29u1imhymj',
+ targetFieldId: 'noumroprztpi610y3ak6rk281',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '9067j6k18t53zhsvhkozix3mc',
+ name: 'messages_ibfk_2',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'rz7hh0d24mgp2e3pnqh2pgjem',
+ targetTableId: '9wxfmjnnje5w59yerd73cz9dw',
+ sourceFieldId: 'uj0fvw4nal00c1bbttw3kw4x2',
+ targetFieldId: 'shvxpnxhrumb5o1wafxj07moo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'coglcss78m94skqppr3798vfg',
+ name: 'votes_ibfk_1',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'gulkegqq5s0x6jcpa1tulvoo2',
+ targetTableId: '9wxfmjnnje5w59yerd73cz9dw',
+ sourceFieldId: 'gjj355pgsoxca1mjlliw91kga',
+ targetFieldId: 'shvxpnxhrumb5o1wafxj07moo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dbjqtl75u46wtb4zx24rbdx76',
+ name: 'moderation_logs_ibfk_1',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: '0esn3myj5fkhmni76sz24uh1l',
+ targetTableId: '8zj7bm5sobx6lc8inxjiw08cs',
+ sourceFieldId: 'h7ko8616u9ta7obi2uxt1vtfm',
+ targetFieldId: '9zhevj9k3sr71qunu9eto3k0j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h2044xtyk9xgu4woo57dk9hsf',
+ name: 'messages_ibfk_1',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'rz7hh0d24mgp2e3pnqh2pgjem',
+ targetTableId: '9wxfmjnnje5w59yerd73cz9dw',
+ sourceFieldId: 'kycu1ck60p5jdubmvcv538ctv',
+ targetFieldId: 'shvxpnxhrumb5o1wafxj07moo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i241xpd61n0hrooeuhflymjj2',
+ name: 'story_tags_ibfk_1',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'vyocfr4c0h0mczrcnst51bn5e',
+ targetTableId: '8zj7bm5sobx6lc8inxjiw08cs',
+ sourceFieldId: 'tvcn3axepfbhabumofkp69dr7',
+ targetFieldId: '9zhevj9k3sr71qunu9eto3k0j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ic7fqns3unn28xatgc18ksnjp',
+ name: 'moderations_ibfk_2',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'zypz8joo0zka4c3epzavwxf11',
+ targetTableId: '8zj7bm5sobx6lc8inxjiw08cs',
+ sourceFieldId: 'pnd5hvg8usvb20bavk3j5ruiw',
+ targetFieldId: '9zhevj9k3sr71qunu9eto3k0j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lc7t54iw3gumy53fily0y4rba',
+ name: 'moderations_ibfk_3',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'zypz8joo0zka4c3epzavwxf11',
+ targetTableId: 'mgfnl610ri6uf954o5aqzkxlz',
+ sourceFieldId: '76imw6tu4afs0om0otdxcjozp',
+ targetFieldId: 'noumroprztpi610y3ak6rk281',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'macovvlt998u2g04yrh5sg5tv',
+ name: 'moderations_ibfk_1',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'zypz8joo0zka4c3epzavwxf11',
+ targetTableId: '9wxfmjnnje5w59yerd73cz9dw',
+ sourceFieldId: 'ro7w4qtopchdt65e0ksfhoidv',
+ targetFieldId: 'shvxpnxhrumb5o1wafxj07moo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n470fjpfqp324im65s70pfd7u',
+ name: 'hidden_stories_ibfk_1',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'c5r9i6m7x1vagsnj5kkhzo9ej',
+ targetTableId: '9wxfmjnnje5w59yerd73cz9dw',
+ sourceFieldId: 'w4kgz2l7iiz1lvdd71z935glc',
+ targetFieldId: 'shvxpnxhrumb5o1wafxj07moo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nuv5jpjfduedkfnp2r86j5un3',
+ name: 'saved_stories_ibfk_1',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'jh8ibbu5ujypvs3v7mvonb7ic',
+ targetTableId: '9wxfmjnnje5w59yerd73cz9dw',
+ sourceFieldId: 'njisjg85dvav35ef72nkfi8hb',
+ targetFieldId: 'shvxpnxhrumb5o1wafxj07moo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rqep2txn9v6zygasn2k1bsi8k',
+ name: 'story_tags_ibfk_2',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'vyocfr4c0h0mczrcnst51bn5e',
+ targetTableId: '8nhj3tjdvouvomt1940t7pg5b',
+ sourceFieldId: 'mv7s4vagr9itpxj8a49ldy1wu',
+ targetFieldId: 't88yt32caepwcwpbdwq6yunhp',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tr9e25q0cxcmrkr2d2880mn6q',
+ name: 'comments_ibfk_2',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'mgfnl610ri6uf954o5aqzkxlz',
+ targetTableId: '9wxfmjnnje5w59yerd73cz9dw',
+ sourceFieldId: 'vizwjv6dwzhtwiksbgyd7skom',
+ targetFieldId: 'shvxpnxhrumb5o1wafxj07moo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'us0oouzbi73es19f9aenyngrm',
+ name: 'saved_stories_ibfk_2',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'jh8ibbu5ujypvs3v7mvonb7ic',
+ targetTableId: '8zj7bm5sobx6lc8inxjiw08cs',
+ sourceFieldId: '0jqum4f9sa3ayfsx6661eqx1h',
+ targetFieldId: '9zhevj9k3sr71qunu9eto3k0j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v4aanav49zd824blgerez22it',
+ name: 'comments_ibfk_1',
+ sourceSchema: 'template1-db',
+ targetSchema: 'template1-db',
+ sourceTableId: 'mgfnl610ri6uf954o5aqzkxlz',
+ targetTableId: '8zj7bm5sobx6lc8inxjiw08cs',
+ sourceFieldId: '81tp6ws27oibs7g9cyuwed7tv',
+ targetFieldId: '9zhevj9k3sr71qunu9eto3k0j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/refinerycms-db.ts b/src/templates-data/templates/refinerycms-db.ts
new file mode 100644
index 00000000..be34786c
--- /dev/null
+++ b/src/templates-data/templates/refinerycms-db.ts
@@ -0,0 +1,1587 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/refinerycms-db.png';
+import imageDark from '@/assets/templates/refinerycms-db-dark.png';
+
+export const refinerycmsDb: Template = {
+ slug: 'refinerycms-database',
+ name: 'Refinerycms',
+ shortDescription: 'Ruby on Rails - Content management system',
+ description:
+ 'Is the leading open source CMS on the Ruby on Rails framework. For creating custom content manageable websites',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Rails', 'CMS'],
+ featured: true,
+ url: 'https://github.com/refinery/refinerycms',
+ diagram: {
+ id: 'refinerycms_db',
+ name: 'refinerycms-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '0kys8v69us9hbf0co0225dybz',
+ name: 'refinery_pages',
+ schema: 'public',
+ x: 229.2394424211834,
+ y: 156.8653546653207,
+ fields: [
+ {
+ id: '5w012p88r4rek8982cxclnl48',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('refinery_pages_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lzevldhuyo06sspphm4wucizo',
+ name: 'parent_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yk4bq7711j5fddoqsof7j4u9v',
+ name: 'path',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm7vykm599oa0s7hak069u57qu',
+ name: 'show_in_menu',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: 'true',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oimep75r2bju12ph7ztijflsw',
+ name: 'link_url',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vcd3buqs75mdojua7076xqjbv',
+ name: 'menu_match',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ppdpuv5kms8eiz1mq1qvmmret',
+ name: 'deletable',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: 'true',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dr3j1wjfkeyiyle1q5qnit2vc',
+ name: 'draft',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: 'false',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iaa88kbyxvsbq8fprf57q31ve',
+ name: 'skip_to_first_child',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: 'false',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'katwma7rn3pw0e6x7rexgtlfe',
+ name: 'lft',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vcfz7zok6l27dlfdtj95wjgpx',
+ name: 'rgt',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1ckfcg95ky3lp1ec55hver01e',
+ name: 'depth',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rcb5rnq8nl4fayhzt02gfnegf',
+ name: 'view_template',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0rlklhd2qaco6zjldz8rmdzdn',
+ name: 'layout_template',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pgf4zovdu5618qzaz76nr271d',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'usqziu3i0ntpdidisg3vygyjy',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ayqgxg0m24cydemeg2j6thvkd',
+ name: 'children_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '6eamlfan55ss7szb6eif4ydha',
+ name: 'refinery_pages_pkey',
+ unique: true,
+ fieldIds: ['5w012p88r4rek8982cxclnl48'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'va9hp8z6nawt4pmn89sct0yat',
+ name: 'idx_refinery_pages_parent_id',
+ unique: false,
+ fieldIds: ['lzevldhuyo06sspphm4wucizo'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '92c2fr501z0r9f3w1nuv7hqth',
+ name: 'refinery_page_translations',
+ schema: 'public',
+ x: -99.99999999999991,
+ y: 533.0127018922194,
+ fields: [
+ {
+ id: 'uu5py9i7tvqt7yb20cbl12epi',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('refinery_page_translations_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gxucq2jirgj2154f1kbosszje',
+ name: 'refinery_page_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qphxggyr451wu60jxqmwyeo34',
+ name: 'locale',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a8yanumpne9ljm99x5gbhkumn',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qd63pzr1wg1pgmkh4afvqv1ko',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ppar7easmrljvwjucwezdwjcd',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '54t4qguqt3ecd159e44rdup1u',
+ name: 'custom_slug',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0i8cdq5il4gs0rpt1mkxai2wg',
+ name: 'menu_title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '83xoggy6fq9qmjvmahnvy76pm',
+ name: 'slug',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'egfgzq493yfifmqw5eeuhtvi0',
+ name: 'refinery_page_translations_pkey',
+ unique: true,
+ fieldIds: ['uu5py9i7tvqt7yb20cbl12epi'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '3836t31nwewjaop5qlxa6lqc5',
+ name: 'refinery_page_translations_refinery_page_id_locale_key',
+ unique: true,
+ fieldIds: [
+ 'gxucq2jirgj2154f1kbosszje',
+ 'qphxggyr451wu60jxqmwyeo34',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '12edjtllo0c5pj3j3khr122zn',
+ name: 'idx_refinery_page_translations_page_id',
+ unique: false,
+ fieldIds: ['gxucq2jirgj2154f1kbosszje'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'az3v69juj3jrw4xtvuv3w5f5d',
+ name: 'refinery_authentication_users',
+ schema: 'public',
+ x: 249.91775320857278,
+ y: 679.486182795465,
+ fields: [
+ {
+ id: '91ttm15k7g2vorzb6rgo0444u',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('refinery_authentication_users_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j9a0tv182t7nkp9s4zzjg698e',
+ name: 'username',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ybw25y34rgbrqq7cuv5c3yp24',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd1ltk39stbddosok6q9belgx7',
+ name: 'encrypted_password',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5axdyqn4990anbktrhuj7uofj',
+ name: 'current_sign_in_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jg2q4b95zv8u126i52mztou90',
+ name: 'last_sign_in_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xdz334d3k511vuhj74idw5tgh',
+ name: 'current_sign_in_ip',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p3ea62dol30delzexoazvo1c5',
+ name: 'last_sign_in_ip',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b2i970wo3lhmqxv5qvcvjswpd',
+ name: 'sign_in_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: '0',
+ createdAt: Date.now(),
+ },
+ {
+ id: '5iewf3892e3gl97qd4v5t9uzi',
+ name: 'remember_created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xcvl0keiint8jddwcw40eip51',
+ name: 'reset_password_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fehqicapvw16eyiy83nm5035h',
+ name: 'reset_password_sent_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xgdn0zjl5srwt2cdfpmzn2jig',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hlx0959pz7g96mx43osm50b3m',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1aiosqosixnfedk8xtduj252y',
+ name: 'slug',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gtipy4p2z0k1vce7wh2oeitre',
+ name: 'full_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '5zbybx13z2d7kh7ma9w6gz6kz',
+ name: 'refinery_authentication_users_pkey',
+ unique: true,
+ fieldIds: ['91ttm15k7g2vorzb6rgo0444u'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bgv9x5k13hzj1re3wqt0t9o4v',
+ name: 'refinery_page_part_translations',
+ schema: 'public',
+ x: 866.3977449704923,
+ y: 296.4439524801989,
+ fields: [
+ {
+ id: 'na82v4308qa3fibjpb5axjzql',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('refinery_page_part_translations_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qllab1c60stttba572afmuiai',
+ name: 'refinery_page_part_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'se0uglcze7spj1k5w8q3z73xb',
+ name: 'locale',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y7sfbpy7la99re2xdvmfsxd3f',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f7yw2vrw55ob428limom1uln7',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2lg5qdu8as4edbpptg5zufm9g',
+ name: 'body',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'bt8bj3trzvueqh3jlsk00ip9f',
+ name: 'idx_refinery_page_part_translations_part_id',
+ unique: false,
+ fieldIds: ['qllab1c60stttba572afmuiai'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cw8ptlacxfhvnwdn4x5mrm3t4',
+ name: 'refinery_page_part_translation_refinery_page_part_id_locale_key',
+ unique: true,
+ fieldIds: [
+ 'qllab1c60stttba572afmuiai',
+ 'se0uglcze7spj1k5w8q3z73xb',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '3pstn8fz4gcu765yjhua3b8rj',
+ name: 'refinery_page_part_translations_pkey',
+ unique: true,
+ fieldIds: ['na82v4308qa3fibjpb5axjzql'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd9lhzeswfxg2yf5rwj0u6c4h2',
+ name: 'refinery_authentication_user_roles',
+ schema: 'public',
+ x: 600.8067650885232,
+ y: 860.1746618108403,
+ fields: [
+ {
+ id: '42794lkejwwtxizfwn5666y7n',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('refinery_authentication_user_roles_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mj35p9z8gx9f79n0dvfa4bskv',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ybixjuasbfq711r01cpsmy4uv',
+ name: 'role_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ik9j01qh08om3fixpqnk4d3y3',
+ name: 'refinery_authentication_user_roles_pkey',
+ unique: true,
+ fieldIds: ['42794lkejwwtxizfwn5666y7n'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2k2lud63wcdnke7rlyi0wtyi2',
+ name: 'refinery_authentication_user_roles_user_id_role_id_key',
+ unique: true,
+ fieldIds: [
+ 'mj35p9z8gx9f79n0dvfa4bskv',
+ 'ybixjuasbfq711r01cpsmy4uv',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '8auv7que43c4ng2v86217o8lx',
+ name: 'idx_refinery_authentication_user_roles_user_id',
+ unique: false,
+ fieldIds: ['mj35p9z8gx9f79n0dvfa4bskv'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xqjh7jcg87g0hd971ft31ly9g',
+ name: 'idx_refinery_authentication_user_roles_role_id',
+ unique: false,
+ fieldIds: ['ybixjuasbfq711r01cpsmy4uv'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jlkaqwomq1h61d2ukg41ckcvi',
+ name: 'refinery_images',
+ schema: 'public',
+ x: 1575.8531974050043,
+ y: -101.52734012974977,
+ fields: [
+ {
+ id: 'pflvzdhfc8eue9m46ndkmb011',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('refinery_images_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'utjysodvtiwoxumz6stidot7v',
+ name: 'image_mime_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2bn1rg82hfltbe0eo5604g52m',
+ name: 'image_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'thuyam3y8kl4hlaouyb82rapm',
+ name: 'image_size',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o161ddzn9487c8wcvl0ro2mh3',
+ name: 'image_width',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'we1izdong38a2oon1qz82m50u',
+ name: 'image_height',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4s9w55236dz4z3qnrdyhwwqsq',
+ name: 'image_uid',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5092e6ce9fli7k8fjziogtr59',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vpo0mcy4pb60v3x9ltjf51yn4',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'bx3r8c39zfa6tfds24u4vn1og',
+ name: 'refinery_images_pkey',
+ unique: true,
+ fieldIds: ['pflvzdhfc8eue9m46ndkmb011'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jtjpfsqpmhkplka00h7fvkweu',
+ name: 'refinery_authentication_roles',
+ schema: 'public',
+ x: 900,
+ y: 666.3154981790651,
+ fields: [
+ {
+ id: 'lnclb8wwog1fehv7owsoecj6j',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('refinery_authentication_roles_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '854irrwfbuu2al0q5z6qyyebs',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'fzwz87rsofkrsf419dctat2yh',
+ name: 'refinery_authentication_roles_pkey',
+ unique: true,
+ fieldIds: ['lnclb8wwog1fehv7owsoecj6j'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ojwtj2y46se64tt1qd7m7lkcw',
+ name: 'refinery_resource_translations',
+ schema: 'public',
+ x: 1300,
+ y: 600,
+ fields: [
+ {
+ id: 'zfky51214gs41juaz0nfb1z4e',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('refinery_resource_translations_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p56j9c43zosgj116fxg3guydb',
+ name: 'refinery_resource_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iiavrhga4p4m4ccjnvgovru0o',
+ name: 'locale',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9mb3el80bt0c0fyd3ah9mfan9',
+ name: 'resource_title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zbou3jywd329ofcfknfvgmxu8',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '320a7qzypj8emcwsz31o9ebc8',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'n3l3mw6gy9nfuemyo18qh5p23',
+ name: 'refinery_resource_translations_refinery_resource_id_locale_key',
+ unique: true,
+ fieldIds: [
+ 'p56j9c43zosgj116fxg3guydb',
+ 'iiavrhga4p4m4ccjnvgovru0o',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '9zt4chajx7e7ytsfm0or8y6kk',
+ name: 'refinery_resource_translations_pkey',
+ unique: true,
+ fieldIds: ['zfky51214gs41juaz0nfb1z4e'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qjqataetyjctqm3je37b6f1bh',
+ name: 'idx_refinery_resource_translations_resource_id',
+ unique: false,
+ fieldIds: ['p56j9c43zosgj116fxg3guydb'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ozy6j111lda7uukpdsjcd4dhh',
+ name: 'refinery_page_parts',
+ schema: 'public',
+ x: 533.6022550295079,
+ y: -24.069864724336185,
+ fields: [
+ {
+ id: '8uqx94rc08fid6ni08eryfs7o',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('refinery_page_parts_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mjn96dcqh1eglgrfbqswy8h0w',
+ name: 'refinery_page_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '99nnttv8fh3v4pfwqr0byx7js',
+ name: 'slug',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nab8y2kg1ia5e99jto9fw40z6',
+ name: 'position',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4cc5vgizxdw8cmskijg5fvpe8',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0cs57b62awzmsge44qee2bxj9',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '10d4ypau9r7va848q2fbxmh0x',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'vcwgq8voqzcvtyea36mvlwrq7',
+ name: 'idx_refinery_page_parts_page_id',
+ unique: false,
+ fieldIds: ['mjn96dcqh1eglgrfbqswy8h0w'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '0sdoid7tbbbfl48jqlbjx0rj9',
+ name: 'refinery_page_parts_pkey',
+ unique: true,
+ fieldIds: ['8uqx94rc08fid6ni08eryfs7o'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p5hofapibkk3hf64g0ak4am2v',
+ name: 'refinery_resources',
+ schema: 'public',
+ x: 1700,
+ y: 600,
+ fields: [
+ {
+ id: 'fpz87bef6sxzktbnsc2f16x7u',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('refinery_resources_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '2geu0um0k2a25nt4ic6lpdgmf',
+ name: 'file_mime_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'di74d3v5s6xjo1wudcwd2d6nu',
+ name: 'file_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd3z436v5i6qybn7xxz0i43r7z',
+ name: 'file_size',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jw9skkurlrgqn32fl01r4ft20',
+ name: 'file_uid',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c0ax48fupz3lbwt7z323m3qlc',
+ name: 'file_ext',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uefd28uyvdhv2mz6tvtb38zmf',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6nzulglmtpiwz0f1jdwdt9gq2',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'sm2yae2aqi92lffzvqlin1ng1',
+ name: 'refinery_resources_pkey',
+ unique: true,
+ fieldIds: ['fpz87bef6sxzktbnsc2f16x7u'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z6wjw0jok023a9o6z420pbypt',
+ name: 'refinery_image_translations',
+ schema: 'public',
+ x: 1213.2797034291007,
+ y: 33.783873957367916,
+ fields: [
+ {
+ id: 'lu3limyzf56lsray464ynun9z',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('refinery_image_translations_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ktz1mn9yugv5gwsjr9s9bulwz',
+ name: 'refinery_image_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xzv1q8m8az73w28jw4id8verk',
+ name: 'locale',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5jj95obtrmpme85y919r3wm5w',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'otok7kgos7i9tpfyneczcdvex',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'opqceeimb8zwzmwxf2rlva8nl',
+ name: 'image_alt',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xb8uoknax98spicvsjea6dskx',
+ name: 'image_title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '1ef6js0vivcvx20bkuhu6h1zg',
+ name: 'refinery_image_translations_refinery_image_id_locale_key',
+ unique: true,
+ fieldIds: [
+ 'ktz1mn9yugv5gwsjr9s9bulwz',
+ 'xzv1q8m8az73w28jw4id8verk',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'si5487fpr2xj5puqcpszukdzf',
+ name: 'idx_refinery_image_translations_image_id',
+ unique: false,
+ fieldIds: ['ktz1mn9yugv5gwsjr9s9bulwz'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nq7iy3jnlm64m1lfzo32n3zr3',
+ name: 'refinery_image_translations_pkey',
+ unique: true,
+ fieldIds: ['lu3limyzf56lsray464ynun9z'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '0gdn2s190su96bitg282ic1t1',
+ name: 'refinery_image_translations_refinery_image_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'z6wjw0jok023a9o6z420pbypt',
+ targetTableId: 'jlkaqwomq1h61d2ukg41ckcvi',
+ sourceFieldId: 'ktz1mn9yugv5gwsjr9s9bulwz',
+ targetFieldId: 'pflvzdhfc8eue9m46ndkmb011',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '2ia47qvis4w2elsngz0wsoajn',
+ name: 'refinery_authentication_user_roles_role_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'd9lhzeswfxg2yf5rwj0u6c4h2',
+ targetTableId: 'jtjpfsqpmhkplka00h7fvkweu',
+ sourceFieldId: 'ybixjuasbfq711r01cpsmy4uv',
+ targetFieldId: 'lnclb8wwog1fehv7owsoecj6j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '5plx2308myiry2npue0uz3d1w',
+ name: 'refinery_page_parts_refinery_page_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ozy6j111lda7uukpdsjcd4dhh',
+ targetTableId: '0kys8v69us9hbf0co0225dybz',
+ sourceFieldId: 'mjn96dcqh1eglgrfbqswy8h0w',
+ targetFieldId: '5w012p88r4rek8982cxclnl48',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cl9r3l2zdykd3rugbdt6x0pg8',
+ name: 'refinery_pages_parent_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '0kys8v69us9hbf0co0225dybz',
+ targetTableId: '0kys8v69us9hbf0co0225dybz',
+ sourceFieldId: 'lzevldhuyo06sspphm4wucizo',
+ targetFieldId: '5w012p88r4rek8982cxclnl48',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e44lnvcqfwm1530359w6dew6n',
+ name: 'refinery_page_part_translations_refinery_page_part_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'bgv9x5k13hzj1re3wqt0t9o4v',
+ targetTableId: 'ozy6j111lda7uukpdsjcd4dhh',
+ sourceFieldId: 'qllab1c60stttba572afmuiai',
+ targetFieldId: '8uqx94rc08fid6ni08eryfs7o',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uul1nr7grcd4q3ehw407tvku2',
+ name: 'refinery_resource_translations_refinery_resource_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ojwtj2y46se64tt1qd7m7lkcw',
+ targetTableId: 'p5hofapibkk3hf64g0ak4am2v',
+ sourceFieldId: 'p56j9c43zosgj116fxg3guydb',
+ targetFieldId: 'fpz87bef6sxzktbnsc2f16x7u',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vkc75adlk6trztbc7n7elu3vc',
+ name: 'refinery_page_translations_refinery_page_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '92c2fr501z0r9f3w1nuv7hqth',
+ targetTableId: '0kys8v69us9hbf0co0225dybz',
+ sourceFieldId: 'gxucq2jirgj2154f1kbosszje',
+ targetFieldId: '5w012p88r4rek8982cxclnl48',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zmcyzmo9bdk5jbs1g6fsi2u9m',
+ name: 'refinery_authentication_user_roles_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'd9lhzeswfxg2yf5rwj0u6c4h2',
+ targetTableId: 'az3v69juj3jrw4xtvuv3w5f5d',
+ sourceFieldId: 'mj35p9z8gx9f79n0dvfa4bskv',
+ targetFieldId: '91ttm15k7g2vorzb6rgo0444u',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/snipe-it-db.ts b/src/templates-data/templates/snipe-it-db.ts
new file mode 100644
index 00000000..5f3f9197
--- /dev/null
+++ b/src/templates-data/templates/snipe-it-db.ts
@@ -0,0 +1,1605 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/snipe-it-db.png';
+import imageDark from '@/assets/templates/snipe-it-db-dark.png';
+
+export const snipeItDb: Template = {
+ slug: 'snipe-it-database',
+ name: 'Snipe-It',
+ shortDescription: 'Free open source IT asset management',
+ description:
+ 'For tracking and visualizing assets with a Laravel-powered schema',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'],
+ featured: true,
+ url: 'https://github.com/snipe/snipe-it',
+ diagram: {
+ id: 'snipe_it_db',
+ name: 'snipe-it-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '29v4ws6cza9exwzldm3al7ukk',
+ name: 'manufacturers',
+ schema: 'public',
+ x: -49.99999999999997,
+ y: 600,
+ fields: [
+ {
+ id: 'm0b0t5o6zlhkgtj13jb3rj6tm',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('manufacturers_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c7wgj7lldd95ttcbq1v6i7r5z',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jih406a8ozkwheozpctjt1bnj',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'em6l86idb3wvq44568ojy8x1h',
+ 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: 'lsr9bqh2jfqul0cawrf4ody6o',
+ name: 'manufacturers_pkey',
+ unique: true,
+ fieldIds: ['m0b0t5o6zlhkgtj13jb3rj6tm'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9gcncr71xdcz74srhajdxi3d4',
+ name: 'departments',
+ schema: 'public',
+ x: 488.90872965260115,
+ y: 559.6194077712559,
+ fields: [
+ {
+ id: 'thqtiib2tn2dwhapd0ol2fjzo',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('departments_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y5jjmvijho6u7j30p78h1kyfo',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'euwdhzg1wp6bylfjks0zuh4nf',
+ name: 'location_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4cjj3kkt620wn51waely9sdfx',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vyns2omw23hxtvs1pu6isj3qe',
+ 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: 'slwnqp6la1j24i5gt93uo89lp',
+ name: 'departments_pkey',
+ unique: true,
+ fieldIds: ['thqtiib2tn2dwhapd0ol2fjzo'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'auy3qr1fm32174nbm50b0sa0k',
+ name: 'idx_departments_name',
+ unique: false,
+ fieldIds: ['y5jjmvijho6u7j30p78h1kyfo'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aqt9gvsat8bmsb7psji7u6toc',
+ name: 'tickets',
+ schema: 'public',
+ x: -594.9747468305834,
+ y: 232.67272305701886,
+ fields: [
+ {
+ id: 'y6l33akqbfjhg3eepkl4wfwh4',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('tickets_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm8av1nsf1hcptfc6n6paye7h2',
+ name: 'asset_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4w39kdvys1a2km7588eiexufx',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7pp2cy8lphuguudpfpvb599eh',
+ name: 'status',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6a3eio7yrbsah8zzy8ybrsovm',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y1u7ypv40mefrymgkhra2zkl7',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2a383uuagfr8wa4mkpn82jccm',
+ 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: 'va33r3goivs8z2y1s6ondlgk2',
+ name: 'tickets_pkey',
+ unique: true,
+ fieldIds: ['y6l33akqbfjhg3eepkl4wfwh4'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd0mkjmeux1avwtq1aq41do1ms',
+ name: 'assets_departments',
+ schema: 'public',
+ x: 888.9087296526011,
+ y: 559.6194077712559,
+ fields: [
+ {
+ id: 'iss2nftrbb9vazcg1v10678ed',
+ name: 'asset_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '78lg6ty9o982a6ifi65e4k99j',
+ name: 'department_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'whacapzzqm5kzv58iu9a7nbya',
+ name: 'assets_departments_pkey',
+ unique: true,
+ fieldIds: [
+ 'iss2nftrbb9vazcg1v10678ed',
+ '78lg6ty9o982a6ifi65e4k99j',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dij8tkboo7q39p94qdqs191g1',
+ name: 'users',
+ schema: 'public',
+ x: -394.9747468305832,
+ y: 665.685424949238,
+ fields: [
+ {
+ id: 'nu3he7otigkya7voa2ilcvpcq',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('users_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ps48ttjk5ebn30u1h01mf7cif',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oedjk6mk40v9enc8b8yf2lrn5',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gc8uvfoa218571j12udh805zb',
+ name: 'password',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '86o59x4z63hl4luqiksr1oyrw',
+ name: 'remember_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'es7vujl5j3w1kumu8a2zp30ll',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'haxxbuzgojqamq2kz9fz65c7d',
+ 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: 'wk1rj5wqlavw9o77ln41nmubi',
+ name: 'users_pkey',
+ unique: true,
+ fieldIds: ['nu3he7otigkya7voa2ilcvpcq'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lqdnu934plvvrcpq7na72ss1d',
+ name: 'users_email_key',
+ unique: true,
+ fieldIds: ['ps48ttjk5ebn30u1h01mf7cif'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j8bh7kkt7f3gxbtf29cy123kh',
+ name: 'idx_users_email',
+ unique: false,
+ fieldIds: ['ps48ttjk5ebn30u1h01mf7cif'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f9tjw0nac1c8otmtkua4xh73y',
+ name: 'announcements',
+ schema: 'public',
+ x: -419.23881554251165,
+ y: 1089.9494936611666,
+ fields: [
+ {
+ id: 'rm8abre1xote1m9oihpqd63om',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('announcements_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rh9t3d9pcfdfljgbeyse4jv20',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zpmrrmoosp3dx3vaptnirv1zm',
+ name: 'body',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g6zlr5p8qqm2etltdx76pvuda',
+ name: 'action_text',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'du866b1k1a7vq803mo245covi',
+ name: 'action_url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uft1z5t868hej28avtmh2m8s4',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4mme2no7t3d9jwpr9fgbkrz66',
+ 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: 'viudmxe2s4umw9hyvcc86jx4h',
+ name: 'idx_announcements_user_id',
+ unique: false,
+ fieldIds: ['rh9t3d9pcfdfljgbeyse4jv20'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qjibuua3hrny94d6z15uka2e9',
+ name: 'announcements_pkey',
+ unique: true,
+ fieldIds: ['rm8abre1xote1m9oihpqd63om'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ffvfm6f2835bxy763oezmhq9b',
+ name: 'locations',
+ schema: 'public',
+ x: 288.9087296526012,
+ y: 992.6321096634751,
+ fields: [
+ {
+ id: '728n5xow82pj4jmszi11408a5',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('locations_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '0ivxybxsru506k9y8vetybefz',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1fufafdu0kbtyk6tjwx3mkp7e',
+ name: 'address',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fjqtati7ql4ikgg4zrdysdyf6',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gmxslfpx75j91py07bnu5krpy',
+ 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: 'emvvonlv5lc5obln86knm8mpu',
+ name: 'idx_locations_name',
+ unique: false,
+ fieldIds: ['0ivxybxsru506k9y8vetybefz'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e3vlo1znvr6la5xgrpnfjpmx9',
+ name: 'locations_pkey',
+ unique: true,
+ fieldIds: ['728n5xow82pj4jmszi11408a5'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hxpfhx7gb3dkdnc70nvuqo9bp',
+ name: 'assets',
+ schema: 'public',
+ x: 100,
+ y: 100,
+ fields: [
+ {
+ id: 'hqp6bxym8g6ms3w3vt7f31ywq',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('assets_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '1nie7ygadkg6r3yuhzigc9ml1',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ieerp2kaa7k8ekgld0rlpttin',
+ name: 'serial',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qo8lrpd3fb8ltkatsgzez5rl6',
+ name: 'manufacturer_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'akq22zkf7hfhzgojv63jl5mmq',
+ name: 'category_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nvo2jzz6b9jq9ga8e2lzopl4n',
+ name: 'location_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sovbsi9ykfqpr8bftc8d9l687',
+ name: 'department_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w8uafrnm06hizt01jw7sqx0ay',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ttlir0dsodgczpyu63ktxnyaz',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tr7junzlm7xzxy6tv9rfmskyq',
+ 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: '109pedfj3zlwgw7x17z07sri8',
+ name: 'idx_assets_name',
+ unique: false,
+ fieldIds: ['1nie7ygadkg6r3yuhzigc9ml1'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a1f5jk16ehacvtc385zm0ieh8',
+ name: 'assets_pkey',
+ unique: true,
+ fieldIds: ['hqp6bxym8g6ms3w3vt7f31ywq'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l82uf64ic8m1v3gi01mys2lq9',
+ name: 'notifications',
+ schema: 'public',
+ x: -794.9747468305832,
+ y: 665.6854249492382,
+ fields: [
+ {
+ id: '3a8dd2dr9j741475lvz9w535n',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('notifications_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'prikl42cn9lx1n9emhz4mu7yq',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jucd5cm6hy4p7kbac1ku1v72c',
+ name: 'message',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pkxxhhz7bzojzwhjt1tj06myp',
+ name: 'is_read',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: 'false',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k3ygf755g81u2slnc6znxb4g9',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pfvbw4j70m0ww5dv8fiea6d0r',
+ 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: 'tz17evmawpm8n4mo5o0rt8l3r',
+ name: 'idx_notifications_user_id',
+ unique: false,
+ fieldIds: ['prikl42cn9lx1n9emhz4mu7yq'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jzud0kjk3rxmm0a1r9p3fh4g2',
+ name: 'notifications_pkey',
+ unique: true,
+ fieldIds: ['3a8dd2dr9j741475lvz9w535n'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ppwcitqjfqq174m7dthgrovfs',
+ name: 'password_resets',
+ schema: 'public',
+ x: 650,
+ y: 1100,
+ fields: [
+ {
+ id: 'gqg3znfr9qzx5b4b20wto5hjo',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6262o6z79z2n1dljr6k8bh5sc',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cso11nttqhs12xu00nxbs21r1',
+ 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: 'o0ejn7gf43rbd9e9cjiqny1cx',
+ name: 'password_resets_pkey',
+ unique: true,
+ fieldIds: ['gqg3znfr9qzx5b4b20wto5hjo'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qbczan7ykpkqz7206wudxmgtp',
+ name: 'invoices',
+ schema: 'public',
+ x: -744.9747468305831,
+ y: 1098.6981268414575,
+ fields: [
+ {
+ id: 'hlfnrnmozo119wwvtgsblv9u9',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('invoices_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'enbx5078tzufrn0y7ttm0aeov',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sxn0pz881z5pp2so9ppkpco9c',
+ name: 'amount',
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ precision: 10,
+ scale: 2,
+ createdAt: Date.now(),
+ },
+ {
+ id: '08ha5fg9kfnmataebchctmyxb',
+ name: 'due_date',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'udjeu8ew7m0ak4r2aojldqhti',
+ name: 'status',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tggkxsjqmyicwjwh22tkcosh8',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x703lgwbw7exdg0z3180kfwvr',
+ 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: '34scxr72oslemxuiis342eryz',
+ name: 'idx_invoices_user_id',
+ unique: false,
+ fieldIds: ['enbx5078tzufrn0y7ttm0aeov'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '898sqiujupoyk7frfdmiaafdk',
+ name: 'invoices_pkey',
+ unique: true,
+ fieldIds: ['hlfnrnmozo119wwvtgsblv9u9'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ugav1xjtjdyr5vfghur1h6340',
+ name: 'maintenance',
+ schema: 'public',
+ x: -300.00000000000006,
+ y: -199.99999999999994,
+ fields: [
+ {
+ id: '67a0fvhtrj9ga0fugb3r60vtf',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('maintenance_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ubu8l1ydpalv4lty2gi7i70kz',
+ name: 'asset_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'u4qh5p38t832l8508z2mnmwqa',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gkmvb1sz32pbwov34xfz193rr',
+ name: 'date',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fq5nb0afbcv3eccpfdhy1ni4b',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'usvz5a9ct4oj182sbac64fi82',
+ 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: '095phuqic5wpos5gftbo87yzg',
+ name: 'maintenance_pkey',
+ unique: true,
+ fieldIds: ['67a0fvhtrj9ga0fugb3r60vtf'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w8oufyqqtq1nziht8qkilr8sk',
+ name: 'categories',
+ schema: 'public',
+ x: 500,
+ y: 100,
+ fields: [
+ {
+ id: 'gmxe57sfvks6oyeawm7riergd',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('categories_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xqd8yv56sj4ruw0pdafzym25l',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8va4d40rw10qa6hk6lmu4gmj4',
+ name: 'parent_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c8ioi75gxuuruu1qovhdyqisj',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qhum8q0qtbhjqtbrp0y7unkyn',
+ 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: '5v1ej5m7ca2918e2jv4gjhgxj',
+ name: 'idx_categories_name',
+ unique: false,
+ fieldIds: ['xqd8yv56sj4ruw0pdafzym25l'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '1la3spjexqkyw994wer52wplc',
+ name: 'categories_pkey',
+ unique: true,
+ fieldIds: ['gmxe57sfvks6oyeawm7riergd'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zklx3zotwnp54mzmvomis61gt',
+ name: 'api_tokens',
+ schema: 'public',
+ x: -44.974746830583115,
+ y: 1098.6981268414575,
+ fields: [
+ {
+ id: 'g4dc7oz2zta9az8t793fmck2t',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('api_tokens_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iu1wfvffursno9rz9sy1ukifa',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'keyu8vcr514705z1j3i2pfpn2',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sxnobuli69iin9zryafegqz4l',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tygu0g6gveg3p393xdpyl4i9g',
+ name: 'expires_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'js37tir385vh3xsvqku2kvbrr',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ws8h2b1dab8miileukh39lpr6',
+ 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: 'pcuj5jo46idyfqixwdnr9hawg',
+ name: 'api_tokens_pkey',
+ unique: true,
+ fieldIds: ['g4dc7oz2zta9az8t793fmck2t'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qi5q29fia5g3t6f5u2ao5ftl2',
+ name: 'api_tokens_token_key',
+ unique: true,
+ fieldIds: ['sxnobuli69iin9zryafegqz4l'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '3bl6wdsmq8ru284mkzpaqfra2',
+ name: 'assets_departments_department_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'd0mkjmeux1avwtq1aq41do1ms',
+ targetTableId: '9gcncr71xdcz74srhajdxi3d4',
+ sourceFieldId: '78lg6ty9o982a6ifi65e4k99j',
+ targetFieldId: 'thqtiib2tn2dwhapd0ol2fjzo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '6d7nzsjcbhm3ru0um23l5xqhs',
+ name: 'maintenance_asset_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'ugav1xjtjdyr5vfghur1h6340',
+ targetTableId: 'hxpfhx7gb3dkdnc70nvuqo9bp',
+ sourceFieldId: 'ubu8l1ydpalv4lty2gi7i70kz',
+ targetFieldId: 'hqp6bxym8g6ms3w3vt7f31ywq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '6mb9ahqjbh3vyy4d3yy6av56m',
+ name: 'assets_manufacturer_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'hxpfhx7gb3dkdnc70nvuqo9bp',
+ targetTableId: '29v4ws6cza9exwzldm3al7ukk',
+ sourceFieldId: 'qo8lrpd3fb8ltkatsgzez5rl6',
+ targetFieldId: 'm0b0t5o6zlhkgtj13jb3rj6tm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'b6aim2soqplyd67j5kqwotchq',
+ name: 'invoices_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'qbczan7ykpkqz7206wudxmgtp',
+ targetTableId: 'dij8tkboo7q39p94qdqs191g1',
+ sourceFieldId: 'enbx5078tzufrn0y7ttm0aeov',
+ targetFieldId: 'nu3he7otigkya7voa2ilcvpcq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fdgvzi4kstd0jd3sc8scem2c3',
+ name: 'assets_departments_asset_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'd0mkjmeux1avwtq1aq41do1ms',
+ targetTableId: 'hxpfhx7gb3dkdnc70nvuqo9bp',
+ sourceFieldId: 'iss2nftrbb9vazcg1v10678ed',
+ targetFieldId: 'hqp6bxym8g6ms3w3vt7f31ywq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gzg5jumr6l2pn7ajsmf8orrs9',
+ name: 'departments_location_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '9gcncr71xdcz74srhajdxi3d4',
+ targetTableId: 'ffvfm6f2835bxy763oezmhq9b',
+ sourceFieldId: 'euwdhzg1wp6bylfjks0zuh4nf',
+ targetFieldId: '728n5xow82pj4jmszi11408a5',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hydyrblwbzyexplek8wzm3cke',
+ name: 'tickets_asset_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'aqt9gvsat8bmsb7psji7u6toc',
+ targetTableId: 'hxpfhx7gb3dkdnc70nvuqo9bp',
+ sourceFieldId: 'm8av1nsf1hcptfc6n6paye7h2',
+ targetFieldId: 'hqp6bxym8g6ms3w3vt7f31ywq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kjoon43dtxtalwlnymqib8ote',
+ name: 'api_tokens_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'zklx3zotwnp54mzmvomis61gt',
+ targetTableId: 'dij8tkboo7q39p94qdqs191g1',
+ sourceFieldId: 'iu1wfvffursno9rz9sy1ukifa',
+ targetFieldId: 'nu3he7otigkya7voa2ilcvpcq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mjrulubxg0lpx5qxvtrs85z8n',
+ name: 'notifications_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'l82uf64ic8m1v3gi01mys2lq9',
+ targetTableId: 'dij8tkboo7q39p94qdqs191g1',
+ sourceFieldId: 'prikl42cn9lx1n9emhz4mu7yq',
+ targetFieldId: 'nu3he7otigkya7voa2ilcvpcq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mnp0avfbisw7gy8kri8npmsdk',
+ name: 'assets_location_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'hxpfhx7gb3dkdnc70nvuqo9bp',
+ targetTableId: 'ffvfm6f2835bxy763oezmhq9b',
+ sourceFieldId: 'nvo2jzz6b9jq9ga8e2lzopl4n',
+ targetFieldId: '728n5xow82pj4jmszi11408a5',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rf75bt0r0i971l7v5be7pb9le',
+ name: 'categories_parent_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'w8oufyqqtq1nziht8qkilr8sk',
+ targetTableId: 'w8oufyqqtq1nziht8qkilr8sk',
+ sourceFieldId: '8va4d40rw10qa6hk6lmu4gmj4',
+ targetFieldId: 'gmxe57sfvks6oyeawm7riergd',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rojmfwlsa4d49jhko581q3wen',
+ name: 'assets_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'hxpfhx7gb3dkdnc70nvuqo9bp',
+ targetTableId: 'dij8tkboo7q39p94qdqs191g1',
+ sourceFieldId: 'w8uafrnm06hizt01jw7sqx0ay',
+ targetFieldId: 'nu3he7otigkya7voa2ilcvpcq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vr9b7v1e6t8oqe0mzb6jctlk5',
+ name: 'tickets_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'aqt9gvsat8bmsb7psji7u6toc',
+ targetTableId: 'dij8tkboo7q39p94qdqs191g1',
+ sourceFieldId: '4w39kdvys1a2km7588eiexufx',
+ targetFieldId: 'nu3he7otigkya7voa2ilcvpcq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xza9qob37bymmkj5lwed9etuv',
+ name: 'assets_category_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'hxpfhx7gb3dkdnc70nvuqo9bp',
+ targetTableId: 'w8oufyqqtq1nziht8qkilr8sk',
+ sourceFieldId: 'akq22zkf7hfhzgojv63jl5mmq',
+ targetFieldId: 'gmxe57sfvks6oyeawm7riergd',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yg6lgz90nn9syiw4g9c76pscs',
+ name: 'announcements_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'f9tjw0nac1c8otmtkua4xh73y',
+ targetTableId: 'dij8tkboo7q39p94qdqs191g1',
+ sourceFieldId: 'rh9t3d9pcfdfljgbeyse4jv20',
+ targetFieldId: 'nu3he7otigkya7voa2ilcvpcq',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yw3kr853lwxfolflp3annw1n3',
+ name: 'assets_department_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'hxpfhx7gb3dkdnc70nvuqo9bp',
+ targetTableId: '9gcncr71xdcz74srhajdxi3d4',
+ sourceFieldId: 'sovbsi9ykfqpr8bftc8d9l687',
+ targetFieldId: 'thqtiib2tn2dwhapd0ol2fjzo',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/ticketit-db.ts b/src/templates-data/templates/ticketit-db.ts
new file mode 100644
index 00000000..04d83571
--- /dev/null
+++ b/src/templates-data/templates/ticketit-db.ts
@@ -0,0 +1,1126 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/ticketit-db.png';
+import imageDark from '@/assets/templates/ticketit-db-dark.png';
+
+export const ticketitDb: Template = {
+ slug: 'ticketit-database',
+ name: 'Ticketit',
+ shortDescription: 'A simple helpdesk tickets system for Laravel',
+ description:
+ 'Which integrates smoothly with Laravel default users and auth system',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'],
+ featured: true,
+ url: 'https://github.com/spatie/ticketit',
+ diagram: {
+ id: 'ticketit_db',
+ name: 'ticketit-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '3j13z4t0omj0m67obfela7uva',
+ name: 'ticketit_audits',
+ schema: 'public',
+ x: 763.5589024326482,
+ y: -310.1468134034137,
+ fields: [
+ {
+ id: 'k6iv8ifwf2x5copb6v8r6v7iu',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd3mi2mtrr2jc2n95k7nwdt70s',
+ name: 'operation',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e3fgy0e6csdti4pi3ui9b3fks',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wdsh73xzbbsi54pab7xtad191',
+ name: 'ticket_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n01hkpxj6fq3zyr3v0x23a8om',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qmlwi5i0753kcajivc502ema8',
+ 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: 'o8vktyolalexvwn8ol1dxxzcy',
+ name: 'idx_audits_ticket_id',
+ unique: false,
+ fieldIds: ['wdsh73xzbbsi54pab7xtad191'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aouy1pcwynjmzkiijmwxgfwcx',
+ name: 'ticketit_audits_pkey',
+ unique: true,
+ fieldIds: ['k6iv8ifwf2x5copb6v8r6v7iu'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iytlkj7j9c44qe71eomf263cc',
+ name: 'idx_audits_user_id',
+ unique: false,
+ fieldIds: ['e3fgy0e6csdti4pi3ui9b3fks'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5un8j89oxdps0ebr548leu56w',
+ name: 'ticketit_priorities',
+ schema: 'public',
+ x: -441.64470444215664,
+ y: -86.96583963022732,
+ fields: [
+ {
+ id: 'te5uirox6vofoa0sh0os7pj7w',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wzde4of9xw0zc8b5s5hrxmn7u',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gl25ihfx8w110dubt7uk9zavd',
+ name: 'color',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'emgey8kgmotqa060nboby919r',
+ name: 'ticketit_priorities_pkey',
+ unique: true,
+ fieldIds: ['te5uirox6vofoa0sh0os7pj7w'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '78j4wvik02wgfbo1fhywgmqup',
+ name: 'users',
+ schema: 'public',
+ x: 557.8286933236934,
+ y: 93.61361330148964,
+ fields: [
+ {
+ id: 'dj5tenp91tk5hoy9v6ep9b6wf',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1o5v5fdvf5wbv7sqkw88smr7c',
+ name: 'ticketit_admin',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dikevzslifq2bcg2wdnteub5h',
+ name: 'ticketit_agent',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'uts874utol8x6c6wxup852yfn',
+ name: 'users_pkey',
+ unique: true,
+ fieldIds: ['dj5tenp91tk5hoy9v6ep9b6wf'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8960j1v0o5biqetave5q78wen',
+ name: 'ticketit_categories_users',
+ schema: 'public',
+ x: 198.46675932052426,
+ y: 385.69971265370896,
+ fields: [
+ {
+ id: 'gbnvz6152pjkz8onibjiao4x6',
+ name: 'category_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wqryw39tfrm83cmzhl6h8j8fm',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'cq97ggzg1x0l7v438g1adv6p9',
+ name: 'ticketit_categories_users_pkey',
+ unique: true,
+ fieldIds: [
+ 'gbnvz6152pjkz8onibjiao4x6',
+ 'wqryw39tfrm83cmzhl6h8j8fm',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '6bsr7vxw3qad6xhmrkuj6q3a2',
+ name: 'idx_category_user_category_id',
+ unique: false,
+ fieldIds: ['gbnvz6152pjkz8onibjiao4x6'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '9ryb22txfq77u7whriagapcv8',
+ name: 'idx_category_user_user_id',
+ unique: false,
+ fieldIds: ['wqryw39tfrm83cmzhl6h8j8fm'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '99j0hy58vmx1pontrz2vkl03s',
+ name: 'ticketit_categories',
+ schema: 'public',
+ x: -176.09211887404683,
+ y: 338.4987188242834,
+ fields: [
+ {
+ id: 'vleh1ly31xenjjoz211fe34bn',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7ovg771u4wfvqc9hkpwyca3gl',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd4p2q78a4cdrraotl00056nph',
+ name: 'color',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'wimy3cygg4z0tm46x9b3i2qu6',
+ name: 'ticketit_categories_pkey',
+ unique: true,
+ fieldIds: ['vleh1ly31xenjjoz211fe34bn'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9w9yqderz2181v35mkasdcrbj',
+ name: 'ticketit_settings',
+ schema: 'public',
+ x: -443.4489253835209,
+ y: 114.88308716283586,
+ fields: [
+ {
+ id: 'k8gw7x7dxtv51g1vlis0u7x50',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5tk8nu3gzdstxi68txr1q2bo9',
+ name: 'lang',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'irvsej0q4dcq0aziggwfsa95r',
+ name: 'slug',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o75wo7213v3wo05rvkh83rwhh',
+ name: 'value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'szbze5jp6i328qubvhcdfapxd',
+ name: 'default',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g0xxd2jknv366nir4ju4h1ouz',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jiv95mthj5zk2v1pwl5wa6u1y',
+ 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: 'qunmnc7gg271bkxqq4m67bybd',
+ name: 'ticketit_settings_slug_key',
+ unique: true,
+ fieldIds: ['irvsej0q4dcq0aziggwfsa95r'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pa4q5imgwcko0b4mc9hvs299z',
+ name: 'ticketit_settings_pkey',
+ unique: true,
+ fieldIds: ['k8gw7x7dxtv51g1vlis0u7x50'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kwgr7cd982jkc0tedwthl2jtw',
+ name: 'ticketit',
+ schema: 'public',
+ x: 72.06132962717925,
+ y: -261.2829233988243,
+ fields: [
+ {
+ id: 'iidzujagfol5hdkmunkzm0tdr',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wkjdtpkj99z40yjcdbt5om8dm',
+ name: 'subject',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8dqvvm3cxx6cgd5qgxibmtkkl',
+ name: 'content',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nmcsf6bwla347c6cbln44xkn4',
+ name: 'html',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'czwwgho0ohzmabq6br2upb89m',
+ name: 'status_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f0s75wjpcfp6tz8uddxdjolbq',
+ name: 'priority_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cj0v1qyoxkhowpvkr2rkpd4t9',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '854yp8e8x13v1yzoanpn4takh',
+ name: 'agent_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gzwfz4656zvpzxezqjv4pzc9y',
+ name: 'category_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ujb9zbi9hmtwxyos5a04xmyp9',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mzdtu9lp5vum568aezjwpgyvm',
+ name: 'updated_at',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o7ataxliaqchc4icwiakd80mb',
+ name: 'completed_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'mx3g7n6agvry6vq8hj8ggsuae',
+ name: 'idx_ticketit_category_id',
+ unique: false,
+ fieldIds: ['gzwfz4656zvpzxezqjv4pzc9y'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '1iv89uankqx5ip7nj0potqyhv',
+ name: 'ticketit_pkey',
+ unique: true,
+ fieldIds: ['iidzujagfol5hdkmunkzm0tdr'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lw4w383csto8q5h023fhzloro',
+ name: 'idx_ticketit_status_id',
+ unique: false,
+ fieldIds: ['czwwgho0ohzmabq6br2upb89m'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vttkmp14b0mivsl657tbp7cqn',
+ name: 'idx_ticketit_agent_id',
+ unique: false,
+ fieldIds: ['854yp8e8x13v1yzoanpn4takh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bs4vr3arjn4nfbpuwd4easpyn',
+ name: 'idx_ticketit_user_id',
+ unique: false,
+ fieldIds: ['cj0v1qyoxkhowpvkr2rkpd4t9'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ekh8xcx11tkbrm87mc1b7wdg0',
+ name: 'idx_ticketit_priority_id',
+ unique: false,
+ fieldIds: ['f0s75wjpcfp6tz8uddxdjolbq'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'thzy8ttwg16hac00om8t8ap50',
+ name: 'ticketit_statuses',
+ schema: 'public',
+ x: -439.75527617670537,
+ y: -273.3622313458803,
+ fields: [
+ {
+ id: 'hudebn1pmnvhfxi985ip4y35n',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '65o2wmaptzm5nttx8ienn1fre',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iwrnauzmac1bv5hic09fra1tf',
+ name: 'color',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '1abux79utc1s8xr8zr54tix1m',
+ name: 'ticketit_statuses_pkey',
+ unique: true,
+ fieldIds: ['hudebn1pmnvhfxi985ip4y35n'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tk4jypnatvj407xp4low182gm',
+ name: 'ticketit_comments',
+ schema: 'public',
+ x: 348.5519666446112,
+ y: -629.765788528322,
+ fields: [
+ {
+ id: '12atn0726m9zj4lvtxwno8l3t',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'prues5pt55l57mzowte9h683q',
+ name: 'content',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zmzss3b27188540sykvo1q0li',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kmnt802a8ih7i0epe1ae1es0u',
+ name: 'ticket_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xw3o5bheynyk9ji06yylto4jq',
+ name: 'created_at',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ijojcws4nt74zz3eittmwv44s',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'txvaoxxxlwvmgjnzrv2egvzol',
+ name: 'html',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'wd3jmex9o3ekhwnzi70h82quo',
+ name: 'idx_comments_user_id',
+ unique: false,
+ fieldIds: ['zmzss3b27188540sykvo1q0li'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q3vownf8y3w3d2txrlbdb7hlg',
+ name: 'idx_comments_ticket_id',
+ unique: false,
+ fieldIds: ['kmnt802a8ih7i0epe1ae1es0u'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '5tgk184b3a5h93iyqpuolsdpu',
+ name: 'ticketit_comments_pkey',
+ unique: true,
+ fieldIds: ['12atn0726m9zj4lvtxwno8l3t'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '1ardagykt69o4vl2w2s7njhlr',
+ name: 'ticketit_audits_ticket_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '3j13z4t0omj0m67obfela7uva',
+ targetTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ sourceFieldId: 'wdsh73xzbbsi54pab7xtad191',
+ targetFieldId: 'iidzujagfol5hdkmunkzm0tdr',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '1tv2sebrsag1zad95fbkjmkf1',
+ name: 'ticketit_comments_user_id_fkey1',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'tk4jypnatvj407xp4low182gm',
+ targetTableId: '78j4wvik02wgfbo1fhywgmqup',
+ sourceFieldId: 'zmzss3b27188540sykvo1q0li',
+ targetFieldId: 'dj5tenp91tk5hoy9v6ep9b6wf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '91agbnk35l3v0ncju9ltcordl',
+ name: 'ticketit_status_id_fkey1',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ targetTableId: 'thzy8ttwg16hac00om8t8ap50',
+ sourceFieldId: 'czwwgho0ohzmabq6br2upb89m',
+ targetFieldId: 'hudebn1pmnvhfxi985ip4y35n',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd2ecw1m439dwtlpciliis2g82',
+ name: 'ticketit_categories_users_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '8960j1v0o5biqetave5q78wen',
+ targetTableId: '78j4wvik02wgfbo1fhywgmqup',
+ sourceFieldId: 'wqryw39tfrm83cmzhl6h8j8fm',
+ targetFieldId: 'dj5tenp91tk5hoy9v6ep9b6wf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dwdxu3m1q56lpf2j55uk4me9g',
+ name: 'ticketit_agent_id_fkey1',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ targetTableId: '78j4wvik02wgfbo1fhywgmqup',
+ sourceFieldId: '854yp8e8x13v1yzoanpn4takh',
+ targetFieldId: 'dj5tenp91tk5hoy9v6ep9b6wf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fe1sw7t5dbcuy66jwzw5dipsj',
+ name: 'ticketit_audits_user_id_fkey1',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '3j13z4t0omj0m67obfela7uva',
+ targetTableId: '78j4wvik02wgfbo1fhywgmqup',
+ sourceFieldId: 'e3fgy0e6csdti4pi3ui9b3fks',
+ targetFieldId: 'dj5tenp91tk5hoy9v6ep9b6wf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h2b7oip9v7rfnb5nkeejsnqzv',
+ name: 'ticketit_user_id_fkey1',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ targetTableId: '78j4wvik02wgfbo1fhywgmqup',
+ sourceFieldId: 'cj0v1qyoxkhowpvkr2rkpd4t9',
+ targetFieldId: 'dj5tenp91tk5hoy9v6ep9b6wf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jbvrua3879cmjt9r44bjqi5vf',
+ name: 'ticketit_comments_ticket_id_fkey1',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'tk4jypnatvj407xp4low182gm',
+ targetTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ sourceFieldId: 'kmnt802a8ih7i0epe1ae1es0u',
+ targetFieldId: 'iidzujagfol5hdkmunkzm0tdr',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jpkr91h4waoej055pk1mw9dno',
+ name: 'ticketit_audits_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '3j13z4t0omj0m67obfela7uva',
+ targetTableId: '78j4wvik02wgfbo1fhywgmqup',
+ sourceFieldId: 'e3fgy0e6csdti4pi3ui9b3fks',
+ targetFieldId: 'dj5tenp91tk5hoy9v6ep9b6wf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nkcqu2n9gu0v6yo58ehrymhh0',
+ name: 'ticketit_comments_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'tk4jypnatvj407xp4low182gm',
+ targetTableId: '78j4wvik02wgfbo1fhywgmqup',
+ sourceFieldId: 'zmzss3b27188540sykvo1q0li',
+ targetFieldId: 'dj5tenp91tk5hoy9v6ep9b6wf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o9axvh1pktujlzc75uaxa795q',
+ name: 'ticketit_status_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ targetTableId: 'thzy8ttwg16hac00om8t8ap50',
+ sourceFieldId: 'czwwgho0ohzmabq6br2upb89m',
+ targetFieldId: 'hudebn1pmnvhfxi985ip4y35n',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pm2zyhrdqt5gtf7e8snraau65',
+ name: 'ticketit_comments_ticket_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'tk4jypnatvj407xp4low182gm',
+ targetTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ sourceFieldId: 'kmnt802a8ih7i0epe1ae1es0u',
+ targetFieldId: 'iidzujagfol5hdkmunkzm0tdr',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tyuwqfxp1c66horkabun3hrow',
+ name: 'ticketit_priority_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ targetTableId: '5un8j89oxdps0ebr548leu56w',
+ sourceFieldId: 'f0s75wjpcfp6tz8uddxdjolbq',
+ targetFieldId: 'te5uirox6vofoa0sh0os7pj7w',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uez4yimmi8tcrdxid8tf08nn0',
+ name: 'ticketit_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ targetTableId: '78j4wvik02wgfbo1fhywgmqup',
+ sourceFieldId: 'cj0v1qyoxkhowpvkr2rkpd4t9',
+ targetFieldId: 'dj5tenp91tk5hoy9v6ep9b6wf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'v0eryjqywayuwkm45chtr8n7m',
+ name: 'ticketit_priority_id_fkey1',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ targetTableId: '5un8j89oxdps0ebr548leu56w',
+ sourceFieldId: 'f0s75wjpcfp6tz8uddxdjolbq',
+ targetFieldId: 'te5uirox6vofoa0sh0os7pj7w',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x4qqjhejn6odbz6om3l13zcxt',
+ name: 'ticketit_category_id_fkey1',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ targetTableId: '99j0hy58vmx1pontrz2vkl03s',
+ sourceFieldId: 'gzwfz4656zvpzxezqjv4pzc9y',
+ targetFieldId: 'vleh1ly31xenjjoz211fe34bn',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xk0yufiya5tjf6x3vg2ayp9l1',
+ name: 'ticketit_agent_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ targetTableId: '78j4wvik02wgfbo1fhywgmqup',
+ sourceFieldId: '854yp8e8x13v1yzoanpn4takh',
+ targetFieldId: 'dj5tenp91tk5hoy9v6ep9b6wf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xphc1c9sjd8bhbiu0pt13sw59',
+ name: 'ticketit_audits_ticket_id_fkey1',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '3j13z4t0omj0m67obfela7uva',
+ targetTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ sourceFieldId: 'wdsh73xzbbsi54pab7xtad191',
+ targetFieldId: 'iidzujagfol5hdkmunkzm0tdr',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yo75ynn0lezwwle67cy6fws7i',
+ name: 'ticketit_category_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'kwgr7cd982jkc0tedwthl2jtw',
+ targetTableId: '99j0hy58vmx1pontrz2vkl03s',
+ sourceFieldId: 'gzwfz4656zvpzxezqjv4pzc9y',
+ targetFieldId: 'vleh1ly31xenjjoz211fe34bn',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z0pc9ufxugj8fuev0vkiin9qs',
+ name: 'ticketit_categories_users_category_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '8960j1v0o5biqetave5q78wen',
+ targetTableId: '99j0hy58vmx1pontrz2vkl03s',
+ sourceFieldId: 'gbnvz6152pjkz8onibjiao4x6',
+ targetFieldId: 'vleh1ly31xenjjoz211fe34bn',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};