Skip to content

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

feat(add templates) add five more templates (gravity, koel.dev, laravel-permission, laravel-spark, voyager) (#392)

Jonathan Fishnerbae74d169361
diff --git a/src/assets/templates/gravity-db-dark.png b/src/assets/templates/gravity-db-dark.png
new file mode 100644
index 00000000..7784623d
Binary files /dev/null and b/src/assets/templates/gravity-db-dark.png differ
diff --git a/src/assets/templates/gravity-db.png b/src/assets/templates/gravity-db.png
new file mode 100644
index 00000000..b7b254e7
Binary files /dev/null and b/src/assets/templates/gravity-db.png differ
diff --git a/src/assets/templates/koel-db-dark.png b/src/assets/templates/koel-db-dark.png
new file mode 100644
index 00000000..4471c3b7
Binary files /dev/null and b/src/assets/templates/koel-db-dark.png differ
diff --git a/src/assets/templates/koel-db.png b/src/assets/templates/koel-db.png
new file mode 100644
index 00000000..dc3f9c03
Binary files /dev/null and b/src/assets/templates/koel-db.png differ
diff --git a/src/assets/templates/laravel-permission-db-dark.png b/src/assets/templates/laravel-permission-db-dark.png
new file mode 100644
index 00000000..e3928598
Binary files /dev/null and b/src/assets/templates/laravel-permission-db-dark.png differ
diff --git a/src/assets/templates/laravel-permission-db.png b/src/assets/templates/laravel-permission-db.png
new file mode 100644
index 00000000..46416033
Binary files /dev/null and b/src/assets/templates/laravel-permission-db.png differ
diff --git a/src/assets/templates/laravel-spark-db-dark.png b/src/assets/templates/laravel-spark-db-dark.png
new file mode 100644
index 00000000..d4d69180
Binary files /dev/null and b/src/assets/templates/laravel-spark-db-dark.png differ
diff --git a/src/assets/templates/laravel-spark-db.png b/src/assets/templates/laravel-spark-db.png
new file mode 100644
index 00000000..0e79a68d
Binary files /dev/null and b/src/assets/templates/laravel-spark-db.png differ
diff --git a/src/assets/templates/voyager-db-dark.png b/src/assets/templates/voyager-db-dark.png
new file mode 100644
index 00000000..0ca0748f
Binary files /dev/null and b/src/assets/templates/voyager-db-dark.png differ
diff --git a/src/assets/templates/voyager-db.png b/src/assets/templates/voyager-db.png
new file mode 100644
index 00000000..689ec98d
Binary files /dev/null and b/src/assets/templates/voyager-db.png differ
diff --git a/src/templates-data/templates-data.ts b/src/templates-data/templates-data.ts
index cc6bcc20..25287a3d 100644
--- a/src/templates-data/templates-data.ts
+++ b/src/templates-data/templates-data.ts
@@ -9,6 +9,11 @@ import { akauntingDb } from './templates/akaunting-db';
import { djangoDb } from './templates/django-db';
import { twitterDb } from './templates/twitter-db';
import { laravelDb } from './templates/laravel-db';
+import { laravelSparkDb } from './templates/laravel-spark-db';
+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';
export interface Template {
slug: string;
@@ -34,4 +39,9 @@ export const templates: Template[] = [
visualNovelDb,
adonisAclDb,
akauntingDb,
+ laravelSparkDb,
+ voyagerDb,
+ koelDb,
+ laravelPermissionDb,
+ gravityDb,
];
diff --git a/src/templates-data/templates/gravity-db.ts b/src/templates-data/templates/gravity-db.ts
new file mode 100644
index 00000000..609b1c2a
--- /dev/null
+++ b/src/templates-data/templates/gravity-db.ts
@@ -0,0 +1,1102 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/gravity-db.png';
+import imageDark from '@/assets/templates/gravity-db-dark.png';
+
+export const gravityDb: Template = {
+ slug: 'gravity-database',
+ name: 'Gravity',
+ shortDescription: 'Node.js SaaS Boilerplate',
+ description:
+ 'by Kyle Gawley, is a SaaS boilerplate with a React UI, built to jumpstart Node.js SaaS app development',
+ image,
+ imageDark,
+ tags: ['Postgres', 'SaaS', 'Node.js'],
+ featured: true,
+ url: 'https://usegravity.app',
+ diagram: {
+ id: 'gravity_db',
+ name: 'gravity-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '9mcqm3g6goiqwxv6oylsg3qvy',
+ name: 'invite',
+ schema: 'public',
+ x: 174.2622277626349,
+ y: -235.3892617851391,
+ fields: [
+ {
+ id: 'rqtz6u3w5i3p74ah8m8z4tj35',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('invite_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 't71dsanwn58iith8b8tp53im7',
+ name: 'invite_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7cv6cti6a3xxc4pas8v6icohj',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'f42zkm1kgar1udzc03wklzooj',
+ name: 'account_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1koz4znool0h7xpa7icyb7fjk',
+ name: 'date_sent',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cprnsaaipf1u8fl98ikvkouq5',
+ name: 'used',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'vvydfuvao8aln0ddwy3d69qly',
+ name: 'idx_invite_account_id',
+ unique: false,
+ fieldIds: ['f42zkm1kgar1udzc03wklzooj'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ki6nfumlxlzujm3696n1sa73t',
+ name: 'invite_pkey',
+ unique: true,
+ fieldIds: ['rqtz6u3w5i3p74ah8m8z4tj35'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gk9doekmajow316hbyavivwwv',
+ name: 'session',
+ schema: 'public',
+ x: 699.1601394664892,
+ y: 552.6274940415008,
+ fields: [
+ {
+ id: 'u31837ao8oqfnxgzsxtyxxzgo',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('session_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zg48u21perjt6zjnjlc4xunb3',
+ name: 'user_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zmvylu4kf5c7uupilw0w021k4',
+ name: 'session_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ir70q0c7y02o1v1fd3kugsjvo',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: 'now()',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a0ddsvfclpvk7imbied4r1cu2',
+ name: 'expires_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'v5q4o5ay0qrs32yxvddjm7n2m',
+ name: 'idx_session_user_id',
+ unique: false,
+ fieldIds: ['zg48u21perjt6zjnjlc4xunb3'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kxya0tzg7bxsxcnvainxmwe7o',
+ name: 'session_session_token_key',
+ unique: true,
+ fieldIds: ['zmvylu4kf5c7uupilw0w021k4'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2whapij8jgd62ltnjz3kpa8ws',
+ name: 'session_pkey',
+ unique: true,
+ fieldIds: ['u31837ao8oqfnxgzsxtyxxzgo'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jsb9c0x12insbcbyrzs23g35k',
+ name: 'payment',
+ schema: 'public',
+ x: -223.60679774997902,
+ y: -193.89262614623652,
+ fields: [
+ {
+ id: 'xwh27vs9i1c2gnpvgxq0bj9l4',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('payment_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qn1drhserivlx9s1tpf8y5cio',
+ name: 'account_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mrpfpbrhqow7gs48yzp0r7ewn',
+ name: 'amount',
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ precision: 10,
+ scale: 2,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i4clo4al2rvt04y5mpja7l54b',
+ name: 'currency',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: "'USD'::character varying",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cxbdivmos31159w4hopqs4ssx',
+ name: 'payment_date',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: 'now()',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wvkakgqbe1e7kuxt0x5ijhlqd',
+ name: 'status',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '446vs82r1fnpqha150g9vljps',
+ name: 'stripe_payment_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'kjwqzaxyb971gx143f3g6j0zu',
+ name: 'payment_stripe_payment_id_key',
+ unique: true,
+ fieldIds: ['446vs82r1fnpqha150g9vljps'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ljajrsblf5ftmacd3qknu6raj',
+ name: 'payment_pkey',
+ unique: true,
+ fieldIds: ['xwh27vs9i1c2gnpvgxq0bj9l4'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '7roio8wf5qyd9f7g3ejn3nc45',
+ name: 'idx_payment_account_id',
+ unique: false,
+ fieldIds: ['qn1drhserivlx9s1tpf8y5cio'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm4uslifnlqy7gi9lz3fi0jipg',
+ name: 'plan_feature',
+ schema: 'public',
+ x: 843.296798741876,
+ y: 20.91062713357283,
+ fields: [
+ {
+ id: 'jqbbj4ydwvkmqh1vmchrj0bph',
+ name: 'plan',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'godyosoc7ltnv5pv1nr9qizzk',
+ name: 'feature_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'rmyry50hlrb6ucx1a4put43by',
+ name: 'plan_feature_pkey',
+ unique: true,
+ fieldIds: [
+ 'jqbbj4ydwvkmqh1vmchrj0bph',
+ 'godyosoc7ltnv5pv1nr9qizzk',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o3msgohjwlp3kaho95n1qiq27',
+ name: 'audit_log',
+ schema: 'public',
+ x: 524.6790298852982,
+ y: 24.089894697482578,
+ fields: [
+ {
+ id: 'tbkkmuvximi61njydlirw472b',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('audit_log_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j86ws1b2vk3vg7bgrwaldimh4',
+ name: 'user_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '71esx919iijcouhgci1e800qb',
+ name: 'account_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2gfltip5xjuth7h6b4q341l9q',
+ name: 'action',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4zxh1jrwzib6sjxvsuxcjigkg',
+ name: 'details',
+ type: {
+ id: 'jsonb',
+ name: 'jsonb',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5q3l9p7b0qmkfvnaxy9ishsos',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: 'now()',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'ehryt65xj518xw79e6sae5q03',
+ name: 'idx_audit_log_user_id',
+ unique: false,
+ fieldIds: ['j86ws1b2vk3vg7bgrwaldimh4'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gvo36aousfdldwi5h9p1720mh',
+ name: 'idx_audit_log_account_id',
+ unique: false,
+ fieldIds: ['71esx919iijcouhgci1e800qb'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'daaswvtb2d0zw870tlqrco15s',
+ name: 'audit_log_pkey',
+ unique: true,
+ fieldIds: ['tbkkmuvximi61njydlirw472b'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q331uck6xuljg8eud6580zkgk',
+ name: 'subscription',
+ schema: 'public',
+ x: -223.6067977499789,
+ y: 393.89262614623664,
+ fields: [
+ {
+ id: 'ixg46t4ivg30894s7kjpe7zr4',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('subscription_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vxjx3y7fs8bcaziobvbsamk5a',
+ name: 'account_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uehfwrisn598i89uy0du3xxan',
+ name: 'plan',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eg0kwio9mv4hq4sxaso3h2fuv',
+ name: 'status',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hmlalaf4sn3e8vru0u7tne83w',
+ name: 'start_date',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: 'now()',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vfrewl49mc7o53wsqhgw3ixqe',
+ name: 'end_date',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a4gesvjkg8tzv8vvf0px23dbb',
+ name: 'stripe_subscription_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rh7ks6u1obkt0u98auf4hktra',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: 'now()',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sukshs8q95thov4gy2130i5vy',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: 'now()',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'xfe6p7wtlz6wmsxi22u9cwm9p',
+ name: 'subscription_stripe_subscription_id_key',
+ unique: true,
+ fieldIds: ['a4gesvjkg8tzv8vvf0px23dbb'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hldm2oge35zkmk8w7dxoal90n',
+ name: 'subscription_pkey',
+ unique: true,
+ fieldIds: ['ixg46t4ivg30894s7kjpe7zr4'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '64irwxp0pxtj423zupblxxf7e',
+ name: 'idx_subscription_account_id',
+ unique: false,
+ fieldIds: ['vxjx3y7fs8bcaziobvbsamk5a'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't4by2ztfwylasi8nmet2x3n9t',
+ name: 'user',
+ schema: 'public',
+ x: 376.5214998091394,
+ y: 461.53276952141255,
+ fields: [
+ {
+ id: 'l1x4mv4x6s9rk80yu10l3t2ex',
+ name: 'id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '980pf6mq23c6f9gps4ehq7744',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wpjsjkqk6o6w1kq6o7gxz1m4n',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'muuvx8vrot72zs6yps457jf6r',
+ name: 'password',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7tfqvswgmm1xk3x5d57omgh05',
+ name: 'date_created',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: 'now()',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm2n1gm4q6wbl2c6xuad1x2gr7',
+ name: 'last_login',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rmsrm9w9qe6yxdmbpnj7d1q98',
+ name: 'permission',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wc7ew5zdcllqhahjmnxw92tn4',
+ name: 'push_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j3ljzeav70g5xsu580ggjjfgu',
+ name: 'account_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'c8gze3ohlz560ax8a2xff9zkq',
+ name: 'user_pkey',
+ unique: true,
+ fieldIds: ['l1x4mv4x6s9rk80yu10l3t2ex'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'geat7zfrxyzj6kn3z1ss4cxl2',
+ name: 'idx_user_account_id',
+ unique: false,
+ fieldIds: ['j3ljzeav70g5xsu580ggjjfgu'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zoj6z1arck84k10h5d6jqaqwk',
+ name: 'account',
+ schema: 'public',
+ x: 100,
+ y: 100,
+ fields: [
+ {
+ id: 'kc2gu14qor8iqmmu8who72gak',
+ name: 'id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6uvbmv6ramqj4xzdutx6p65dr',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0m1o9ufnos3thn3s30he72xpp',
+ name: 'date_created',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: 'now()',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pllk2x0btm7ziyyq6uhw0wbh2',
+ name: 'stripe_customer_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zraia51z4my5c1jbkyp0pt5z6',
+ name: 'stripe_subscription_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '323xuu8dnt4m4xdlm3s4h49xc',
+ name: 'plan',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k2yggy3ceu8yzopd79kiq0xw8',
+ name: 'referrer',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6c88ji50aq3pphoe3q351mhd3',
+ name: 'active',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ default: 'true',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'sxnhjzwyvwtervu458kuub504',
+ name: 'account_pkey',
+ unique: true,
+ fieldIds: ['kc2gu14qor8iqmmu8who72gak'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zowb74guu354061ruc9y1s2fi',
+ name: 'feature',
+ schema: 'public',
+ x: 863.1365940700359,
+ y: 269.4364829887478,
+ fields: [
+ {
+ id: 'wxrb33d4gjj2876ofa1c74z63',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('feature_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '8vr1rhrhn8q36qr425rfqncco',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wgiphu9h73k69isoqohu3h56r',
+ name: 'description',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mht1g1hqtsfmpe68frmlkenvc',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ default: 'now()',
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'j2uxeu5kg5i6p0bzmldxtu7az',
+ name: 'feature_name_key',
+ unique: true,
+ fieldIds: ['8vr1rhrhn8q36qr425rfqncco'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cnj5jqbuc51kle06va6fzsv9l',
+ name: 'feature_pkey',
+ unique: true,
+ fieldIds: ['wxrb33d4gjj2876ofa1c74z63'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '11xz1smunajzaoo01y8t6dwmx',
+ name: 'session_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'gk9doekmajow316hbyavivwwv',
+ targetTableId: 't4by2ztfwylasi8nmet2x3n9t',
+ sourceFieldId: 'zg48u21perjt6zjnjlc4xunb3',
+ targetFieldId: 'l1x4mv4x6s9rk80yu10l3t2ex',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '6dko72revj1g6gt126nm6fz1i',
+ name: 'user_account_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 't4by2ztfwylasi8nmet2x3n9t',
+ targetTableId: 'zoj6z1arck84k10h5d6jqaqwk',
+ sourceFieldId: 'j3ljzeav70g5xsu580ggjjfgu',
+ targetFieldId: 'kc2gu14qor8iqmmu8who72gak',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '9p3spt9qogvh16fydi375kyvo',
+ name: 'payment_account_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'jsb9c0x12insbcbyrzs23g35k',
+ targetTableId: 'zoj6z1arck84k10h5d6jqaqwk',
+ sourceFieldId: 'qn1drhserivlx9s1tpf8y5cio',
+ targetFieldId: 'kc2gu14qor8iqmmu8who72gak',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a014dk93xbn9xnkpnx3a4szfu',
+ name: 'subscription_account_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'q331uck6xuljg8eud6580zkgk',
+ targetTableId: 'zoj6z1arck84k10h5d6jqaqwk',
+ sourceFieldId: 'vxjx3y7fs8bcaziobvbsamk5a',
+ targetFieldId: 'kc2gu14qor8iqmmu8who72gak',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c7lp1pi7qlcq7v4p23uwzqb90',
+ name: 'invite_account_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '9mcqm3g6goiqwxv6oylsg3qvy',
+ targetTableId: 'zoj6z1arck84k10h5d6jqaqwk',
+ sourceFieldId: 'f42zkm1kgar1udzc03wklzooj',
+ targetFieldId: 'kc2gu14qor8iqmmu8who72gak',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'corebtkudmyruld6t2pxrlo8z',
+ name: 'audit_log_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'o3msgohjwlp3kaho95n1qiq27',
+ targetTableId: 't4by2ztfwylasi8nmet2x3n9t',
+ sourceFieldId: 'j86ws1b2vk3vg7bgrwaldimh4',
+ targetFieldId: 'l1x4mv4x6s9rk80yu10l3t2ex',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g6b82id659sw10k0lgqjfuab9',
+ name: 'audit_log_account_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'o3msgohjwlp3kaho95n1qiq27',
+ targetTableId: 'zoj6z1arck84k10h5d6jqaqwk',
+ sourceFieldId: '71esx919iijcouhgci1e800qb',
+ targetFieldId: 'kc2gu14qor8iqmmu8who72gak',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zem1jb3t8xvq0z95cyldkfj94',
+ name: 'plan_feature_feature_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'm4uslifnlqy7gi9lz3fi0jipg',
+ targetTableId: 'zowb74guu354061ruc9y1s2fi',
+ sourceFieldId: 'godyosoc7ltnv5pv1nr9qizzk',
+ targetFieldId: 'wxrb33d4gjj2876ofa1c74z63',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/koel-db.ts b/src/templates-data/templates/koel-db.ts
new file mode 100644
index 00000000..254c7f84
--- /dev/null
+++ b/src/templates-data/templates/koel-db.ts
@@ -0,0 +1,1180 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/koel-db.png';
+import imageDark from '@/assets/templates/koel-db-dark.png';
+
+export const koelDb: Template = {
+ slug: 'koel-database',
+ name: 'Koel | koel.dev',
+ shortDescription: 'Music streaming server',
+ description: 'schema for Koel open source software',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'],
+ featured: true,
+ url: 'https://koel.dev',
+ diagram: {
+ id: 'koel_db',
+ name: 'koel-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '1bbo7xfnv1iva2e1g4wvegnf5',
+ name: 'users',
+ schema: 'public',
+ x: 713.1498138008048,
+ y: -242.22539388322525,
+ fields: [
+ {
+ id: 'dsfw2sbft9slcl5uvwoagzb10',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3abesa8irp6uvt1x4sfmihjzj',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eicvvczqhxcu8qvk78i9849mb',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e1ns99weti8sprn5gp2bdbul6',
+ name: 'password',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ur7bpwpch958dqj9j2bs7uhb6',
+ name: 'is_admin',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gtqceud0jsipodny36jxfnrew',
+ name: 'preferences',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0m31hmm0u9casjsn3cs33flz4',
+ name: 'remember_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uf2dr9j761tpjlvwn2uwec5pz',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '20ykyg1qzqxxgxwb60mpox4jg',
+ 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: '2h2inppld9pdkw50tjbymowul',
+ name: 'users_email_key',
+ unique: true,
+ fieldIds: ['eicvvczqhxcu8qvk78i9849mb'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wwks490rjdhpfvg2il92qq2cs',
+ name: 'users_pkey',
+ unique: true,
+ fieldIds: ['dsfw2sbft9slcl5uvwoagzb10'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kyx1x39649qdy38nm69totuy3',
+ name: 'idx_users_email',
+ unique: true,
+ fieldIds: ['eicvvczqhxcu8qvk78i9849mb'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6wwb5b3z1yhbqjudyd2ozmgxl',
+ name: 'password_resets',
+ schema: 'public',
+ x: 323.62038924930494,
+ y: 77.65597775718257,
+ fields: [
+ {
+ id: 'drysxyola6lz0lnp684ko3pjk',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'u7w5k1el47l8egyxc86gd6jc7',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3cn1tmjt5pvelsmjfz3abukdv',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'x9i3tacvdc5bfvxw83a67hsb8',
+ name: 'password_resets_pkey',
+ unique: true,
+ fieldIds: ['drysxyola6lz0lnp684ko3pjk'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hh2s78ps7e1a23fifj996fyr3',
+ name: 'idx_password_resets_token',
+ unique: false,
+ fieldIds: ['u7w5k1el47l8egyxc86gd6jc7'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'blosecajwasyvqjym6i9w9qpu',
+ name: 'interactions',
+ schema: 'public',
+ x: 696.9511011880829,
+ y: 182.3399443929565,
+ fields: [
+ {
+ id: '974h8bnm4otod49y616fh2ala',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3z6yf3bikh7nz7ntdyhspgfzc',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'byd351vas0hiweidg32wtuifx',
+ name: 'song_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i0f9eo819w5gao3gp3d4wea5l',
+ name: 'liked',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gev1ewcz1vfkuzfbeuypu2fvq',
+ name: 'play_count',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h34fmivxjajhzv9pmkeh4g1sx',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r2bwk69a7rc02guzmkimyt9up',
+ 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: 'yorges2bbnhl2208eita8rbuf',
+ name: 'idx_interactions_user_id',
+ unique: false,
+ fieldIds: ['3z6yf3bikh7nz7ntdyhspgfzc'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o6tcpz3dy4qc010kt8feuav0r',
+ name: 'idx_interactions_song_id',
+ unique: false,
+ fieldIds: ['byd351vas0hiweidg32wtuifx'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iocl25ciua2tck0r6wb9iwues',
+ name: 'interactions_pkey',
+ unique: true,
+ fieldIds: ['974h8bnm4otod49y616fh2ala'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lo0qu9vhj7p4ivtmh75ianitt',
+ name: 'artists',
+ schema: 'public',
+ x: 711.1065801668212,
+ y: 635.2096385542169,
+ fields: [
+ {
+ id: 'ti4sfv1s5irkk0smwyeqghnwu',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '77y6dxcb2cde1psxpd61ap76k',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '94kdt7yzrf3k75maep4myfo5i',
+ name: 'image',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cxnj4wg1lzndsbm0llsqvpqdc',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kfcpj5hcuv56emsbzok563nqn',
+ 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: 'w97d0l8hja81migmvgwysvsui',
+ name: 'artists_pkey',
+ unique: true,
+ fieldIds: ['ti4sfv1s5irkk0smwyeqghnwu'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nu0rl3kwie8fdyksen9197hj6',
+ name: 'settings',
+ schema: 'public',
+ x: 324.7862835959222,
+ y: 298.9445783132531,
+ fields: [
+ {
+ id: 'o5wrzxdkjufdd2vkyigqg63a9',
+ name: 'key',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hta8e699svku3h4n53ivaj4g3',
+ name: 'value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'vsswjq7lyvzt1kjnn4uil4fbr',
+ name: 'settings_pkey',
+ unique: true,
+ fieldIds: ['o5wrzxdkjufdd2vkyigqg63a9'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'omv1l5zyi5min10iiew33qirs',
+ name: 'albums',
+ schema: 'public',
+ x: 295.4265060240966,
+ y: 514.272845227062,
+ fields: [
+ {
+ id: 'ljeeuqyeymidghrhx3ehe4ti8',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '61a72o357ug9sy3aet0bwshuk',
+ name: 'artist_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dptnuqmbmkvag5xm9x2196m02',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'u2iantg6xnxh51ix063oc1770',
+ name: 'cover',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1sflvykljwzee9plha0mjj26x',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rcezbd00izo9ccs9i545ghckw',
+ 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: 'i530gadq42rsjhbqvl6pu5n7a',
+ name: 'albums_pkey',
+ unique: true,
+ fieldIds: ['ljeeuqyeymidghrhx3ehe4ti8'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e81lqj13sborcqsw5ft06bx8q',
+ name: 'idx_albums_artist_id',
+ unique: false,
+ fieldIds: ['61a72o357ug9sy3aet0bwshuk'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qensm7inbwdcl3ygjmfr8759g',
+ name: 'idx_albums_name',
+ unique: false,
+ fieldIds: ['dptnuqmbmkvag5xm9x2196m02'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'paxmza7oe241fr0h2hnd1xm09',
+ name: 'personal_access_tokens',
+ schema: 'public',
+ x: 5.960333642261389,
+ y: 80.2291010194624,
+ fields: [
+ {
+ id: 'aq9twy83aoqaul4heuaaa8f7v',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z4s5q33u5a6rloboajmppx56c',
+ name: 'tokenable_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i2u2vlrmhvlhn784edu4gtt7s',
+ name: 'tokenable_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '33y6q9dme2jd50bg83uqp0q3m',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q310bhlz6c9xzub8mkrm29hqx',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's565m6ikpm2uazuqa7nzponr5',
+ name: 'abilities',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qigp8rhr2ricakvwu34t117bg',
+ name: 'last_used_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ekt5sbi2o5svximhvxfblb33o',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xolimy8jr9nr592hg221eotq2',
+ 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: 'x09y37938y63ev1yjs10fny4w',
+ name: 'personal_access_tokens_pkey',
+ unique: true,
+ fieldIds: ['aq9twy83aoqaul4heuaaa8f7v'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w5gjpa758vhjygti5ciu97ri0',
+ name: 'playlists',
+ schema: 'public',
+ x: 1063.513994439295,
+ y: -47.63294717330854,
+ fields: [
+ {
+ id: 'cmpkn7oc4tnqfbr5jdmr5afpc',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ttehfu91qsa1zt3ykewg76e1l',
+ name: 'user_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'grzqydghd11b9x4pjmxax3npv',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'djv785sm2nrz4mdyjx0xlttck',
+ name: 'rules',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fyb7h2qy9puc07k7di0fktqpu',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ns7garupvsu2d21mwrtfurka3',
+ 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: 'xbponwp6o1dbcny7p8396kq4e',
+ name: 'playlists_pkey',
+ unique: true,
+ fieldIds: ['cmpkn7oc4tnqfbr5jdmr5afpc'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wey7nxcmp4i5t0lgdgb2t4bz8',
+ name: 'songs',
+ schema: 'public',
+ x: 1065.9562557924003,
+ y: 413.9210379981466,
+ fields: [
+ {
+ id: '3zwecxjaci6fczjfpmh22q6wh',
+ name: 'id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2xdwpb6f4k92vdvfufnfq6501',
+ name: 'album_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6n9sm4zkioh6umrwcp4q53edl',
+ name: 'artist_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm2d7lyuj0jhf56v25o2evbb74',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm1tjxhkl7sytoy52gur7ju2l8',
+ name: 'length',
+ type: {
+ id: 'double_precision',
+ name: 'double precision',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ke3vqdtesh2n99vm9xhhhj36i',
+ name: 'track',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'brxi1kk957vt1gs7p119q4ua5',
+ name: 'disc',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4xvqdttz0jg7rr28h04em27t0',
+ name: 'lyrics',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hpwn8nsv9bujobedafkkji9d0',
+ name: 'path',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1k3f7rakospztma47o266688p',
+ name: 'mtime',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd20l6vp0hzmqe1jisoxlexld5',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rxra5l5wmc2veejsl2s766bb4',
+ 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: 'n3liojv5ta70mbbqufe97tfsf',
+ name: 'songs_pkey',
+ unique: true,
+ fieldIds: ['3zwecxjaci6fczjfpmh22q6wh'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xn7q1yixlkbd88zkt2jqd3agj',
+ name: 'idx_songs_title',
+ unique: false,
+ fieldIds: ['m2d7lyuj0jhf56v25o2evbb74'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e6txu6v4n24zy2n3oxzuk683x',
+ name: 'idx_songs_track_disc',
+ unique: true,
+ fieldIds: [
+ 'ke3vqdtesh2n99vm9xhhhj36i',
+ 'brxi1kk957vt1gs7p119q4ua5',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '9ks55ojbbg4a3w7h46azbgidy',
+ name: 'idx_songs_artist_id',
+ unique: false,
+ fieldIds: ['6n9sm4zkioh6umrwcp4q53edl'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nihozcellgl5qw8cw7n5kr9aw',
+ name: 'idx_track_disc',
+ unique: true,
+ fieldIds: [
+ 'ke3vqdtesh2n99vm9xhhhj36i',
+ 'brxi1kk957vt1gs7p119q4ua5',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '60mhs0dxqhrp5pi2ehmsqgkht',
+ name: 'idx_songs_album_id',
+ unique: false,
+ fieldIds: ['2xdwpb6f4k92vdvfufnfq6501'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6363',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wwvgva66b5wxe3gmu3jthz3kd',
+ name: 'playlist_song',
+ schema: 'public',
+ x: 1399.1859128822985,
+ y: 236.37553290083412,
+ fields: [
+ {
+ id: 'xgmoikmpcqy428acquoni733u',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qcz9l2vw7d28kangjrcf1857l',
+ name: 'playlist_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5ktgtio3chmwbraiyjkyf6wvn',
+ name: 'song_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'zktsnmbk214ctyefwkjya7yyb',
+ name: 'idx_playlist_song_playlist_id',
+ unique: false,
+ fieldIds: ['qcz9l2vw7d28kangjrcf1857l'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qvz9kxu2xbvk5pprj13syrpj0',
+ name: 'playlist_song_pkey',
+ unique: true,
+ fieldIds: ['xgmoikmpcqy428acquoni733u'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '07cnc7vgdaxtfo9wgonqz5rv5',
+ name: 'songs_album_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'wey7nxcmp4i5t0lgdgb2t4bz8',
+ targetTableId: 'omv1l5zyi5min10iiew33qirs',
+ sourceFieldId: '2xdwpb6f4k92vdvfufnfq6501',
+ targetFieldId: 'ljeeuqyeymidghrhx3ehe4ti8',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '8xjzzb5qvbhsc0an6krl543ps',
+ name: 'playlists_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'w5gjpa758vhjygti5ciu97ri0',
+ targetTableId: '1bbo7xfnv1iva2e1g4wvegnf5',
+ sourceFieldId: 'ttehfu91qsa1zt3ykewg76e1l',
+ targetFieldId: 'dsfw2sbft9slcl5uvwoagzb10',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '9tdfvffhqqbgtk1yogt7zy7k2',
+ name: 'songs_artist_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'wey7nxcmp4i5t0lgdgb2t4bz8',
+ targetTableId: 'lo0qu9vhj7p4ivtmh75ianitt',
+ sourceFieldId: '6n9sm4zkioh6umrwcp4q53edl',
+ targetFieldId: 'ti4sfv1s5irkk0smwyeqghnwu',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd1oa9279d9xji8b5tr1igfa9f',
+ name: 'playlist_song_playlist_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'wwvgva66b5wxe3gmu3jthz3kd',
+ targetTableId: 'w5gjpa758vhjygti5ciu97ri0',
+ sourceFieldId: 'qcz9l2vw7d28kangjrcf1857l',
+ targetFieldId: 'cmpkn7oc4tnqfbr5jdmr5afpc',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ei8makn2vhtzlr51yvpilqncx',
+ name: 'playlist_song_song_id_fk',
+ sourceSchema: 'public',
+ sourceTableId: 'wwvgva66b5wxe3gmu3jthz3kd',
+ targetSchema: 'public',
+ targetTableId: 'wey7nxcmp4i5t0lgdgb2t4bz8',
+ sourceFieldId: '5ktgtio3chmwbraiyjkyf6wvn',
+ targetFieldId: '3zwecxjaci6fczjfpmh22q6wh',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ff5gcorrrowpaovxb5ggg1eby',
+ name: 'interactions_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'blosecajwasyvqjym6i9w9qpu',
+ targetTableId: '1bbo7xfnv1iva2e1g4wvegnf5',
+ sourceFieldId: '3z6yf3bikh7nz7ntdyhspgfzc',
+ targetFieldId: 'dsfw2sbft9slcl5uvwoagzb10',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rcobiwp1wuqk2v7tvcfzy91qs',
+ name: 'albums_artist_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'omv1l5zyi5min10iiew33qirs',
+ targetTableId: 'lo0qu9vhj7p4ivtmh75ianitt',
+ sourceFieldId: '61a72o357ug9sy3aet0bwshuk',
+ targetFieldId: 'ti4sfv1s5irkk0smwyeqghnwu',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/laravel-permission-db.ts b/src/templates-data/templates/laravel-permission-db.ts
new file mode 100644
index 00000000..c62dd5bc
--- /dev/null
+++ b/src/templates-data/templates/laravel-permission-db.ts
@@ -0,0 +1,488 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/laravel-permission-db.png';
+import imageDark from '@/assets/templates/laravel-permission-db-dark.png';
+
+export const laravelPermissionDb: Template = {
+ slug: 'laravel-permission-database',
+ name: 'Laravel Permission',
+ shortDescription: 'Roles and Permission For Laravel',
+ description:
+ 'Associate users with roles and permissions (Laravel-Permission on github)',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'],
+ featured: true,
+ url: 'https://github.com/spatie/laravel-permission',
+ diagram: {
+ id: 'laravel_permission_db',
+ name: 'laravel-permission-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '2620qxtifbx20r7mbpjeujv4j',
+ name: 'roles',
+ schema: 'public',
+ x: 464.87710843373475,
+ y: 100,
+ fields: [
+ {
+ id: 'poke4psscnh9kcnjhksaaujnf',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zmecmt42pnfcvm60fymzzvb4a',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qaq3tbo01ijru1x03f3kg1evr',
+ name: 'guard_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y9d6p7p7easu8soxbu6t3eydc',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qoci8vbx8jvoqmdtnmpany9gb',
+ 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: '1en34nunvxrt4275dsgcvww4l',
+ name: 'roles_pkey',
+ unique: true,
+ fieldIds: ['poke4psscnh9kcnjhksaaujnf'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'spqunz0hxv2bg874w0m1y36r4',
+ name: 'unique_role_name',
+ unique: true,
+ fieldIds: [
+ 'zmecmt42pnfcvm60fymzzvb4a',
+ 'qaq3tbo01ijru1x03f3kg1evr',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4bfk337wvmggh25gtuv9xu2l2',
+ name: 'model_has_permissions',
+ schema: 'public',
+ x: -272.1075069508805,
+ y: -78.51195551436513,
+ fields: [
+ {
+ id: 'o6hhvn4ygrxnqnrzt3078st9i',
+ name: 'permission_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zxtynvat7f4oxf2c1zpqal1fk',
+ name: 'model_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r5bioxa56ghm7mlk4r9x9a5o6',
+ name: 'model_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'bf1u0pks34k83iozivuhjvwha',
+ name: 'idx_permission_model_type',
+ unique: false,
+ fieldIds: [
+ 'o6hhvn4ygrxnqnrzt3078st9i',
+ 'zxtynvat7f4oxf2c1zpqal1fk',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '8vdxiolssrpakzuv7twx3yk5o',
+ name: 'model_has_permissions_pkey',
+ unique: true,
+ fieldIds: [
+ 'o6hhvn4ygrxnqnrzt3078st9i',
+ 'r5bioxa56ghm7mlk4r9x9a5o6',
+ 'zxtynvat7f4oxf2c1zpqal1fk',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l00lk7nit3rr3rja4jzwpbg9z',
+ name: 'idx_model_id_type',
+ unique: false,
+ fieldIds: [
+ 'r5bioxa56ghm7mlk4r9x9a5o6',
+ 'zxtynvat7f4oxf2c1zpqal1fk',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd1ehpum03i9bnnfawx9rq3zq7',
+ name: 'model_has_roles',
+ schema: 'public',
+ x: 33.680815569972424,
+ y: 111.89050046339204,
+ fields: [
+ {
+ id: '6jgasj9vo69w60b5237un1zx3',
+ name: 'role_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hghqz8b4rcwkmp90xzxgcvtnq',
+ name: 'model_type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xmqnxspc9au3kr8ii4a58xm9y',
+ name: 'model_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '6n1klb9uu2h1cla1fvzrjbi95',
+ name: 'idx_model_id_type_roles',
+ unique: false,
+ fieldIds: [
+ 'xmqnxspc9au3kr8ii4a58xm9y',
+ 'hghqz8b4rcwkmp90xzxgcvtnq',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '9h1sf1k29qbz3sv2itdfrk4dk',
+ name: 'model_has_roles_pkey',
+ unique: true,
+ fieldIds: [
+ '6jgasj9vo69w60b5237un1zx3',
+ 'xmqnxspc9au3kr8ii4a58xm9y',
+ 'hghqz8b4rcwkmp90xzxgcvtnq',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c86wjo6kj2ovehsxxa2enllp9',
+ name: 'idx_role_model_type',
+ unique: false,
+ fieldIds: [
+ '6jgasj9vo69w60b5237un1zx3',
+ 'hghqz8b4rcwkmp90xzxgcvtnq',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n1ybvm5upr14p0628603p30f7',
+ name: 'role_has_permissions',
+ schema: 'public',
+ x: 501.8594995366079,
+ y: -188.2224281742354,
+ fields: [
+ {
+ id: '5gweun1ja59v4j0iwew7qtmug',
+ name: 'permission_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ax62xq5y074x11xlo5fgilbxw',
+ name: 'role_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: '5qpx9oexxq8hpeth52284mcpo',
+ name: 'role_has_permissions_pkey',
+ unique: true,
+ fieldIds: [
+ '5gweun1ja59v4j0iwew7qtmug',
+ 'ax62xq5y074x11xlo5fgilbxw',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'upkdmo20fjun4mliamza4hddh',
+ name: 'idx_permission_role',
+ unique: false,
+ fieldIds: [
+ '5gweun1ja59v4j0iwew7qtmug',
+ 'ax62xq5y074x11xlo5fgilbxw',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's6ocy1b7i68o367j8f3jpp0x9',
+ name: 'permissions',
+ schema: 'public',
+ x: 59.09101019462469,
+ y: -303.5113994439296,
+ fields: [
+ {
+ id: 'xbh22rbm01xf67vlb4iob7s2m',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p6w2uqym56yh11li8j7ie80y6',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kdg8mlkz9xv23yigbev3548o1',
+ name: 'guard_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lnuejviuvqhbe5xis5lx6g88u',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6e7k9krkbuw3mu50j1l2j1a5p',
+ 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: 'h0nxliia478xydaxwh3ez348i',
+ name: 'unique_permission_name',
+ unique: true,
+ fieldIds: [
+ 'p6w2uqym56yh11li8j7ie80y6',
+ 'kdg8mlkz9xv23yigbev3548o1',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '6kwd6xdwm5ffff0e6nc0pth9d',
+ name: 'permissions_pkey',
+ unique: true,
+ fieldIds: ['xbh22rbm01xf67vlb4iob7s2m'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: 'm90ygayyu34f13rsqhkuntip6',
+ name: 'model_has_permissions_permission_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '4bfk337wvmggh25gtuv9xu2l2',
+ targetTableId: 's6ocy1b7i68o367j8f3jpp0x9',
+ sourceFieldId: 'o6hhvn4ygrxnqnrzt3078st9i',
+ targetFieldId: 'xbh22rbm01xf67vlb4iob7s2m',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pqohktmdce5leh9xy89an1dvu',
+ name: 'role_has_permissions_role_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'n1ybvm5upr14p0628603p30f7',
+ targetTableId: '2620qxtifbx20r7mbpjeujv4j',
+ sourceFieldId: 'ax62xq5y074x11xlo5fgilbxw',
+ targetFieldId: 'poke4psscnh9kcnjhksaaujnf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qyuoq0fn7j2ldvt9952o5quom',
+ name: 'model_has_roles_role_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'd1ehpum03i9bnnfawx9rq3zq7',
+ targetTableId: '2620qxtifbx20r7mbpjeujv4j',
+ sourceFieldId: '6jgasj9vo69w60b5237un1zx3',
+ targetFieldId: 'poke4psscnh9kcnjhksaaujnf',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'td5vwiqogewiwky7uexog5hj1',
+ name: 'role_has_permissions_permission_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'n1ybvm5upr14p0628603p30f7',
+ targetTableId: 's6ocy1b7i68o367j8f3jpp0x9',
+ sourceFieldId: '5gweun1ja59v4j0iwew7qtmug',
+ targetFieldId: 'xbh22rbm01xf67vlb4iob7s2m',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/laravel-spark-db.ts b/src/templates-data/templates/laravel-spark-db.ts
new file mode 100644
index 00000000..83f5af03
--- /dev/null
+++ b/src/templates-data/templates/laravel-spark-db.ts
@@ -0,0 +1,2158 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/laravel-spark-db.png';
+import imageDark from '@/assets/templates/laravel-spark-db-dark.png';
+
+export const laravelSparkDb: Template = {
+ slug: 'laravel-spark-database',
+ name: 'Laravel Spark',
+ shortDescription: 'Recurring billing solution for Laravel',
+ description: 'A starter-kit for your next great SaaS application',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'],
+ featured: true,
+ url: 'https://github.com/laravel/spark-aurelius',
+ diagram: {
+ id: 'laravel_spark_db',
+ name: 'laravel-spark-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '3jvmtsxycjfoe139op30zzhlz',
+ name: 'team_subscriptions',
+ schema: 'public',
+ x: -547.3219335678851,
+ y: -228.24948097507573,
+ fields: [
+ {
+ id: '37h5tfskdps7rmp9us2uceq6c',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('team_subscriptions_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nzbta5jmnf258kdchfqiylit2',
+ name: 'team_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zga7iw6n1q6fosentweehy7lb',
+ name: 'stripe_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fe138jknzenrpxmybn18gyiah',
+ name: 'stripe_plan',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9afe5ufrgwznyge7ztudoc0o0',
+ name: 'quantity',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5a75wrotyz2g0ip2w5skwnwyy',
+ name: 'trial_ends_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gqvio9lgehtv8pri0u0go32ea',
+ name: 'ends_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kanw1laa5vfr5uouxxw3jzov1',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ppi5ztfmfh67jits6pq5yes9x',
+ 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: 'poo1nffzm647sq7hrbqpp1lvw',
+ name: 'team_subscriptions_pkey',
+ unique: true,
+ fieldIds: ['37h5tfskdps7rmp9us2uceq6c'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4bxahy0gb1h3dyrtd2459qwvb',
+ name: 'invoices',
+ schema: 'public',
+ x: 108.95988730761746,
+ y: 138.05543975141467,
+ fields: [
+ {
+ id: 'zplhikdjwej558393rgu5wsxi',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('invoices_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nzcdiown05omd5pfp8bvqso1j',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5fyx2qkkbxsppr4tozd5josct',
+ name: 'team_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oof54cb2pyvtsd1unjooyfxvy',
+ name: 'provider_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3yove3hk4pdnlpk4oj5csruwz',
+ name: 'provider_plan',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tlvqsks3da74kq4fk80vz2fi2',
+ name: 'amount',
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ precision: 10,
+ scale: 2,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nor9z7skycbwyjdytxi3s6alr',
+ name: 'total',
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ precision: 10,
+ scale: 2,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hzz3pnoi87x0htllztuw079ad',
+ name: 'tax',
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ precision: 10,
+ scale: 2,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y51cso8kguaxlffleiqhubdoi',
+ name: 'card_country',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm0pp8pu3013abiaheevskatqs',
+ name: 'billing_address',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aafhr7qxqx15jyeitjw5rxtwp',
+ name: 'billing_city',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'saw9z3z4qcvyx87t58hxxovwa',
+ name: 'billing_state',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yhib760afvdargf39d90awcch',
+ name: 'billing_zip',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '1yc4aeauxjb8tvcgzxfm3znyw',
+ name: 'billing_country',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ogsfx4sscq471x94tcfbazcui',
+ name: 'vat_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cbox2xmtjema491daedwfgchg',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nsz71xz2c10todqm0b7x8pgzf',
+ 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: 'vwgy8s2tuo1trv2ma5180uiof',
+ name: 'invoices_pkey',
+ unique: true,
+ fieldIds: ['zplhikdjwej558393rgu5wsxi'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#7175fa',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5hxs7wpg67p88r4521wi8syep',
+ name: 'notifications',
+ schema: 'public',
+ x: 1163.7853479712396,
+ y: -197.1187205307031,
+ fields: [
+ {
+ id: '6qsl64hukbivf2m2yanctaopx',
+ name: 'id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zdsjqtn7ihjg6t7bccpy8vl13',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7a2yjh7lksumxpk0vp5m8tyzl',
+ name: 'icon',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '81sn5cdvfs5bsxuxsfyr5erse',
+ name: 'body',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '02xpsjtazmemsg9o0hh63bwhf',
+ name: 'action_text',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xtz16agynpqqmgslwznpksu5k',
+ name: 'action_url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a6ztogu4es0q20c7my4vuy1o6',
+ name: 'read',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tbnqficb95tgel5wb3obx174h',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yynj32ludyklabh4qz6sjnsiq',
+ 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: '46zk8ee827baophuq39oxf2n0',
+ name: 'idx_notifications_user_id_created_at',
+ unique: false,
+ fieldIds: [
+ 'zdsjqtn7ihjg6t7bccpy8vl13',
+ 'tbnqficb95tgel5wb3obx174h',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ax4fbjaxzc3wzkjsbc32cxlwq',
+ name: 'notifications_pkey',
+ unique: true,
+ fieldIds: ['6qsl64hukbivf2m2yanctaopx'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '89xjr2o46iek3wzb8r7eej9r0',
+ name: 'announcements',
+ schema: 'public',
+ x: 928.5143618095431,
+ y: -421.8452789182581,
+ fields: [
+ {
+ id: 'vzinhpw7l1u8sjl1jg1qcy63p',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('announcements_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'w2cv9qy96agjnd6mhdxmozpxw',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nnada99l55gu46noiurmvz5eu',
+ name: 'body',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sdm18o43ctcs6t07orbo9vqyk',
+ name: 'action_text',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nr2dk9wn19sqpwfwljivj7m6m',
+ name: 'action_url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'khogjyfb35l3hlrqeuzymnfry',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's3rmg7iklhkcfltn6ir0xgnog',
+ 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: '2gfoi6bm2apvw9cw3yiztk5g6',
+ name: 'announcements_pkey',
+ unique: true,
+ fieldIds: ['vzinhpw7l1u8sjl1jg1qcy63p'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'awdd4fwb2bu3x7135cs86zkhz',
+ name: 'team_users',
+ schema: 'public',
+ x: -113.19393385672583,
+ y: -205.18115189434653,
+ fields: [
+ {
+ id: '021igiwy41c1jfhrd40ugbndx',
+ name: 'team_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tqgy5bjffa8rafp48pxrfnhv6',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8pvasrruu1npdypr5rz1pcas7',
+ name: 'role',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'yg4u0pmqn873ec8y1rltt27xc',
+ name: 'idx_team_users_team_id_user_id',
+ unique: false,
+ fieldIds: [
+ '021igiwy41c1jfhrd40ugbndx',
+ 'tqgy5bjffa8rafp48pxrfnhv6',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rnseay48dvtxmq7lcoka8iph5',
+ name: 'team_users_pkey',
+ unique: true,
+ fieldIds: [
+ '021igiwy41c1jfhrd40ugbndx',
+ 'tqgy5bjffa8rafp48pxrfnhv6',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dyct2wou6zaw3j3oepnaxw6qi',
+ name: 'api_tokens',
+ schema: 'public',
+ x: 1069.3785389123366,
+ y: 216.20009653382067,
+ fields: [
+ {
+ id: '261md8r0ntxcalop6ialip4vb',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('api_tokens_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yml91en4uxha1berq47n661eu',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2kcxypjuuwop4c8o389jekfqu',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '49g7o5vla8va8t344y7p9lcbl',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jr2h39t8ejz678xhkfb5cawwl',
+ name: 'metadata',
+ type: {
+ id: 'jsonb',
+ name: 'jsonb',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rpw805wva55y9yr93kr82s4h4',
+ name: 'transient',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qavrwwjxhccmmtciwybkssyf2',
+ name: 'last_used_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'it2f67pg5qaboozfm9o1b7v1r',
+ name: 'expires_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6pwce5wd253r4bms6u2z47nrw',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l1gw8cm8ecggag9pghk0pgvi3',
+ 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: 'gu5cjtp02iljswx1pypcs01kl',
+ name: 'idx_api_tokens_user_id_expires_at',
+ unique: false,
+ fieldIds: [
+ 'yml91en4uxha1berq47n661eu',
+ 'it2f67pg5qaboozfm9o1b7v1r',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sudzw632z52onlaix20qp44g4',
+ name: 'api_tokens_pkey',
+ unique: true,
+ fieldIds: ['261md8r0ntxcalop6ialip4vb'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'rewq0hkvpqosmr0e4whh8uxbs',
+ name: 'api_tokens_token_key',
+ unique: true,
+ fieldIds: ['49g7o5vla8va8t344y7p9lcbl'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8eb7ff',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'dyr53kx47mi6qqosnbpblawrx',
+ name: 'users',
+ schema: 'public',
+ x: 513.318817064524,
+ y: 127.3519805410346,
+ fields: [
+ {
+ id: 't7luke7y8ogkwumfxmooa70jm',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('users_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hcgubljbqptmd3j3g7j1zva4i',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4wh2w3qvaecsawe7n8jxf9cul',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'jcdq04nu4smidfbu3z3dhtctp',
+ name: 'email_verified_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q7qb9x22zxbd0h8uxvg9b7j2m',
+ name: 'password',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'acei9o7l6vve1rk87utw4tcap',
+ name: 'remember_token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6y18329rg227dbemxo052r5nt',
+ name: 'photo_url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vph3us73jyozvmw91ymjx1sgm',
+ name: 'uses_two_factor_auth',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n46p8pnzskj19dgjh0mui4l3l',
+ name: 'authy_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6fuchxoyqjzc6brp1kdcw7eg4',
+ name: 'country_code',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nv5q9h6tbzd12wydwj6qsjxln',
+ name: 'phone',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nrirhcg3dula877mp2tg3hs1q',
+ name: 'stripe_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6wymm09r8p402oj3zxnmfwcna',
+ name: 'two_factor_reset_code',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h777hdxb4qntx3onxf4846tg6',
+ name: 'current_team_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8k5rtidl2cfigc3m61dh55pj9',
+ name: 'current_billing_plan',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7jylxl8s5ea4gg7tlwkuhvecd',
+ name: 'card_brand',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'd6na5l4kshiuzxppxwr68wyh3',
+ name: 'card_last_four',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mtpo6kip3q8po6jser5zn4wog',
+ name: 'card_country',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3nwo24a92ycmhibtn5wxfecxh',
+ name: 'billing_address',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z44r9d201dy89zli8austinx9',
+ name: 'billing_address_line_2',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '32mp2nhighgp3gf30kykx9dbn',
+ name: 'billing_city',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5ybid22eod84ba2xii9rhnr8e',
+ name: 'billing_state',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6fhidkemuq1p6k1jr6pspe7bi',
+ name: 'billing_zip',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ghn69851yk78u6car8e7w6xgi',
+ name: 'billing_country',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'khq0glqyk4yehku92np3t4b9d',
+ name: 'vat_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'k0z4qob80anbw3n2ob7y61njn',
+ name: 'extra_billing_information',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'aa6orp4j6uk9jvw3or9tyg98l',
+ name: 'trial_ends_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oct21boksdf5eh78v3gq721a2',
+ name: 'last_read_announcements_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ezk8twf5bz6u55xg9t79cqph7',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qvh7flrph4hnhcftxpql87au4',
+ 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: 'qkx4zz1fyes2kdjist818awug',
+ name: 'users_pkey',
+ unique: true,
+ fieldIds: ['t7luke7y8ogkwumfxmooa70jm'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sgw20bq4otfk19bopyuwk91bi',
+ name: 'users_email_key',
+ unique: true,
+ fieldIds: ['4wh2w3qvaecsawe7n8jxf9cul'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j7acx0mvr5ow2z006fxc50ugg',
+ name: 'idx_users_email',
+ unique: false,
+ fieldIds: ['4wh2w3qvaecsawe7n8jxf9cul'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'foix2fjym2dbo1v3lycoc9ld7',
+ name: 'teams',
+ schema: 'public',
+ x: -346.97871178498485,
+ y: 598.1984969413621,
+ fields: [
+ {
+ id: '7do8qklbp9i98s27yx0le0v7j',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('teams_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ly6dam6u5qyb7ktsegzb8ru9i',
+ name: 'owner_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'oqxomaynw3kmifkuhu5gde0d0',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z7m2il14zuiz3qtc5r2cly110',
+ name: 'slug',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l33bb50b4dqzkdfazdfmf2x9g',
+ name: 'photo_url',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tuw70rn6qilumweo5d3loycet',
+ name: 'stripe_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'szrh7bfnec0t8hlogro8zyp4a',
+ name: 'current_billing_plan',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hrixv4yjhcnrfkhyj18x64cf5',
+ name: 'card_brand',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'q50nndo05zae0t0v04qpm65eh',
+ name: 'card_last_four',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ezuwxy8kyx65pxjhpzs0ssnbr',
+ name: 'card_country',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cdhgc4hf1xv0qojjb9z6gzmkt',
+ name: 'billing_address',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o2v2ufdkj94o5nj6l5ago08q4',
+ name: 'billing_address_line_2',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6gz8x1ktjn2g9tcv1grsf47op',
+ name: 'billing_city',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '99w636vdtw3exws3zod1b56ly',
+ name: 'billing_state',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i0kyd9g6by9pleqdojahg7wde',
+ name: 'billing_zip',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c1fs08z68vbae40r84lncwh69',
+ name: 'billing_country',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6y7o4yttpdcoxi1rstld1tdqr',
+ name: 'vat_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6ukk4x3zbcmi8xx10pm31zvhf',
+ name: 'extra_billing_information',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lwn30dqlkw3x8idth6bgl78xe',
+ name: 'trial_ends_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8ihhsxmcqh0r120ubmdz7w24i',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cxqujcrc9uezdksrf6a3sdsh9',
+ 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: 'im80uyvya0psoo67rhltg2f8s',
+ name: 'teams_pkey',
+ unique: true,
+ fieldIds: ['7do8qklbp9i98s27yx0le0v7j'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h2gg3jr91cgrymzjy6a9sz2c8',
+ name: 'teams_slug_key',
+ unique: true,
+ fieldIds: ['z7m2il14zuiz3qtc5r2cly110'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#42e0c0',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i0x468sfe0orhcn5pl6fvctl0',
+ name: 'password_resets',
+ schema: 'public',
+ x: 1306.442178810179,
+ y: 672.8235809118509,
+ fields: [
+ {
+ id: '4kfq3wdknxrbo3fxqv7el0qg7',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x09zb6gjt7wdbooo5cb4dbb9j',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '70z8qcdbdgnt89nj0fsaq7b6t',
+ 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: 'me72i6ghzatln2liqaka31qys',
+ name: 'password_resets_pkey',
+ unique: true,
+ fieldIds: ['4kfq3wdknxrbo3fxqv7el0qg7'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mlsskjr0dy8ui6uq81l22e0cp',
+ name: 'performance_indicators',
+ schema: 'public',
+ x: 1045.4291946956632,
+ y: 682.055941623104,
+ fields: [
+ {
+ id: 'fztvo3qtbsuak5l1qe77floi3',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default:
+ "nextval('performance_indicators_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'djaylwov03o19fpkbu1p22spq',
+ name: 'monthly_recurring_revenue',
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ precision: 10,
+ scale: 2,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gwvhemf09j09seio53576x3un',
+ name: 'yearly_recurring_revenue',
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ precision: 10,
+ scale: 2,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ftzeqeyifkwzb9smylwbe04a7',
+ name: 'daily_volume',
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ precision: 10,
+ scale: 2,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'm0h6x57a5vycqjllwpx0gn2n2',
+ name: 'new_users',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '657gnbtfzipgitf47hjwfa2vr',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '91df0rgshayr9wmcuz3s3yra6',
+ 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: '9tqmdgu574flzwo30nlwfayd2',
+ name: 'performance_indicators_pkey',
+ unique: true,
+ fieldIds: ['fztvo3qtbsuak5l1qe77floi3'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pygvuwu2zvvci6a47wzh7pioj',
+ name: 'invitations',
+ schema: 'public',
+ x: 431.2628754414195,
+ y: 718.1453603925248,
+ fields: [
+ {
+ id: 'pt3b4qn4njj4eomj0kvv38p70',
+ name: 'id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '10p0uvi5oy4zs6ozqbr2awl76',
+ name: 'team_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a7otts0e7rxskcpyr6kcr763k',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c7zyanlfu1r28gbojd8fuw4bb',
+ name: 'role',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3j20j1jtx3gprznpacta0cv7s',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3msnr6vw2mvdr04bpz9lk8lik',
+ name: 'token',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4a1i9879g73v0i2wwcbqmtxm1',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8kxhrf1pdue9g8z4vdajp0hzv',
+ 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: '1hmm4aq12z9obssjblmhu7lgc',
+ name: 'invitations_pkey',
+ unique: true,
+ fieldIds: ['pt3b4qn4njj4eomj0kvv38p70'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y7gxetceqqa5n7qolqb5hr731',
+ name: 'invitations_token_key',
+ unique: true,
+ fieldIds: ['3msnr6vw2mvdr04bpz9lk8lik'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qyk9l1afii25znsdwtq7ac823',
+ name: 'subscriptions',
+ schema: 'public',
+ x: 535.754960976059,
+ y: -437.92228397368166,
+ fields: [
+ {
+ id: 'd3omubr5vxb9hg4wyim8l3sxc',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ default: "nextval('subscriptions_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h6z443oalimgg5cbtsjdkjx9k',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'spjiaursn6keivjeld9xzsufl',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0uiu9ov6ef47kspq6o0jy1ez2',
+ name: 'stripe_id',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g7rqzqs3r4q2tzpv12ya3r71l',
+ name: 'stripe_plan',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ugx33969bkrm0qhxrqth6bphr',
+ name: 'stripe_status',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '50qg2uv0ulhm8mu0lrx839pfn',
+ name: 'quantity',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '8t0xhytz6stqxnxdv2t10swon',
+ name: 'trial_ends_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'blb3osdhvvld4fsoazhp7121n',
+ name: 'ends_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't48jobc4xslo39sr8z6769r32',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_with_time_zone',
+ name: 'timestamp with time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wb7fhj8dbz3jmk2poupyk18il',
+ 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: 'ih93q8hpimbyu1ndmei9qir0o',
+ name: 'subscriptions_pkey',
+ unique: true,
+ fieldIds: ['d3omubr5vxb9hg4wyim8l3sxc'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '50qkl64brmv9gw9kr3vzalsf1',
+ name: 'announcements_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '89xjr2o46iek3wzb8r7eej9r0',
+ targetTableId: 'dyr53kx47mi6qqosnbpblawrx',
+ sourceFieldId: 'w2cv9qy96agjnd6mhdxmozpxw',
+ targetFieldId: 't7luke7y8ogkwumfxmooa70jm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: '5vq90hp8wfqeo5ecriydsj77i',
+ name: 'invitations_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'pygvuwu2zvvci6a47wzh7pioj',
+ targetTableId: 'dyr53kx47mi6qqosnbpblawrx',
+ sourceFieldId: 'a7otts0e7rxskcpyr6kcr763k',
+ targetFieldId: 't7luke7y8ogkwumfxmooa70jm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'curtlz417gcs4uskjmekbpy3d',
+ name: 'invoices_team_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '4bxahy0gb1h3dyrtd2459qwvb',
+ targetTableId: 'foix2fjym2dbo1v3lycoc9ld7',
+ sourceFieldId: '5fyx2qkkbxsppr4tozd5josct',
+ targetFieldId: '7do8qklbp9i98s27yx0le0v7j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hx93kg5pld1dmnjkml295budo',
+ name: 'team_users_team_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'awdd4fwb2bu3x7135cs86zkhz',
+ targetTableId: 'foix2fjym2dbo1v3lycoc9ld7',
+ sourceFieldId: '021igiwy41c1jfhrd40ugbndx',
+ targetFieldId: '7do8qklbp9i98s27yx0le0v7j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ls7bcyp19xis8xrp5nxlsd6vg',
+ name: 'subscriptions_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'qyk9l1afii25znsdwtq7ac823',
+ targetTableId: 'dyr53kx47mi6qqosnbpblawrx',
+ sourceFieldId: 'h6z443oalimgg5cbtsjdkjx9k',
+ targetFieldId: 't7luke7y8ogkwumfxmooa70jm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mplfehxojkx9rv9b1u9z5rcx8',
+ name: 'teams_owner_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'foix2fjym2dbo1v3lycoc9ld7',
+ targetTableId: 'dyr53kx47mi6qqosnbpblawrx',
+ sourceFieldId: 'ly6dam6u5qyb7ktsegzb8ru9i',
+ targetFieldId: 't7luke7y8ogkwumfxmooa70jm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 's8n7oinpqoxgd8gsehqqisxdm',
+ name: 'notifications_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '5hxs7wpg67p88r4521wi8syep',
+ targetTableId: 'dyr53kx47mi6qqosnbpblawrx',
+ sourceFieldId: 'zdsjqtn7ihjg6t7bccpy8vl13',
+ targetFieldId: 't7luke7y8ogkwumfxmooa70jm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vh9e8se2mrt3p4al5uffybh0r',
+ name: 'invoices_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '4bxahy0gb1h3dyrtd2459qwvb',
+ targetTableId: 'dyr53kx47mi6qqosnbpblawrx',
+ sourceFieldId: 'nzcdiown05omd5pfp8bvqso1j',
+ targetFieldId: 't7luke7y8ogkwumfxmooa70jm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wa6p46cu4s9xexfowury339ru',
+ name: 'team_subscriptions_team_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '3jvmtsxycjfoe139op30zzhlz',
+ targetTableId: 'foix2fjym2dbo1v3lycoc9ld7',
+ sourceFieldId: 'nzbta5jmnf258kdchfqiylit2',
+ targetFieldId: '7do8qklbp9i98s27yx0le0v7j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ynitl1nohp9f3w9wl1zpnq4dt',
+ name: 'api_tokens_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'dyct2wou6zaw3j3oepnaxw6qi',
+ targetTableId: 'dyr53kx47mi6qqosnbpblawrx',
+ sourceFieldId: 'yml91en4uxha1berq47n661eu',
+ targetFieldId: 't7luke7y8ogkwumfxmooa70jm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'z9oh68wp0hbpcw0ihw1sd3b43',
+ name: 'invitations_team_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'pygvuwu2zvvci6a47wzh7pioj',
+ targetTableId: 'foix2fjym2dbo1v3lycoc9ld7',
+ sourceFieldId: '10p0uvi5oy4zs6ozqbr2awl76',
+ targetFieldId: '7do8qklbp9i98s27yx0le0v7j',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zkdba7smxqg1m0q9kz7bh6t83',
+ name: 'team_users_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'awdd4fwb2bu3x7135cs86zkhz',
+ targetTableId: 'dyr53kx47mi6qqosnbpblawrx',
+ sourceFieldId: 'tqgy5bjffa8rafp48pxrfnhv6',
+ targetFieldId: 't7luke7y8ogkwumfxmooa70jm',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};
diff --git a/src/templates-data/templates/voyager-db.ts b/src/templates-data/templates/voyager-db.ts
new file mode 100644
index 00000000..e7c1bf43
--- /dev/null
+++ b/src/templates-data/templates/voyager-db.ts
@@ -0,0 +1,1443 @@
+import { DatabaseType } from '@/lib/domain/database-type';
+import type { Template } from '../templates-data';
+import image from '@/assets/templates/voyager-db.png';
+import imageDark from '@/assets/templates/voyager-db-dark.png';
+
+export const voyagerDb: Template = {
+ slug: 'voyager-database',
+ name: 'Voyager',
+ shortDescription: 'The Missing Admin for Laravel',
+ description:
+ 'Package with Media Manager, Menu Builder, Database Manager, and CRUD tools.',
+ image,
+ imageDark,
+ tags: ['Postgres', 'Open Source', 'Laravel', 'PHP'],
+ featured: true,
+ url: 'https://voyager.devdojo.com',
+ diagram: {
+ id: 'voyager_db',
+ name: 'voyager-database',
+ createdAt: new Date(),
+ updatedAt: new Date(),
+ databaseType: DatabaseType.POSTGRESQL,
+ tables: [
+ {
+ id: '1jirb68g3aetzfsc1tftibg0x',
+ name: 'permission_role',
+ schema: 'public',
+ x: 372.6284949966332,
+ y: 320.29759509217644,
+ fields: [
+ {
+ id: 'tlq836h9hxivb3yq5i77j69ef',
+ name: 'permission_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gp7pd9oxz8h28u5w79w08t7n6',
+ name: 'role_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'nt0gr8kyoq8aohuopvah60nrf',
+ name: 'idx_permission_role_permission_id_role_id',
+ unique: false,
+ fieldIds: [
+ 'tlq836h9hxivb3yq5i77j69ef',
+ 'gp7pd9oxz8h28u5w79w08t7n6',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iqlz39u8dwkvohbi5u1eerx0c',
+ name: 'permission_role_pkey',
+ unique: true,
+ fieldIds: [
+ 'tlq836h9hxivb3yq5i77j69ef',
+ 'gp7pd9oxz8h28u5w79w08t7n6',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '2sif2077lvh8lr2uo77yzyeii',
+ name: 'user_roles',
+ schema: 'public',
+ x: -196.45238933968017,
+ y: -25.565099801681185,
+ fields: [
+ {
+ id: 'thwx0iva7h3hgem71p6vtqyn6',
+ name: 'user_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '866cjoij6khkeii69jirrj2sr',
+ name: 'role_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'xzugsu33k6ww08qc9j5xo8yyf',
+ name: 'user_roles_pkey',
+ unique: true,
+ fieldIds: [
+ 'thwx0iva7h3hgem71p6vtqyn6',
+ '866cjoij6khkeii69jirrj2sr',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ittdv0rieqz7k1rrf3twv9ldr',
+ name: 'idx_user_roles_user_id_role_id',
+ unique: false,
+ fieldIds: [
+ 'thwx0iva7h3hgem71p6vtqyn6',
+ '866cjoij6khkeii69jirrj2sr',
+ ],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#b067e9',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '3pw4sdxkql90vi5u7mvdoktob',
+ name: 'menus',
+ schema: 'public',
+ x: 784.4277578291758,
+ y: -79.80900828848576,
+ fields: [
+ {
+ id: 'c0bczfmzqu9k4cpzgov0lng6f',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '224bjovak9514xxq5pbrbprzk',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ozex0ne1zzrlbawqfh21c8hvw',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wu5zwyquywdd67kc7r6flj32s',
+ 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: '0w2gngeuqwswy925hqj3p2yt4',
+ name: 'menus_pkey',
+ unique: true,
+ fieldIds: ['c0bczfmzqu9k4cpzgov0lng6f'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zm97cevce5l5rwxgwnmeicsry',
+ name: 'idx_menus_name',
+ unique: true,
+ fieldIds: ['224bjovak9514xxq5pbrbprzk'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p3dvnqarvjfylo8nq2qiqm0zh',
+ name: 'menus_name_key',
+ unique: true,
+ fieldIds: ['224bjovak9514xxq5pbrbprzk'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9xny68y3a4omranwgmxtjvgwa',
+ name: 'settings',
+ schema: 'public',
+ x: 785.0437394633484,
+ y: 174.4041932907814,
+ fields: [
+ {
+ id: 'xuwdfm8rye2fbzvoqqtc5icd2',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n4o1y6fpnwd61oig4ixth9p93',
+ name: 'key',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yth3oftq6c6uqias880kvr496',
+ name: 'display_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a7e1cdjgp9bmhuig2pgg6wrpi',
+ name: 'value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eessnq8jusbhibk5odbgzbtqx',
+ name: 'details',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '46uwt65a5w0gqvln2keeb7kot',
+ name: 'type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xm8189qeooq2zz4df73919p4s',
+ name: 'order',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ontam4xkza1l1yyqiz294igi8',
+ name: 'group',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'kmc6tjfe7lyuksqtkyx3076ge',
+ name: 'settings_key_key',
+ unique: true,
+ fieldIds: ['n4o1y6fpnwd61oig4ixth9p93'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ev2om5dzgux2sypq8xsmb30yo',
+ name: 'idx_settings_key',
+ unique: true,
+ fieldIds: ['n4o1y6fpnwd61oig4ixth9p93'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p1tbuvqjvm2xw8vmn8sxmbqaj',
+ name: 'settings_pkey',
+ unique: true,
+ fieldIds: ['xuwdfm8rye2fbzvoqqtc5icd2'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bq1341mwagcb890tf14p7wino',
+ name: 'permissions',
+ schema: 'public',
+ x: 713.6945379646128,
+ y: 518.8173010797083,
+ fields: [
+ {
+ id: 'l3l81z01opxlx1vrbw66n3ukr',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'sh3cmr6v9jaz2pm7ukpcx4iak',
+ name: 'key',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '27aojfkpy6wd9pllbea7ewwzh',
+ name: 'table_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'shelnoaw576hdtn861tq1nqv7',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5aecap6tom0131r1szyzmv9hn',
+ 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: '57gf31lave2vorj073ipn7yit',
+ name: 'permissions_pkey',
+ unique: true,
+ fieldIds: ['l3l81z01opxlx1vrbw66n3ukr'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '93wmh6h1aopfjocf2s8kkl9iq',
+ name: 'idx_permissions_key',
+ unique: false,
+ fieldIds: ['sh3cmr6v9jaz2pm7ukpcx4iak'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff9f74',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'c62p7n83ompn9ymxdh0ut37mi',
+ name: 'menu_items',
+ schema: 'public',
+ x: 497.69541925038357,
+ y: -235.9702338899092,
+ fields: [
+ {
+ id: 'x1gzyzjvmrlw2gmh558h6hxhm',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gsglpwpcyevzl3vcnvmcho8jc',
+ name: 'menu_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lb4uh4418dlcpd3on7dmbj3zj',
+ name: 'title',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lzc548ndcxf7n3act5pah4jon',
+ name: 'url',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'g7yzle7d88x8kqgi5f2nivx22',
+ name: 'target',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'p7i8qw0spw5ggpymcxb3etwt3',
+ name: 'icon_class',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iw1kjqplhig3th5dv72qmorq7',
+ name: 'color',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'luyjxkkpfj1eb8nrc5ieo50x9',
+ name: 'parent_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'eavsijaizz5hm2akhzsy4xoh9',
+ name: 'order',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's4p8359a244olmbv8dmqrn9xr',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kvot7ci3cqgo7qwz3g859l5ji',
+ name: 'updated_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'pvz42trdbrei5537gd27z6psu',
+ name: 'route',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'cbss6t90171xuo2xfh49ddvm9',
+ name: 'parameters',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'cln5s3hlbfze2hrm1fwi6y6xb',
+ name: 'idx_menu_items_menu_id',
+ unique: false,
+ fieldIds: ['gsglpwpcyevzl3vcnvmcho8jc'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ae7emzghpk7whst5w3jktff1j',
+ name: 'menu_items_pkey',
+ unique: true,
+ fieldIds: ['x1gzyzjvmrlw2gmh558h6hxhm'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'exu5d731v8jmor74nasx6dpni',
+ name: 'data_types',
+ schema: 'public',
+ x: 90.2956251067003,
+ y: 419.5156182409287,
+ fields: [
+ {
+ id: 'zr3susjaamb56ay6low3eka93',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'by4c86d10zgqguez74gzo7sw3',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '675we344y0vxmhpyomzndcox7',
+ name: 'slug',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0w91b60zwg1kk9kj5mjgvwagi',
+ name: 'display_name_singular',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '15soydn7izssn6ho1v5hkip4z',
+ name: 'display_name_plural',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0y0or7u890xjylqug0tb9m1nh',
+ name: 'icon',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '6eo7rpaen63me6mezohfqvvxn',
+ name: 'model_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uhou516pdoed62obfxsdhg3bv',
+ name: 'policy_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ne3gx0mfm00rk48e3629ek3yc',
+ name: 'controller',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i99cywl60whlvo0zsac2dczbk',
+ name: 'description',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7nwqa6hh2rq29c6h7zvh2ul88',
+ name: 'generate_permission',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bcmcus1ljz3grp4jnro9ffh59',
+ name: 'server_side',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'toamksw0ekr1wl4vd1cmgcjet',
+ name: 'details',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qaz8jxcd5t5n9otfal6a48328',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ruj36cnwovme0eojyb6m05xkc',
+ 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: 'rpt5p1taoqfxxn4000p63lpj8',
+ name: 'data_types_slug_key',
+ unique: true,
+ fieldIds: ['675we344y0vxmhpyomzndcox7'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '04s4lxz2n2y2np8w6stafylja',
+ name: 'idx_data_types_name',
+ unique: true,
+ fieldIds: ['by4c86d10zgqguez74gzo7sw3'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '2y0i81gkfwbneouaxp48c57iv',
+ name: 'data_types_name_key',
+ unique: true,
+ fieldIds: ['by4c86d10zgqguez74gzo7sw3'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 's5p0ftwy3g3dvxnq6w18p8l22',
+ name: 'idx_data_types_slug',
+ unique: true,
+ fieldIds: ['675we344y0vxmhpyomzndcox7'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'a0a4b5gyqdop9c3cuyi1eplot',
+ name: 'data_types_pkey',
+ unique: true,
+ fieldIds: ['zr3susjaamb56ay6low3eka93'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'fbbao0vu5gn930dgjq5ebiz41',
+ name: 'users',
+ schema: 'public',
+ x: 182.55909943131076,
+ y: -142.16126390324226,
+ fields: [
+ {
+ id: 'ly4plfmzl9fwrjo252de2uc7k',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l061cbgzdgi0iavknokc2uann',
+ name: 'avatar',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mnhar9293jk7irk8x8xsdh7ly',
+ name: 'role_id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'h0q07lo2qychbcnn5c046v6ni',
+ name: 'settings',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'rh4sgk03nq5aq59ivetp7f8eh',
+ name: 'idx_users_role_id',
+ unique: false,
+ fieldIds: ['mnhar9293jk7irk8x8xsdh7ly'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'l902fmigs8760r4rydgzroevt',
+ name: 'users_pkey',
+ unique: true,
+ fieldIds: ['ly4plfmzl9fwrjo252de2uc7k'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#c05dcf',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'nxflaeej0mdn9tze4pl8iy8ko',
+ name: 'data_rows',
+ schema: 'public',
+ x: -247.86521714388346,
+ y: 230.91957887470818,
+ fields: [
+ {
+ id: 'kj9r7d07e1ze1f8dlqmjdnfv6',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'kapwgrqerutf97j15kvjaxl8v',
+ name: 'data_type_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '72t3tligr6g6mwl8zajuzqn3p',
+ name: 'field',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qqrnhig6qaepbfgd90pgm6vcy',
+ name: 'type',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9p5r337v6p7bgf89g8pep807h',
+ name: 'display_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's92sgoxbr45t6mjmko05lwjh6',
+ name: 'required',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'j5s2fbduf0x9p65gncbkcocop',
+ name: 'browse',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 't1cjqs9dgahgbqjzftgeoot89',
+ name: 'read',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5eipgftbxz4bbau60u1pt9n06',
+ name: 'edit',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xr4k425k4jh8cto6as1qnkfks',
+ name: 'add',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uewbtb15t3yuy0lbp3umm1lym',
+ name: 'delete',
+ type: {
+ id: 'boolean',
+ name: 'boolean',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'qru8xx86q7b26nchrka4rvg0u',
+ name: 'details',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'e6g49vjqwagbitpf0by0pdbel',
+ name: 'order',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'd10yi680bhq2uk3961b916q41',
+ name: 'idx_data_rows_data_type_id',
+ unique: false,
+ fieldIds: ['kapwgrqerutf97j15kvjaxl8v'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wgkld0i1vjfdl2rh3399epjww',
+ name: 'data_rows_pkey',
+ unique: true,
+ fieldIds: ['kj9r7d07e1ze1f8dlqmjdnfv6'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ffe374',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vazin4dvcl07gkgurawm4xnc5',
+ name: 'roles',
+ schema: 'public',
+ x: 65.52545516961561,
+ y: 160.83743205361958,
+ fields: [
+ {
+ id: 'xku5gyx3lkv1u9vlbd3ci7u67',
+ name: 'id',
+ type: {
+ id: 'bigint',
+ name: 'bigint',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wt7kxvcosdruydjnj16r8628p',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'iqghlf4c3prpxxf8tpw64xxfe',
+ name: 'display_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '0awmbio5zo3ud4lxvyrqld11m',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'r64ukxh7bq47lm9ob5m6aslr5',
+ 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: 'qy6mrnixtjxcr107de53m23f6',
+ name: 'roles_pkey',
+ unique: true,
+ fieldIds: ['xku5gyx3lkv1u9vlbd3ci7u67'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#8a61f5',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vwu5ku8a490dysv9v1vsy12cy',
+ name: 'translations',
+ schema: 'public',
+ x: 1046.6697805455976,
+ y: 172.46066130794293,
+ fields: [
+ {
+ id: 'o0zxq6p741sgcpdrzws5c35vy',
+ name: 'id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ilxltnf8rq7ro3iw4j19u4bso',
+ name: 'table_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bjl0pqfhofuwejs156yy462xw',
+ name: 'column_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ey68xrpdm408ov3jpidygwl4q',
+ name: 'foreign_key',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'hkr9wdk18qvjbvvqe1h57u7el',
+ name: 'locale',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lma9ku3pafx70jtrc440glifv',
+ name: 'value',
+ type: {
+ id: 'text',
+ name: 'text',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 's3g8tia1iphxrp2iocunkwyy5',
+ name: 'created_at',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '5gahw9ck5hdcn5wq0jx49fu8a',
+ 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: 'c6l5p05rwgtryfzrd6t46a1sj',
+ name: 'idx_translations_table_name_column_name',
+ unique: false,
+ fieldIds: [
+ 'ilxltnf8rq7ro3iw4j19u4bso',
+ 'bjl0pqfhofuwejs156yy462xw',
+ ],
+ createdAt: Date.now(),
+ },
+ {
+ id: '6sq9dyw9cglkkseh0a1ksfnu2',
+ name: 'translations_pkey',
+ unique: true,
+ fieldIds: ['o0zxq6p741sgcpdrzws5c35vy'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ ],
+ relationships: [
+ {
+ id: '4ur68w80c0dmttu4x8mr71l5b',
+ name: 'user_roles_user_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '2sif2077lvh8lr2uo77yzyeii',
+ targetTableId: 'fbbao0vu5gn930dgjq5ebiz41',
+ sourceFieldId: 'thwx0iva7h3hgem71p6vtqyn6',
+ targetFieldId: 'ly4plfmzl9fwrjo252de2uc7k',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'lk6nm0cwsslxjrebylfor6auk',
+ name: 'permission_role_permission_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '1jirb68g3aetzfsc1tftibg0x',
+ targetTableId: 'bq1341mwagcb890tf14p7wino',
+ sourceFieldId: 'tlq836h9hxivb3yq5i77j69ef',
+ targetFieldId: 'l3l81z01opxlx1vrbw66n3ukr',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ml4s6i1ogu6ntqu3midcvk9ms',
+ name: 'permission_role_role_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '1jirb68g3aetzfsc1tftibg0x',
+ targetTableId: 'vazin4dvcl07gkgurawm4xnc5',
+ sourceFieldId: 'gp7pd9oxz8h28u5w79w08t7n6',
+ targetFieldId: 'xku5gyx3lkv1u9vlbd3ci7u67',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'tnyqlok1z1cyi1mqun1pt4frg',
+ name: 'data_rows_data_type_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'nxflaeej0mdn9tze4pl8iy8ko',
+ targetTableId: 'exu5d731v8jmor74nasx6dpni',
+ sourceFieldId: 'kapwgrqerutf97j15kvjaxl8v',
+ targetFieldId: 'zr3susjaamb56ay6low3eka93',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'vzh8yhr8hkgcox0be4f62rkeu',
+ name: 'menu_items_menu_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'c62p7n83ompn9ymxdh0ut37mi',
+ targetTableId: '3pw4sdxkql90vi5u7mvdoktob',
+ sourceFieldId: 'gsglpwpcyevzl3vcnvmcho8jc',
+ targetFieldId: 'c0bczfmzqu9k4cpzgov0lng6f',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'wlyxfd9i22aff0h5kl70ghubk',
+ name: 'user_roles_role_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: '2sif2077lvh8lr2uo77yzyeii',
+ targetTableId: 'vazin4dvcl07gkgurawm4xnc5',
+ sourceFieldId: '866cjoij6khkeii69jirrj2sr',
+ targetFieldId: 'xku5gyx3lkv1u9vlbd3ci7u67',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'xfnihczkwlr73a4xli7q14w7h',
+ name: 'menu_items_id_fk',
+ sourceSchema: 'public',
+ sourceTableId: 'c62p7n83ompn9ymxdh0ut37mi',
+ targetSchema: 'public',
+ targetTableId: 'c62p7n83ompn9ymxdh0ut37mi',
+ sourceFieldId: 'x1gzyzjvmrlw2gmh558h6hxhm',
+ targetFieldId: 'luyjxkkpfj1eb8nrc5ieo50x9',
+ sourceCardinality: 'one',
+ targetCardinality: 'many',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ytlc8os0kpjttaqo6wciiax4f',
+ name: 'users_role_id_fkey',
+ sourceSchema: 'public',
+ targetSchema: 'public',
+ sourceTableId: 'fbbao0vu5gn930dgjq5ebiz41',
+ targetTableId: 'vazin4dvcl07gkgurawm4xnc5',
+ sourceFieldId: 'mnhar9293jk7irk8x8xsdh7ly',
+ targetFieldId: 'xku5gyx3lkv1u9vlbd3ci7u67',
+ sourceCardinality: 'many',
+ targetCardinality: 'one',
+ createdAt: Date.now(),
+ },
+ ],
+ dependencies: [],
+ },
+};