Skip to content

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

feat(examples): update examples to have areas (#677)

Jonathan Fishner21c9129e1467
diff --git a/src/assets/examples/bike_stores_example.png b/src/assets/examples/bike_stores_example.png
index fbecddd1..f22bd299 100644
Binary files a/src/assets/examples/bike_stores_example.png and b/src/assets/examples/bike_stores_example.png differ
diff --git a/src/assets/examples/bike_stores_example_dark.png b/src/assets/examples/bike_stores_example_dark.png
index 44221e66..6cc72e3b 100644
Binary files a/src/assets/examples/bike_stores_example_dark.png and b/src/assets/examples/bike_stores_example_dark.png differ
diff --git a/src/assets/examples/dvd_rental_example.png b/src/assets/examples/dvd_rental_example.png
index fc44a2e5..e0c4baa9 100644
Binary files a/src/assets/examples/dvd_rental_example.png and b/src/assets/examples/dvd_rental_example.png differ
diff --git a/src/assets/examples/dvd_rental_example_dark.png b/src/assets/examples/dvd_rental_example_dark.png
index daf28f7a..b8c3a058 100644
Binary files a/src/assets/examples/dvd_rental_example_dark.png and b/src/assets/examples/dvd_rental_example_dark.png differ
diff --git a/src/assets/examples/employees_example.png b/src/assets/examples/employees_example.png
index d628782e..d47c1333 100644
Binary files a/src/assets/examples/employees_example.png and b/src/assets/examples/employees_example.png differ
diff --git a/src/assets/examples/employees_example_dark.png b/src/assets/examples/employees_example_dark.png
index 4c0092e5..ef87417c 100644
Binary files a/src/assets/examples/employees_example_dark.png and b/src/assets/examples/employees_example_dark.png differ
diff --git a/src/pages/examples-page/examples-data/examples-data.ts b/src/pages/examples-page/examples-data/examples-data.ts
index 5bcd6e0f..5f4875ce 100644
--- a/src/pages/examples-page/examples-data/examples-data.ts
+++ b/src/pages/examples-page/examples-data/examples-data.ts
@@ -25,81 +25,37 @@ export const examples: Example[] = [
image: EmployeeExample,
imageDark: EmployeeExampleDark,
diagram: {
- id: 'diagramexample01',
+ id: 'diagramexample03',
name: 'employees-db',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.MYSQL,
tables: [
{
- id: '6e70s6dhdfnve9xljbih6bo7x',
- name: 'departments',
- x: 488.2056573620456,
- y: -116.26128764468365,
- fields: [
- {
- id: 'gaj3scrtaz46ezfmc162ingxf',
- name: 'dept_no',
- type: { id: 'char', name: 'char' },
- primaryKey: true,
- unique: true,
- nullable: false,
- characterMaximumLength: '4',
- collation: 'utf8mb4_general_ci',
- createdAt: Date.now(),
- },
- {
- id: 'pb0j4xvevy9dics5euelx7ay9',
- name: 'dept_name',
- type: { id: 'varchar', name: 'varchar' },
- primaryKey: false,
- unique: true,
- nullable: false,
- characterMaximumLength: '40',
- collation: 'utf8mb4_general_ci',
- createdAt: Date.now(),
- },
- ],
- indexes: [
- {
- id: '87iu197demih0wymjooqm9dmh',
- name: 'dept_no',
- unique: true,
- fieldIds: ['gaj3scrtaz46ezfmc162ingxf'],
- createdAt: Date.now(),
- },
- {
- id: 'ltt6su8loqpf29ok7okzqblg2',
- name: 'dept_name',
- unique: true,
- fieldIds: ['pb0j4xvevy9dics5euelx7ay9'],
- createdAt: Date.now(),
- },
- ],
- color: '#b067e9',
- isView: false,
- isMaterializedView: false,
- createdAt: Date.now(),
- },
- {
- id: 'rkc38w1yqrvhz2pmveunp6nsw',
- name: 'dept_emp',
- x: 809.6786878331093,
- y: 13.918352368775231,
+ id: '0v5u6f9ut8se5m0v3ky84nvhr',
+ name: 'dept_manager',
+ x: 557.6896873390228,
+ y: 198.6124125064391,
fields: [
{
- id: 'wcgycjif09xrq0ly3txkq6ocu',
+ id: '2jhyignhl50o2ui6jo3gqr8dm',
name: 'emp_no',
- type: { id: 'int', name: 'int' },
+ type: {
+ id: 'int',
+ name: 'int',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'jdw1yrh9xf1i7927gzs9pob2p',
+ id: 't565329xzlimigp28iuzr04fh',
name: 'dept_no',
- type: { id: 'char', name: 'char' },
+ type: {
+ id: 'char',
+ name: 'char',
+ },
primaryKey: true,
unique: true,
nullable: false,
@@ -108,18 +64,24 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'm3zu12iy2jmfraliisks0rqcv',
+ id: 'rh1kertl9963xxnddmzl9l3r8',
name: 'from_date',
- type: { id: 'date', name: 'date' },
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'yq4k0bqt39aap0956aejicud4',
+ id: 'hxp5h407xy6w5vy30yfxr9sft',
name: 'to_date',
- type: { id: 'date', name: 'date' },
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
nullable: false,
@@ -128,166 +90,232 @@ export const examples: Example[] = [
],
indexes: [
{
- id: 'rqb91465yc51xpvd54o5a8d0l',
+ id: 'z1dww9ogjdxx3ydubvpynecgp',
name: 'emp_no',
unique: true,
- fieldIds: ['wcgycjif09xrq0ly3txkq6ocu'],
+ fieldIds: ['2jhyignhl50o2ui6jo3gqr8dm'],
createdAt: Date.now(),
},
{
- id: '8wh6op49abv143qdfjzm211xj',
+ id: 'lhe5ayrog61nrue2sg5xjcdhz',
name: 'dept_no',
unique: true,
- fieldIds: ['jdw1yrh9xf1i7927gzs9pob2p'],
+ fieldIds: ['t565329xzlimigp28iuzr04fh'],
createdAt: Date.now(),
},
{
- id: 'iw9hjbmuchq0jisgd8zb13qy6',
+ id: 'ztry38smm0oyc3fvjmp9rgcpj',
name: 'dept_no',
unique: false,
- fieldIds: ['jdw1yrh9xf1i7927gzs9pob2p'],
+ fieldIds: ['t565329xzlimigp28iuzr04fh'],
createdAt: Date.now(),
},
],
- color: '#8a61f5',
+ color: '#7175fa',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'd2xqiqlffjfsg3kgsmpck5xay',
- name: 'dept_manager',
- x: -248.93599999999998,
- y: -84.16474999999997,
+ id: '42lp0rp8nos43hvi9mwa02nil',
+ name: 'employees',
+ x: 75.63583762234259,
+ y: 19.062062532195426,
fields: [
{
- id: 'ecx2zbzdc5o54e04aeg7tlg54',
+ id: '7imy212cnnhkoz0ynvnf9djhs',
name: 'emp_no',
- type: { id: 'int', name: 'int' },
+ type: {
+ id: 'int',
+ name: 'int',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'v8plj7wq1cly03y178bysft2f',
- name: 'dept_no',
- type: { id: 'char', name: 'char' },
- primaryKey: true,
- unique: true,
+ id: 'mrym2eog3nvdbbrm196lvii3e',
+ name: 'birth_date',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
+ primaryKey: false,
+ unique: false,
nullable: false,
- characterMaximumLength: '4',
- collation: 'utf8mb4_general_ci',
createdAt: Date.now(),
},
{
- id: '3u0rfkvw0yokndqhfqx0nuzpi',
- name: 'from_date',
- type: { id: 'date', name: 'date' },
+ id: 'i7ye1fomuhonviuhygqicad5g',
+ name: 'first_name',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
primaryKey: false,
unique: false,
nullable: false,
+ characterMaximumLength: '14',
+ collation: 'utf8mb4_general_ci',
createdAt: Date.now(),
},
{
- id: 'xrcw2488t50shssn4vn3n6vad',
- name: 'to_date',
- type: { id: 'date', name: 'date' },
+ id: 'lmp584e9w7yndwhpfot692kod',
+ name: 'last_name',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
primaryKey: false,
unique: false,
nullable: false,
+ characterMaximumLength: '16',
+ collation: 'utf8mb4_general_ci',
createdAt: Date.now(),
},
- ],
- indexes: [
{
- id: 'cbahnbrxaaj7cg29act50izy4',
- name: 'emp_no',
- unique: true,
- fieldIds: ['ecx2zbzdc5o54e04aeg7tlg54'],
+ id: 'jaycd610pxfna312yy0zewslx',
+ name: 'gender',
+ type: {
+ id: 'enum',
+ name: 'enum',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ characterMaximumLength: '1',
+ collation: 'utf8mb4_general_ci',
createdAt: Date.now(),
},
{
- id: 'vgxv8rkf4890yf659o2oklffv',
- name: 'dept_no',
- unique: true,
- fieldIds: ['v8plj7wq1cly03y178bysft2f'],
+ id: 'i62ma6wzanh9yytgu0ka55nrg',
+ name: 'hire_date',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
createdAt: Date.now(),
},
+ ],
+ indexes: [
{
- id: '60gtoaq9vnwwbii97ks47ph82',
- name: 'dept_no',
- unique: false,
- fieldIds: ['v8plj7wq1cly03y178bysft2f'],
+ id: 'ps5xmxaldvzt4985n2kb7sqyz',
+ name: 'emp_no',
+ unique: true,
+ fieldIds: ['7imy212cnnhkoz0ynvnf9djhs'],
createdAt: Date.now(),
},
],
- color: '#ff6363',
+ color: '#4dee8a',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: '1c03hu41ko98myywerwbazeli',
- name: 'employees',
- x: 82.72000000000003,
- y: 98.27199999999999,
+ id: 'ih09a05rw3v1wdwr79r8teelq',
+ name: 'dept_emp_latest_date',
+ x: -202.8840877511243,
+ y: 558.3875874935609,
fields: [
{
- id: '04csyx8ds9t3rh93txiqs4dm4',
+ id: 'kw3xbpokomfjbhfxofsrmem1v',
name: 'emp_no',
- type: { id: 'int', name: 'int' },
- primaryKey: true,
- unique: true,
+ type: {
+ id: 'int',
+ name: 'int',
+ },
+ primaryKey: false,
+ unique: false,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'gnvcnj2i5jgktg7vauhveaorb',
- name: 'birth_date',
- type: { id: 'date', name: 'date' },
+ id: 'grnivrq1ac6zs0d83wbxsqcnw',
+ name: 'from_date',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
- nullable: false,
+ nullable: true,
createdAt: Date.now(),
},
{
- id: '8savn7ht0fogo4odxdhekrret',
- name: 'first_name',
- type: { id: 'varchar', name: 'varchar' },
+ id: 'rpqhjleo5xv20l9c8m2c292q3',
+ name: 'to_date',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [],
+ color: '#b067e9',
+ isView: true,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ width: 337,
+ },
+ {
+ id: 'irlzbe7hbbk0cajuzn03ggpj1',
+ name: 'dept_emp',
+ x: 553.5737750901473,
+ y: -20.278674729558468,
+ fields: [
+ {
+ id: '9ol727np1ejppctsu04g6u8wy',
+ name: 'emp_no',
+ type: {
+ id: 'int',
+ name: 'int',
+ },
+ primaryKey: true,
+ unique: true,
nullable: false,
- characterMaximumLength: '14',
- collation: 'utf8mb4_general_ci',
createdAt: Date.now(),
},
{
- id: 'ol8kezsspmjx25avlf2dvic5q',
- name: 'last_name',
- type: { id: 'varchar', name: 'varchar' },
- primaryKey: false,
- unique: false,
+ id: 'ogl1jeev8utkhd0d9ki2lcdig',
+ name: 'dept_no',
+ type: {
+ id: 'char',
+ name: 'char',
+ },
+ primaryKey: true,
+ unique: true,
nullable: false,
- characterMaximumLength: '16',
+ characterMaximumLength: '4',
collation: 'utf8mb4_general_ci',
createdAt: Date.now(),
},
{
- id: 'jga5lfkkoxueqslcljj2vng9q',
- name: 'gender',
- type: { id: 'enum', name: 'enum' },
+ id: 'd19d7qoxpj7l735puyd01elf9',
+ name: 'from_date',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
nullable: false,
- characterMaximumLength: '1',
- collation: 'utf8mb4_general_ci',
createdAt: Date.now(),
},
{
- id: 'i0kgsun3nzrjpaz8ykwjgogyb',
- name: 'hire_date',
- type: { id: 'date', name: 'date' },
+ id: '8s5mwet4cbwg7nvukg8ns51lo',
+ name: 'to_date',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
nullable: false,
@@ -296,64 +324,93 @@ export const examples: Example[] = [
],
indexes: [
{
- id: '8zg1ccoj4jb4kv6eleih38ni5',
+ id: 'ofupnhaghxggio7tfpro378sp',
name: 'emp_no',
unique: true,
- fieldIds: ['04csyx8ds9t3rh93txiqs4dm4'],
+ fieldIds: ['9ol727np1ejppctsu04g6u8wy'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '4acasluljq771tqibfc7zxxfz',
+ name: 'dept_no',
+ unique: true,
+ fieldIds: ['ogl1jeev8utkhd0d9ki2lcdig'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gtfoqzp6w3i8qnfvp87hfztaf',
+ name: 'dept_no',
+ unique: false,
+ fieldIds: ['ogl1jeev8utkhd0d9ki2lcdig'],
createdAt: Date.now(),
},
],
- color: '#4dee8a',
+ color: '#7175fa',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'u97myqcs1osilg7x0v263qpzd',
+ id: 'j9oi3glt3atr8wyli77fwxkvt',
name: 'salaries',
- x: 493.50755288021537,
- y: 227.8719999999999,
+ x: -267,
+ y: -120,
fields: [
{
- id: 'b8c9v5vtpbnt5tjzcd3iat85f',
+ id: '3vdlfomjyv59fx8sfo0un8our',
name: 'emp_no',
- type: { id: 'int', name: 'int' },
+ type: {
+ id: 'int',
+ name: 'int',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'n654h28i8yeeadznzht9mjc8f',
+ id: '5nl9xal0onxgmr55i9otob49i',
name: 'salary',
- type: { id: 'int', name: 'int' },
+ type: {
+ id: 'int',
+ name: 'int',
+ },
primaryKey: false,
unique: false,
nullable: false,
createdAt: Date.now(),
},
{
- id: '0s10erufqpl6y3hpqmvbcneol',
+ id: 'udcoj1mtmhvrujxsg9mtbs9nn',
name: 'from_date',
- type: { id: 'date', name: 'date' },
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'bwohji7dj67xpa6p5diyy6pis',
+ id: 'fwd9n15sxosfno618zok6d271',
name: 'to_date',
- type: { id: 'date', name: 'date' },
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'orkgizf8qbmtly3rw5cbxtc2i',
+ id: 'j68dufw81rshevpo1pa70f88g',
name: 'price',
- type: { id: 'decimal', name: 'decimal' },
+ type: {
+ id: 'decimal',
+ name: 'decimal',
+ },
primaryKey: false,
unique: false,
nullable: true,
@@ -365,118 +422,106 @@ export const examples: Example[] = [
],
indexes: [
{
- id: 'nky2wepp8yr5g6rzvnbta1hxb',
+ id: 'lwrffmcum0n71smamwzg35abh',
name: 'emp_no',
unique: true,
- fieldIds: ['b8c9v5vtpbnt5tjzcd3iat85f'],
+ fieldIds: ['3vdlfomjyv59fx8sfo0un8our'],
createdAt: Date.now(),
},
{
- id: 'w40nnsrsnlz7z7vycs4yf0s8d',
+ id: 'sbt0guv0fasl409w2uaem4de7',
name: 'from_date',
unique: true,
- fieldIds: ['0s10erufqpl6y3hpqmvbcneol'],
+ fieldIds: ['udcoj1mtmhvrujxsg9mtbs9nn'],
createdAt: Date.now(),
},
],
- color: '#ff6b8a',
+ color: '#4dee8a',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'fa0ozznyrckx572fqztyw3w4z',
- name: 'titles',
- x: -251.04799999999966,
- y: 220.9599999999999,
+ id: 'jcxfe2dk2ioeqnxgn0wt81yg7',
+ name: 'departments',
+ x: 1071,
+ y: 77.51171255795174,
fields: [
{
- id: 'hr2gdoc0wtwvs4pfqo6m0fwc3',
- name: 'emp_no',
- type: { id: 'int', name: 'int' },
- primaryKey: true,
- unique: true,
- nullable: false,
- createdAt: Date.now(),
- },
- {
- id: '5evr59tury66sayiu59esoc61',
- name: 'title',
- type: { id: 'varchar', name: 'varchar' },
+ id: '88cacbdeme4bkl9mjspyak67a',
+ name: 'dept_no',
+ type: {
+ id: 'char',
+ name: 'char',
+ },
primaryKey: true,
unique: true,
nullable: false,
- characterMaximumLength: '50',
+ characterMaximumLength: '4',
collation: 'utf8mb4_general_ci',
createdAt: Date.now(),
},
{
- id: '0vs1nqvrb6t53niz5ns2eskre',
- name: 'from_date',
- type: { id: 'date', name: 'date' },
- primaryKey: true,
+ id: 'zoaiijxv43lhgmlhidajykopu',
+ name: 'dept_name',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: false,
unique: true,
nullable: false,
- createdAt: Date.now(),
- },
- {
- id: 'n6csxwmdm60y920p5jovlx4c6',
- name: 'to_date',
- type: { id: 'date', name: 'date' },
- primaryKey: false,
- unique: false,
- nullable: true,
- default: 'NULL',
+ characterMaximumLength: '40',
+ collation: 'utf8mb4_general_ci',
createdAt: Date.now(),
},
],
indexes: [
{
- id: 'ijhmb7tq6i4fd72ndvotnwo45',
- name: 'emp_no',
- unique: true,
- fieldIds: ['hr2gdoc0wtwvs4pfqo6m0fwc3'],
- createdAt: Date.now(),
- },
- {
- id: 'wgneqfte0nq7d5vzed2hcqie6',
- name: 'title',
+ id: '5gidjryeumcqqdqgs6ovak7km',
+ name: 'dept_no',
unique: true,
- fieldIds: ['5evr59tury66sayiu59esoc61'],
+ fieldIds: ['88cacbdeme4bkl9mjspyak67a'],
createdAt: Date.now(),
},
{
- id: 'jbe9t9adhluqy8d3i7w1vgygd',
- name: 'from_date',
+ id: 'sc6tnwwz6k7zjyk29dqabhw57',
+ name: 'dept_name',
unique: true,
- fieldIds: ['0vs1nqvrb6t53niz5ns2eskre'],
+ fieldIds: ['zoaiijxv43lhgmlhidajykopu'],
createdAt: Date.now(),
},
],
- color: '#b067e9',
+ color: '#ff6363',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'gq5r3cuh74h1xzgzjmiu26t1e',
+ id: 'tyn4e3uh8gy6t4vad8lxymdvo',
name: 'current_dept_emp',
- x: 393.01599999999996,
- y: 488.65600000000006,
+ x: 178.69790015453802,
+ y: 524.8372375193172,
fields: [
{
- id: '8tz9jdtfrbbl4c0e7nthrj90g',
+ id: 'ig4pxvhw485x2b4zdb5955phg',
name: 'emp_no',
- type: { id: 'int', name: 'int' },
+ type: {
+ id: 'int',
+ name: 'int',
+ },
primaryKey: false,
unique: false,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'fv7o6txqvmy2349aq3pg0hnkm',
+ id: 'p69dh249cmuduy3ey41j852wt',
name: 'dept_no',
- type: { id: 'char', name: 'char' },
+ type: {
+ id: 'char',
+ name: 'char',
+ },
primaryKey: false,
unique: false,
nullable: false,
@@ -485,18 +530,24 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'hneqjqobdvcumv91ymvqhv42a',
+ id: 'u4xm33hvc9nxfqhxvfn9wxzf5',
name: 'from_date',
- type: { id: 'date', name: 'date' },
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: 'n9yj0xtw6uu0aqn2ankvniuat',
+ id: 'o2610vc45t7ckk3spzcevmwru',
name: 'to_date',
- type: { id: 'date', name: 'date' },
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
nullable: true,
@@ -504,126 +555,205 @@ export const examples: Example[] = [
},
],
indexes: [],
- color: '#b0b0b0',
+ color: '#b067e9',
isView: true,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'q248uisjcid20tdqfnbj5qec6',
- name: 'dept_emp_latest_date',
- x: 70.62399999999991,
- y: 469.6479999999999,
+ id: 'v34irxijeumu5jfjibgv495nj',
+ name: 'titles',
+ x: -251,
+ y: 220,
fields: [
{
- id: 'q3oiwd0p27bipsy4kg5dkxri0',
+ id: 'hiqth6r7y6cd03cy07mdr46za',
name: 'emp_no',
- type: { id: 'int', name: 'int' },
- primaryKey: false,
- unique: false,
+ type: {
+ id: 'int',
+ name: 'int',
+ },
+ primaryKey: true,
+ unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'dxhqoscu6zk87ob7sfvxo7if4',
- name: 'from_date',
- type: { id: 'date', name: 'date' },
- primaryKey: false,
- unique: false,
- nullable: true,
- createdAt: Date.now(),
- },
- {
- id: 'ys76pzey5i9twf13g2g0taju7',
- name: 'to_date',
- type: { id: 'date', name: 'date' },
+ id: 'lkil3ty0yx6ibygk0woqzthjg',
+ name: 'title',
+ type: {
+ id: 'varchar',
+ name: 'varchar',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ characterMaximumLength: '50',
+ collation: 'utf8mb4_general_ci',
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uc809iij5ykwvqh6f2h62wsng',
+ name: 'from_date',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
+ primaryKey: true,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'unk2di9t5cp2qt61x68ictil5',
+ name: 'to_date',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
nullable: true,
+ default: 'NULL',
createdAt: Date.now(),
},
],
- indexes: [],
- color: '#b0b0b0',
- isView: true,
+ indexes: [
+ {
+ id: 'tu97q24ogqstahsa7b5ye1vcq',
+ name: 'emp_no',
+ unique: true,
+ fieldIds: ['hiqth6r7y6cd03cy07mdr46za'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'mangaztv947jn1x440cxeh4u8',
+ name: 'title',
+ unique: true,
+ fieldIds: ['lkil3ty0yx6ibygk0woqzthjg'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '4mhewlev5wrrwgz0j4lfqeaxy',
+ name: 'from_date',
+ unique: true,
+ fieldIds: ['uc809iij5ykwvqh6f2h62wsng'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#4dee8a',
+ isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
],
relationships: [
{
- id: 'cciaonuhfnjdvntl9gv4lrsbk',
- name: 'dept_emp_ibfk_1',
- sourceTableId: 'rkc38w1yqrvhz2pmveunp6nsw',
- targetTableId: '1c03hu41ko98myywerwbazeli',
- sourceFieldId: 'wcgycjif09xrq0ly3txkq6ocu',
- targetFieldId: '04csyx8ds9t3rh93txiqs4dm4',
-
+ id: '333gtl2u9yhcpu8i2zzckcokw',
+ name: 'titles_ibfk_1',
+ sourceTableId: 'v34irxijeumu5jfjibgv495nj',
+ targetTableId: '42lp0rp8nos43hvi9mwa02nil',
+ sourceFieldId: 'hiqth6r7y6cd03cy07mdr46za',
+ targetFieldId: '7imy212cnnhkoz0ynvnf9djhs',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'b9y9q200df95qtzdi4lkeiw2w',
+ id: '3x7h57mfdbnhdhrf63ldkyezl',
name: 'dept_emp_ibfk_2',
- sourceTableId: 'rkc38w1yqrvhz2pmveunp6nsw',
- targetTableId: '6e70s6dhdfnve9xljbih6bo7x',
- sourceFieldId: 'jdw1yrh9xf1i7927gzs9pob2p',
- targetFieldId: 'gaj3scrtaz46ezfmc162ingxf',
-
+ sourceTableId: 'irlzbe7hbbk0cajuzn03ggpj1',
+ targetTableId: 'jcxfe2dk2ioeqnxgn0wt81yg7',
+ sourceFieldId: 'ogl1jeev8utkhd0d9ki2lcdig',
+ targetFieldId: '88cacbdeme4bkl9mjspyak67a',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'tt4jz3plk26zz3p8hvu3e4m27',
- name: 'dept_manager_ibfk_1',
- sourceTableId: 'd2xqiqlffjfsg3kgsmpck5xay',
- targetTableId: '1c03hu41ko98myywerwbazeli',
- sourceFieldId: 'ecx2zbzdc5o54e04aeg7tlg54',
- targetFieldId: '04csyx8ds9t3rh93txiqs4dm4',
-
+ id: 'dekaz2lgougsjw1c5cgoceo2i',
+ name: 'salaries_ibfk_1',
+ sourceTableId: 'j9oi3glt3atr8wyli77fwxkvt',
+ targetTableId: '42lp0rp8nos43hvi9mwa02nil',
+ sourceFieldId: '3vdlfomjyv59fx8sfo0un8our',
+ targetFieldId: '7imy212cnnhkoz0ynvnf9djhs',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'y3p9kp0rcfle3ivoe2owx7tu3',
- name: 'dept_manager_ibfk_2',
- sourceTableId: 'd2xqiqlffjfsg3kgsmpck5xay',
- targetTableId: '6e70s6dhdfnve9xljbih6bo7x',
- sourceFieldId: 'v8plj7wq1cly03y178bysft2f',
- targetFieldId: 'gaj3scrtaz46ezfmc162ingxf',
-
+ id: 'el0w7xenegliqptjdh7g0y98p',
+ name: 'dept_manager_ibfk_1',
+ sourceTableId: '0v5u6f9ut8se5m0v3ky84nvhr',
+ targetTableId: '42lp0rp8nos43hvi9mwa02nil',
+ sourceFieldId: '2jhyignhl50o2ui6jo3gqr8dm',
+ targetFieldId: '7imy212cnnhkoz0ynvnf9djhs',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'imavnkr77bjlanlaxj3og9fh6',
- name: 'salaries_ibfk_1',
- sourceTableId: 'u97myqcs1osilg7x0v263qpzd',
- targetTableId: '1c03hu41ko98myywerwbazeli',
- sourceFieldId: 'b8c9v5vtpbnt5tjzcd3iat85f',
- targetFieldId: '04csyx8ds9t3rh93txiqs4dm4',
-
+ id: 'pzylntli2tqyari2ycmrso355',
+ name: 'dept_emp_ibfk_1',
+ sourceTableId: 'irlzbe7hbbk0cajuzn03ggpj1',
+ targetTableId: '42lp0rp8nos43hvi9mwa02nil',
+ sourceFieldId: '9ol727np1ejppctsu04g6u8wy',
+ targetFieldId: '7imy212cnnhkoz0ynvnf9djhs',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'x4m88eqis6owszjfozerntmzt',
- name: 'titles_ibfk_1',
- sourceTableId: 'fa0ozznyrckx572fqztyw3w4z',
- targetTableId: '1c03hu41ko98myywerwbazeli',
- sourceFieldId: 'hr2gdoc0wtwvs4pfqo6m0fwc3',
- targetFieldId: '04csyx8ds9t3rh93txiqs4dm4',
-
+ id: 'w65slx46wuocr3jyw1167e906',
+ name: 'dept_manager_ibfk_2',
+ sourceTableId: '0v5u6f9ut8se5m0v3ky84nvhr',
+ targetTableId: 'jcxfe2dk2ioeqnxgn0wt81yg7',
+ sourceFieldId: 't565329xzlimigp28iuzr04fh',
+ targetFieldId: '88cacbdeme4bkl9mjspyak67a',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
],
+ dependencies: [],
+ areas: [
+ {
+ id: 'dx6spmeb8sklnvobmb5thjl6c',
+ name: 'Department Info',
+ x: 983.3008465847729,
+ y: -2.806121367657312,
+ width: 388,
+ height: 284,
+ color: '#ff6363',
+ },
+ {
+ id: 'e8wircz48u76we7tw5plx8pkr',
+ name: 'Current Status',
+ x: -307.5099582312877,
+ y: 479.9909168127539,
+ width: 778,
+ height: 252,
+ color: '#c05dcf',
+ },
+ {
+ id: 'ji4zoge706yo6qq4q0shxnxxz',
+ name: 'Employee Info',
+ x: -333.4589215867312,
+ y: -181.99524614662528,
+ width: 708,
+ height: 619,
+ color: '#8eb7ff',
+ },
+ {
+ id: 'r28u6h0cn9h8h9w83pco2ulej',
+ name: 'Dept-Emp Info',
+ x: 475.8612768935129,
+ y: -153.63415370064985,
+ width: 424,
+ height: 606,
+ color: '#ff9f74',
+ },
+ ],
},
},
{
@@ -634,29 +764,32 @@ export const examples: Example[] = [
image: BikeStoresExample,
imageDark: BikeStoresExampleDark,
diagram: {
- id: 'diagramexample02',
+ id: 'diagramexample03',
name: 'bike_stores-db',
createdAt: new Date(),
updatedAt: new Date(),
databaseType: DatabaseType.POSTGRESQL,
tables: [
{
- id: 'meqq3ly4klrjs9fc1d9s66msd',
+ id: '670reoxb6g8rvsgxnbtikxxbl',
name: 'brands',
- x: 668.008,
- y: 260.704,
+ x: 1394.728667830407,
+ y: 361.6670725797467,
fields: [
{
- id: '8vuje8jgqclyypvmeyud3ouq4',
+ id: 'jdox8nnjiavki6il4ynugsp2r',
name: 'brand_id',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'flh5ctnexia9lyglbkuyhxh95',
+ id: '38c4vqtl35ga4eggu7hkbcfx3',
name: 'brand_name',
type: {
id: 'character_varying',
@@ -670,35 +803,38 @@ export const examples: Example[] = [
],
indexes: [
{
- id: 'krb2wq85kdq15ln5wuc8995l5',
+ id: 'cq7bkwegshjpbt90xldwt3haq',
name: 'brands_pkey',
unique: true,
- fieldIds: ['8vuje8jgqclyypvmeyud3ouq4'],
+ fieldIds: ['jdox8nnjiavki6il4ynugsp2r'],
createdAt: Date.now(),
},
],
- color: '#8a61f5',
+ color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'gkpmaqlbh1ye2eiob45hfqcs9',
+ id: 'a5qrftvetg83ujanoizn8tny2',
name: 'categories',
- x: 182.79187747914773,
- y: 348.4095927710844,
+ x: 1391.3475899291334,
+ y: 643.413291363584,
fields: [
{
- id: '3y6v954bmnmrhsu88pegssisz',
+ id: 'nfadt1kp53zvjg82uamcshc6p',
name: 'category_id',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'vl9ulvujbutscyg2infgmglzt',
+ id: '6htpnkgq25w3i2oyr4hbe9goj',
name: 'category_name',
type: {
id: 'character_varying',
@@ -712,190 +848,143 @@ export const examples: Example[] = [
],
indexes: [
{
- id: '76pk9qk9vjcrzatysu5ejlvyf',
+ id: 'nekdae4u5kjqzsdyw1xgw26lw',
name: 'categories_pkey',
unique: true,
- fieldIds: ['3y6v954bmnmrhsu88pegssisz'],
+ fieldIds: ['nfadt1kp53zvjg82uamcshc6p'],
createdAt: Date.now(),
},
],
- color: '#4dee8a',
+ color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'ejeh9q8ea25j1g4ud9io5nsnx',
- name: 'customers',
- x: -133.71975495829474,
- y: 728.4726929796104,
+ id: 'cmu94c2uqhd53wxulug54hq38',
+ name: 'stocks',
+ x: 662.7541000002183,
+ y: 1017.6255054768152,
fields: [
{
- id: 'dtz6h71bnnnqqmc0gj4m7s4b2',
- name: 'customer_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'p4a9y5joxh9f77m1z2u3u3zvq',
+ name: 'store_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'fq6c72nmetvt5seuk8jgk05wn',
- name: 'first_name',
- type: {
- id: 'character_varying',
- name: 'character varying',
- },
- primaryKey: false,
- unique: false,
- nullable: true,
- createdAt: Date.now(),
- },
- {
- id: 'mfdk4z37kl5xbmfit19jo4dt8',
- name: 'last_name',
- type: {
- id: 'character_varying',
- name: 'character varying',
- },
- primaryKey: false,
- unique: false,
- nullable: true,
- createdAt: Date.now(),
- },
- {
- id: 'jki8n3ceyee7a5b54j59cis1p',
- name: 'phone',
- type: {
- id: 'character_varying',
- name: 'character varying',
- },
- primaryKey: false,
- unique: false,
- nullable: true,
- createdAt: Date.now(),
- },
- {
- id: 'ph08cg4s7kcr039ktrrvnd5vh',
- name: 'email',
- type: {
- id: 'character_varying',
- name: 'character varying',
- },
- primaryKey: false,
- unique: false,
- nullable: true,
- createdAt: Date.now(),
- },
- {
- id: 'kpg23k5h19ylb44nyjb6dk0f1',
- name: 'street',
- type: {
- id: 'character_varying',
- name: 'character varying',
- },
- primaryKey: false,
- unique: false,
- nullable: true,
- createdAt: Date.now(),
- },
- {
- id: 'xh1z8wlq5u956ymncg6076csu',
- name: 'city',
+ id: 'fuspl3bqd4e5tkaslfdfycq3e',
+ name: 'product_id',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'integer',
+ name: 'integer',
},
primaryKey: false,
- unique: false,
- nullable: true,
+ unique: true,
+ nullable: false,
createdAt: Date.now(),
},
{
- id: 'agxluhav42vjegabvqqmqj3ns',
- name: 'state',
+ id: '8jl2ql3lq58xs2f4fc26oezmv',
+ name: 'quantity',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'integer',
+ name: 'integer',
},
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
+ ],
+ indexes: [
{
- id: '3fbdl91memmf72k4lcd18jp5z',
- name: 'zip_code',
- type: {
- id: 'character_varying',
- name: 'character varying',
- },
- primaryKey: false,
- unique: false,
- nullable: true,
+ id: '1ayfy6nz637jxav3vf6v5rcjn',
+ name: 'stocks_pkey',
+ unique: true,
+ fieldIds: ['p4a9y5joxh9f77m1z2u3u3zvq'],
createdAt: Date.now(),
},
- ],
- indexes: [
{
- id: '1dvnhyc6lm8xnb0ehewsi5ywh',
- name: 'customers_pkey',
+ id: 'mzaqgi6s8ykml8pquo6xfyosh',
+ name: 'stocks_pkey',
unique: true,
- fieldIds: ['dtz6h71bnnnqqmc0gj4m7s4b2'],
+ fieldIds: ['fuspl3bqd4e5tkaslfdfycq3e'],
createdAt: Date.now(),
},
],
- color: '#7175fa',
+ color: '#ff6b8a',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: '755skfah1xvh833uo843e071u',
+ id: 'gff2gs4950o9yjcvumw9kdyhm',
name: 'order_items',
- x: 847.4799999999998,
- y: 804.2781249999998,
+ x: 651.9294006551768,
+ y: 433.28060402465775,
fields: [
{
- id: 'rwt3l7vgvcn2wez9z78xrne2e',
+ id: 'p64yzlmv68krpmav3vnq457sa',
name: 'order_id',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'vdet5tj4183tka3hjsk509a2u',
+ id: 'kbepxb6quw85u22e32gr7nksm',
name: 'item_id',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: false,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'axsoc31dhpdmwcpqhqhasv3cp',
+ id: 'd5vddbxei36fx12ejvs0h3qvu',
name: 'product_id',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: '074hvs58ube2jqfq0jwgsvewh',
+ id: '087y0wsjv2uepm21d31wkh2xf',
name: 'quantity',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: 'rym2i78wnwo269remsx7l0d8j',
+ id: '01paon6qttasknrt1w8u9kk8w',
name: 'list_price',
- type: { id: 'numeric', name: 'numeric' },
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
primaryKey: false,
unique: false,
nullable: true,
@@ -904,9 +993,12 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'ddki77nrt4273hzl0cxfb7866',
+ id: 'afy851qhl1x8to0w6r90dq6vs',
name: 'discount',
- type: { id: 'numeric', name: 'numeric' },
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
primaryKey: false,
unique: false,
nullable: true,
@@ -918,136 +1010,141 @@ export const examples: Example[] = [
],
indexes: [
{
- id: 's68ky41dut4yp64ycqh9i492h',
+ id: 'mlqxo50axkvgfpu8tvgi2x9q3',
name: 'order_items_pkey',
unique: true,
- fieldIds: ['rwt3l7vgvcn2wez9z78xrne2e'],
+ fieldIds: ['p64yzlmv68krpmav3vnq457sa'],
createdAt: Date.now(),
},
{
- id: '0rccnjdvlhj9pngn0vetmyzgr',
+ id: 'mbxg2wf13rs0bxaepj8iccel1',
name: 'order_items_pkey',
unique: true,
- fieldIds: ['vdet5tj4183tka3hjsk509a2u'],
+ fieldIds: ['kbepxb6quw85u22e32gr7nksm'],
createdAt: Date.now(),
},
],
- color: '#9ef07a',
+ color: '#8eb7ff',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'yu2ncqamkaipx5h6sl9fxfm92',
- name: 'orders',
- x: 258.9759999999999,
- y: 803.0563749999998,
+ id: 'lolzwhrbovoqc3z01e2ow74cr',
+ name: 'products',
+ x: 1091.698276835409,
+ y: 444.6722944615217,
fields: [
{
- id: 'tp12zsqygr6q3di3iie5c69q4',
- name: 'order_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'pp1z9gg74ivqg745qoivl8qrm',
+ name: 'product_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'hlpqy2hgujo7pnjthvz3hlp8l',
- name: 'customer_id',
- type: { id: 'integer', name: 'integer' },
- primaryKey: false,
- unique: false,
- nullable: true,
- createdAt: Date.now(),
- },
- {
- id: 'oa8h0um6s0tve41xtm6m5jy3i',
- name: 'order_status',
- type: { id: 'smallint', name: 'smallint' },
- primaryKey: false,
- unique: false,
- nullable: true,
- createdAt: Date.now(),
- },
- {
- id: 'sfyzron57mn04r93jbmaw9wrq',
- name: 'order_date',
- type: { id: 'date', name: 'date' },
+ id: 'zu4rui8eh40prjyi1gdkz11ef',
+ name: 'product_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: 'btv75he9gspes785kt2u50bid',
- name: 'required_date',
- type: { id: 'date', name: 'date' },
+ id: 'u9acmoo8ctx6pza49ovylai1s',
+ name: 'brand_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: 'ne3lgf7ye5xp01udfolax63bc',
- name: 'shipped_date',
- type: { id: 'date', name: 'date' },
+ id: 'c04v6tuqnegyom6ba6gh5ep64',
+ name: 'category_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: 'imvdw14raks3bmruzrom2m60a',
- name: 'store_id',
- type: { id: 'integer', name: 'integer' },
+ id: '7v8jketbpvtpmm8z7xneaony7',
+ name: 'model_year',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: '18qplj4qqrdm7gamk6dzo4jqj',
- name: 'staff_id',
- type: { id: 'integer', name: 'integer' },
+ id: '7d0buw6k3s3cjq715jonezpra',
+ name: 'list_price',
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
primaryKey: false,
unique: false,
nullable: true,
+ precision: 10,
+ scale: 2,
createdAt: Date.now(),
},
],
indexes: [
{
- id: 'odesldwon2bx6pe1w1d4p9gvc',
- name: 'orders_pkey',
+ id: 'pk5kpru83gz13ml4lgt35js4t',
+ name: 'products_pkey',
unique: true,
- fieldIds: ['tp12zsqygr6q3di3iie5c69q4'],
+ fieldIds: ['pp1z9gg74ivqg745qoivl8qrm'],
createdAt: Date.now(),
},
],
- color: '#4dee8a',
+ color: '#b067e9',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'bne5dz6bso1vq001e5up9ga8h',
- name: 'products',
- x: 1107.6639999999998,
- y: 350.98524999999995,
+ id: 'm23lw2snuvpvhgxbcb7ol7rd2',
+ name: 'staff',
+ x: -63.91318055866841,
+ y: 854.888845122481,
fields: [
{
- id: 'cb7jt8iz26dtyiepk55irq4wj',
- name: 'product_id',
- type: { id: 'integer', name: 'integer' },
+ id: '6fht054qctqmxfb1qfqkxt7p9',
+ name: 'staff_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'l9m1kia46un788eih3rwvqyd8',
- name: 'product_name',
+ id: 'tuaavynuktclavbwz4cokpbj1',
+ name: 'first_name',
type: {
id: 'character_varying',
name: 'character varying',
@@ -1058,79 +1155,116 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: '59bad3ogjluo7tr50id8m1s6n',
- name: 'brand_id',
- type: { id: 'integer', name: 'integer' },
+ id: 't70h7vdhdub1nsbbeoicrz7q4',
+ name: 'last_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: 'mo9o3q3fouk14i2095p381boh',
- name: 'category_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'mexhqhtnbw3i5sualbxb5fden',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: '21x76j5hy9pjcqu69l8sxma7c',
- name: 'model_year',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'itrvyvfcl497p80h1igot8pib',
+ name: 'phone',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: '9jjg1cdqk1ve28ycubjzl77pr',
- name: 'list_price',
- type: { id: 'numeric', name: 'numeric' },
+ id: 'rhc8avz6o474jmfdxm1he6yz5',
+ name: 'active',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'x0t8hac79viu9il07l4wfsu93',
+ name: 'store_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'uz9p9wyu5egjoh3a4qno3rwd6',
+ name: 'manager_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: false,
unique: false,
nullable: true,
- precision: 10,
- scale: 2,
createdAt: Date.now(),
},
],
indexes: [
{
- id: '74m0fax501235tpmcbj89me05',
- name: 'products_pkey',
+ id: '2yrbds32i4zee74y307pcmur4',
+ name: 'staff_pkey',
unique: true,
- fieldIds: ['cb7jt8iz26dtyiepk55irq4wj'],
+ fieldIds: ['6fht054qctqmxfb1qfqkxt7p9'],
createdAt: Date.now(),
},
],
- color: '#4dee8a',
+ color: '#ff6363',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: '96pa90b6estjx7i0edgu8nqe1',
- name: 'staff',
- x: 599.08,
- y: 512.8480000000001,
+ id: 'nhmv0a04rms91zfpvgheofs9p',
+ name: 'orders',
+ x: 364.309202433514,
+ y: 373.63360074877346,
fields: [
{
- id: 'e7kfdzkympiu6zdvpeurqxu6r',
- name: 'staff_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'wkni57dsr3mlfvn419xrl3yjh',
+ name: 'order_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'wlupay9dk1uiacpaban7o715i',
- name: 'first_name',
+ id: '4mboqizdb99mli0zpc0lbgf0x',
+ name: 'customer_id',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'integer',
+ name: 'integer',
},
primaryKey: false,
unique: false,
@@ -1138,11 +1272,11 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'fnp0z3ra5vxgb4wzquipq6nc4',
- name: 'last_name',
+ id: 'ovi91x7yjl86cjnwcyjxrqukg',
+ name: 'order_status',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'smallint',
+ name: 'smallint',
},
primaryKey: false,
unique: false,
@@ -1150,11 +1284,11 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'jbwdykfugbb1ds76q1rrdns06',
- name: 'email',
+ id: 'tzufwt75xfx6szi7smiqn2pen',
+ name: 'order_date',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'date',
+ name: 'date',
},
primaryKey: false,
unique: false,
@@ -1162,11 +1296,11 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'nai29esllni2z8scno83v42hj',
- name: 'phone',
+ id: 'zqat78rj8ap9chid6zfwkr8or',
+ name: 'required_date',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'date',
+ name: 'date',
},
primaryKey: false,
unique: false,
@@ -1174,27 +1308,36 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: '4lcsj6izwjoeu818c8thr7evv',
- name: 'active',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'nt13tnj4hz9tpsvo9jtfl9iu3',
+ name: 'shipped_date',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: '34hmbf7inkgziqht8m369759i',
+ id: 'm1jbg5l2ug5vjtoy6zjrlekk0',
name: 'store_id',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: 'c3escvz9sc03nczds7mlg9orc',
- name: 'manager_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'awsulsrytikpr6zig5cby0fbe',
+ name: 'staff_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: false,
unique: false,
nullable: true,
@@ -1203,90 +1346,167 @@ export const examples: Example[] = [
],
indexes: [
{
- id: '6ecq3ky7s4lp1kyymf7q27lk9',
- name: 'staff_pkey',
+ id: '0vqsfgj78zbmsct8pgf6pm47f',
+ name: 'orders_pkey',
unique: true,
- fieldIds: ['e7kfdzkympiu6zdvpeurqxu6r'],
+ fieldIds: ['wkni57dsr3mlfvn419xrl3yjh'],
createdAt: Date.now(),
},
],
- color: '#7175fa',
+ color: '#8eb7ff',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: '2hwntdtm83wqk9wbwjteo4n4a',
- name: 'stocks',
- x: -146.94658498609795,
- y: 240.26239518072288,
+ id: 'ski50jee1ua81y4gtplc3pyfm',
+ name: 'customers',
+ x: -98.40681700386897,
+ y: 400.38782401539135,
fields: [
{
- id: 'd40dt5g1thzuzndldviri2jxj',
- name: 'store_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'usyuityjgtecms1fq7l7156ej',
+ name: 'customer_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'bmyqo12d6gdgsn1239atxb4qn',
- name: 'product_id',
- type: { id: 'integer', name: 'integer' },
+ id: '0cobqs5h4l0aubfqesjwc2t73',
+ name: 'first_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
- unique: true,
- nullable: false,
+ unique: false,
+ nullable: true,
createdAt: Date.now(),
},
{
- id: 'dv8vw0cx3czqzrwnh6ltc8m81',
- name: 'quantity',
- type: { id: 'integer', name: 'integer' },
+ id: '50roeoexzrfjzz16in3clmzr5',
+ name: 'last_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
- ],
- indexes: [
{
- id: 'lyded2yia3fdz4l4m4jyj24tg',
- name: 'stocks_pkey',
- unique: true,
- fieldIds: ['d40dt5g1thzuzndldviri2jxj'],
+ id: '3hdlyyc2ece43w52qat5n57fc',
+ name: 'phone',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
createdAt: Date.now(),
},
{
- id: '7vvg7fnhy9vbpmj8w05n2f3ry',
- name: 'stocks_pkey',
+ id: 'qmtlh30vyukuj2qrew5wvrfs5',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zaoqju5csia54f48xymcaghtc',
+ name: 'street',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yzv6s9k1u2gnf0x988r8n2p0m',
+ name: 'city',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bnropvp4ukwv0t6gvhe4eonc9',
+ name: 'state',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: '7fjz2berdq0whe84205jdl1bt',
+ name: 'zip_code',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ ],
+ indexes: [
+ {
+ id: 'p8fsfh7op2s4chrat4ntjlnvo',
+ name: 'customers_pkey',
unique: true,
- fieldIds: ['bmyqo12d6gdgsn1239atxb4qn'],
+ fieldIds: ['usyuityjgtecms1fq7l7156ej'],
createdAt: Date.now(),
},
],
- color: '#c05dcf',
+ color: '#ffe374',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'ttye5mdap1hl200egtjuwzl9m',
+ id: 'un4bv3rw73vx96rn7jvkg3j9m',
name: 'stores',
- x: -132.385320111214,
- y: 412.5383278962002,
+ x: 348.6796556042351,
+ y: 865.2483907485604,
fields: [
{
- id: 'dsout0pmyihlkq72108vs6655',
+ id: 'dw6au3yuj8eme8elwc6deptdp',
name: 'store_id',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'evev1yq7p094mrn4falm4f0qt',
+ id: 'kmnwpwlgy3g6jtpkydbk9o7sy',
name: 'store_name',
type: {
id: 'character_varying',
@@ -1298,7 +1518,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'vfzwzq6x6lju968kypx4kma6d',
+ id: 'otid99xfcgk54yss7o1isghkr',
name: 'phone',
type: {
id: 'character_varying',
@@ -1310,7 +1530,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'nusy1gx426u5pkw87ct9fd6rf',
+ id: '5i9lrajzayno9u5tem61dyeug',
name: 'email',
type: {
id: 'character_varying',
@@ -1322,7 +1542,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'svg0ztdsgldnj03oa4nji73yv',
+ id: 'kwafnmy97n7iyngpa6qpm4pe4',
name: 'street',
type: {
id: 'character_varying',
@@ -1334,7 +1554,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'svrzlmenxv4rjrd5t1v73xxg9',
+ id: 'mbjwn4dufrxu9immg90rcmxvh',
name: 'city',
type: {
id: 'character_varying',
@@ -1346,7 +1566,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'v7ve5x0r5kphv84ylo5z14t2f',
+ id: '81u3amef1pbxuu03o0xicm2c3',
name: 'state',
type: {
id: 'character_varying',
@@ -1358,7 +1578,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: '2yk0ys92lzg21ywec5loo41f6',
+ id: '6n1uh4a15ljdb16wp7dp33p43',
name: 'zip_code',
type: {
id: 'character_varying',
@@ -1372,14 +1592,14 @@ export const examples: Example[] = [
],
indexes: [
{
- id: 'ndkrq0rue952nok9i8vlyrycj',
+ id: 'l663h0occkxclgwr3wzr1ebta',
name: 'stores_pkey',
unique: true,
- fieldIds: ['dsout0pmyihlkq72108vs6655'],
+ fieldIds: ['dw6au3yuj8eme8elwc6deptdp'],
createdAt: Date.now(),
},
],
- color: '#ff9f74',
+ color: '#ff6b8a',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
@@ -1387,126 +1607,155 @@ export const examples: Example[] = [
],
relationships: [
{
- id: 'vzelxec065qirwq76ux2mbgno',
- name: 'fk__order_ite__order__4ca06362',
- sourceTableId: '755skfah1xvh833uo843e071u',
- targetTableId: 'yu2ncqamkaipx5h6sl9fxfm92',
- sourceFieldId: 'rwt3l7vgvcn2wez9z78xrne2e',
- targetFieldId: 'tp12zsqygr6q3di3iie5c69q4',
-
+ id: '9hpqiz7di5w6acvug84lxv239',
+ name: 'fk__products__brand___3b75d760',
+ sourceTableId: 'lolzwhrbovoqc3z01e2ow74cr',
+ targetTableId: '670reoxb6g8rvsgxnbtikxxbl',
+ sourceFieldId: 'u9acmoo8ctx6pza49ovylai1s',
+ targetFieldId: 'jdox8nnjiavki6il4ynugsp2r',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'gr08kpn2z9w9szy6vwaaqg9f0',
- name: 'fk__order_ite__produ__4d94879b',
- sourceTableId: '755skfah1xvh833uo843e071u',
- targetTableId: 'bne5dz6bso1vq001e5up9ga8h',
- sourceFieldId: 'axsoc31dhpdmwcpqhqhasv3cp',
- targetFieldId: 'cb7jt8iz26dtyiepk55irq4wj',
-
+ id: 'cbnfoc2sfqb7hblv47sj8gws5',
+ name: 'fk__stocks__store_id__5070f446',
+ sourceTableId: 'cmu94c2uqhd53wxulug54hq38',
+ targetTableId: 'un4bv3rw73vx96rn7jvkg3j9m',
+ sourceFieldId: 'p4a9y5joxh9f77m1z2u3u3zvq',
+ targetFieldId: 'dw6au3yuj8eme8elwc6deptdp',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'pvlw5lf7dz69bf1v8izcpm3s5',
+ id: 'gl3zdj13cjt7dewddztr1mpif',
name: 'fk__orders__customer__46e78a0c',
- sourceTableId: 'yu2ncqamkaipx5h6sl9fxfm92',
- targetTableId: 'ejeh9q8ea25j1g4ud9io5nsnx',
- sourceFieldId: 'hlpqy2hgujo7pnjthvz3hlp8l',
- targetFieldId: 'dtz6h71bnnnqqmc0gj4m7s4b2',
-
+ sourceTableId: 'nhmv0a04rms91zfpvgheofs9p',
+ targetTableId: 'ski50jee1ua81y4gtplc3pyfm',
+ sourceFieldId: '4mboqizdb99mli0zpc0lbgf0x',
+ targetFieldId: 'usyuityjgtecms1fq7l7156ej',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'qxy305cjiahdf55uewls0ur1u',
- name: 'fk__orders__staff_id__48cfd27e',
- sourceTableId: 'yu2ncqamkaipx5h6sl9fxfm92',
- targetTableId: '96pa90b6estjx7i0edgu8nqe1',
- sourceFieldId: '18qplj4qqrdm7gamk6dzo4jqj',
- targetFieldId: 'e7kfdzkympiu6zdvpeurqxu6r',
-
+ id: 'guudpcytdecmcxpgj0b7roybh',
+ name: 'fk__stocks__product___5165187f',
+ sourceTableId: 'cmu94c2uqhd53wxulug54hq38',
+ targetTableId: 'lolzwhrbovoqc3z01e2ow74cr',
+ sourceFieldId: 'fuspl3bqd4e5tkaslfdfycq3e',
+ targetFieldId: 'pp1z9gg74ivqg745qoivl8qrm',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'i29tgq7wb2onv8szgrdjv8mu0',
- name: 'fk__orders__store_id__47dbae45',
- sourceTableId: 'yu2ncqamkaipx5h6sl9fxfm92',
- targetTableId: 'ttye5mdap1hl200egtjuwzl9m',
- sourceFieldId: 'imvdw14raks3bmruzrom2m60a',
- targetFieldId: 'dsout0pmyihlkq72108vs6655',
-
+ id: 'lvssf28solzcg1ai41c5p8h5i',
+ name: 'fk__products__catego__3a81b327',
+ sourceTableId: 'lolzwhrbovoqc3z01e2ow74cr',
+ targetTableId: 'a5qrftvetg83ujanoizn8tny2',
+ sourceFieldId: 'c04v6tuqnegyom6ba6gh5ep64',
+ targetFieldId: 'nfadt1kp53zvjg82uamcshc6p',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'idrrrigmlz783wikpu0krugmx',
- name: 'fk__products__brand___3b75d760',
- sourceTableId: 'bne5dz6bso1vq001e5up9ga8h',
- targetTableId: 'meqq3ly4klrjs9fc1d9s66msd',
- sourceFieldId: '59bad3ogjluo7tr50id8m1s6n',
- targetFieldId: '8vuje8jgqclyypvmeyud3ouq4',
-
+ id: 't1xzeu9mhl8kgi1774sntkx8i',
+ name: 'fk__order_ite__produ__4d94879b',
+ sourceTableId: 'gff2gs4950o9yjcvumw9kdyhm',
+ targetTableId: 'lolzwhrbovoqc3z01e2ow74cr',
+ sourceFieldId: 'd5vddbxei36fx12ejvs0h3qvu',
+ targetFieldId: 'pp1z9gg74ivqg745qoivl8qrm',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'ebageobv2ip826p00g9isje8i',
- name: 'fk__products__catego__3a81b327',
- sourceTableId: 'bne5dz6bso1vq001e5up9ga8h',
- targetTableId: 'gkpmaqlbh1ye2eiob45hfqcs9',
- sourceFieldId: 'mo9o3q3fouk14i2095p381boh',
- targetFieldId: '3y6v954bmnmrhsu88pegssisz',
-
+ id: 'tj1twywa2j0yyk5ngsc6a71kq',
+ name: 'fk__orders__store_id__47dbae45',
+ sourceTableId: 'nhmv0a04rms91zfpvgheofs9p',
+ targetTableId: 'un4bv3rw73vx96rn7jvkg3j9m',
+ sourceFieldId: 'm1jbg5l2ug5vjtoy6zjrlekk0',
+ targetFieldId: 'dw6au3yuj8eme8elwc6deptdp',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'kk3bm81cmxpwvrx04np6tqgml',
+ id: 'u0pr5i7ujvijx4kbcg9uztm82',
name: 'fk__staff__store_id__4316f928',
- sourceTableId: '96pa90b6estjx7i0edgu8nqe1',
- targetTableId: 'ttye5mdap1hl200egtjuwzl9m',
- sourceFieldId: '34hmbf7inkgziqht8m369759i',
- targetFieldId: 'dsout0pmyihlkq72108vs6655',
-
+ sourceTableId: 'm23lw2snuvpvhgxbcb7ol7rd2',
+ targetTableId: 'un4bv3rw73vx96rn7jvkg3j9m',
+ sourceFieldId: 'x0t8hac79viu9il07l4wfsu93',
+ targetFieldId: 'dw6au3yuj8eme8elwc6deptdp',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'rh3m4hs1tdyvid7s4g1aqklxi',
- name: 'fk__stocks__product___5165187f',
- sourceTableId: '2hwntdtm83wqk9wbwjteo4n4a',
- targetTableId: 'bne5dz6bso1vq001e5up9ga8h',
- sourceFieldId: 'bmyqo12d6gdgsn1239atxb4qn',
- targetFieldId: 'cb7jt8iz26dtyiepk55irq4wj',
-
+ id: 'ueh4l3exliz1yd51o80hjhjui',
+ name: 'fk__orders__staff_id__48cfd27e',
+ sourceTableId: 'nhmv0a04rms91zfpvgheofs9p',
+ targetTableId: 'm23lw2snuvpvhgxbcb7ol7rd2',
+ sourceFieldId: 'awsulsrytikpr6zig5cby0fbe',
+ targetFieldId: '6fht054qctqmxfb1qfqkxt7p9',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'zjjce43idrgqv3jamapvkxpfp',
- name: 'fk__stocks__store_id__5070f446',
- sourceTableId: '2hwntdtm83wqk9wbwjteo4n4a',
- targetTableId: 'ttye5mdap1hl200egtjuwzl9m',
- sourceFieldId: 'd40dt5g1thzuzndldviri2jxj',
- targetFieldId: 'dsout0pmyihlkq72108vs6655',
-
+ id: 'v6mk8aebazx7f52fayrgmf6iw',
+ name: 'fk__order_ite__order__4ca06362',
+ sourceTableId: 'gff2gs4950o9yjcvumw9kdyhm',
+ targetTableId: 'nhmv0a04rms91zfpvgheofs9p',
+ sourceFieldId: 'p64yzlmv68krpmav3vnq457sa',
+ targetFieldId: 'wkni57dsr3mlfvn419xrl3yjh',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
],
+ dependencies: [],
+ areas: [
+ {
+ id: 'a5fbljzmsx2bvhejcxbr31fq7',
+ name: 'Store & Stock',
+ x: -119.89592188151653,
+ y: 781.3936659473771,
+ width: 1044,
+ height: 404,
+ color: '#7175fa',
+ },
+ {
+ id: 'd26fo9yv1781pgacukphawdys',
+ name: 'Product Info',
+ x: 1053.5812520979289,
+ y: 259.6474958332114,
+ width: 599,
+ height: 566,
+ color: '#9ef07a',
+ },
+ {
+ id: 'm0n67kk1ccrbqz9galbr3v13a',
+ name: 'Order Management',
+ x: 267.70789589037787,
+ y: 296.38763559214476,
+ width: 649,
+ height: 407,
+ color: '#ff6b8a',
+ },
+ {
+ id: 'v09b1onoeiw6ytpcln1xcdp1t',
+ name: 'Customer Info',
+ x: -140,
+ y: 280,
+ width: 352,
+ height: 475,
+ color: '#ffe374',
+ },
+ ],
},
},
{
@@ -1524,23 +1773,26 @@ export const examples: Example[] = [
databaseType: DatabaseType.POSTGRESQL,
tables: [
{
- id: 'fsqbyg9qles1fl937pizwve95',
- name: 'actor',
- x: -230.40983939824048,
- y: 479.3344610354799,
+ id: '34yt1qc2aa0ry1xlfff635xpi',
+ name: 'staff',
+ x: -731.3101077132125,
+ y: -212.82662114388555,
fields: [
{
- id: 'xqx13khvb9m0vzfepcycizcai',
- name: 'actor_id',
- type: { id: 'integer', name: 'integer' },
+ id: '54i12h4z3uodcr72i1qcfr3ks',
+ name: 'staff_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
- default: "nextval('actor_actor_id_seq'::regclass)",
+ default: "nextval('staff_staff_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'ik43za355bfu8v4f675ghg6rh',
+ id: 's1xlc5ncssu6jmxyv83bjw7gx',
name: 'first_name',
type: {
id: 'character_varying',
@@ -1553,7 +1805,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'klzwtogtkw2vdwyx8t6kjfiw3',
+ id: 'eqqhj70cyyxddwm1ujtq1pa89',
name: 'last_name',
type: {
id: 'character_varying',
@@ -1566,108 +1818,71 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: '8imotb3e7k9ad9bdm1q3yt1j7',
- name: 'last_update',
+ id: 'uhl87fgu2gxu18c7jj7a9lnz4',
+ name: 'address_id',
type: {
- id: 'timestamp_without_time_zone',
- name: 'timestamp without time zone',
+ id: 'smallint',
+ name: 'smallint',
},
primaryKey: false,
unique: false,
nullable: false,
- default: 'now()',
- createdAt: Date.now(),
- },
- ],
- indexes: [
- {
- id: 'fs2vnbd6p7arn8rwt4nnnzfo9',
- name: 'idx_actor_last_name',
- unique: false,
- fieldIds: ['klzwtogtkw2vdwyx8t6kjfiw3'],
- createdAt: Date.now(),
- },
- {
- id: 'ht48c80me7h425g278v63w2wz',
- name: 'actor_pkey',
- unique: true,
- fieldIds: ['xqx13khvb9m0vzfepcycizcai'],
- createdAt: Date.now(),
- },
- ],
- color: '#4dee8a',
- isView: false,
- isMaterializedView: false,
- createdAt: Date.now(),
- },
- {
- id: '6zd90tcbey5t4s8robbviqus8',
- name: 'address',
- x: 95.60771046641412,
- y: 378.91038538270215,
- fields: [
- {
- id: 'b0iylw1gbvp09vtpxdcs8d3zn',
- name: 'address_id',
- type: { id: 'integer', name: 'integer' },
- primaryKey: true,
- unique: true,
- nullable: false,
- default:
- "nextval('address_address_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'cldpviw1aa57zal77agjfum71',
- name: 'address',
+ id: '6hpgqyqicnbrcgb4vxx562b5y',
+ name: 'email',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
- nullable: false,
+ nullable: true,
characterMaximumLength: '50',
createdAt: Date.now(),
},
{
- id: 'gzj8gb1css76cmxcb60evcymq',
- name: 'address2',
+ id: 'yc86xzpcfw61uotgd8ocg7u0h',
+ name: 'store_id',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'smallint',
+ name: 'smallint',
},
primaryKey: false,
unique: false,
- nullable: true,
- characterMaximumLength: '50',
+ nullable: false,
createdAt: Date.now(),
},
{
- id: '4neowl7rc20n7nriu09izvqqc',
- name: 'district',
+ id: '286y7goo0xhazns6v7lfsyv0l',
+ name: 'active',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'boolean',
+ name: 'boolean',
},
primaryKey: false,
unique: false,
nullable: false,
- characterMaximumLength: '20',
+ default: 'true',
createdAt: Date.now(),
},
{
- id: 'qjibly41tvbgo8icl3hndguwv',
- name: 'city_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'lnacynot0n8g8sqxv2n9jrngh',
+ name: 'username',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
nullable: false,
+ characterMaximumLength: '16',
createdAt: Date.now(),
},
{
- id: '7pc5yulufvcsuacmptq4qdd53',
- name: 'postal_code',
+ id: '4iv9rloc60nsg5ngjcl3jx783',
+ name: 'password',
type: {
id: 'character_varying',
name: 'character varying',
@@ -1675,49 +1890,41 @@ export const examples: Example[] = [
primaryKey: false,
unique: false,
nullable: true,
- characterMaximumLength: '10',
+ characterMaximumLength: '40',
createdAt: Date.now(),
},
{
- id: '3ls3f1bxs4rv54lskwe7n2nnv',
- name: 'phone',
+ id: '4x5w6xro2kexc7arddeqk09g9',
+ name: 'last_update',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
},
primaryKey: false,
unique: false,
nullable: false,
- characterMaximumLength: '20',
+ default: 'now()',
createdAt: Date.now(),
},
{
- id: 'v83ii1uivhk0n4p88nihbjv5b',
- name: 'last_update',
+ id: 'ejhfuxg4qr8yfemjwgk3zivmv',
+ name: 'picture',
type: {
- id: 'timestamp_without_time_zone',
- name: 'timestamp without time zone',
+ id: 'bytea',
+ name: 'bytea',
},
primaryKey: false,
unique: false,
- nullable: false,
- default: 'now()',
+ nullable: true,
createdAt: Date.now(),
},
],
indexes: [
{
- id: 'xsmxjk5vk4e26e46ypt9o3j59',
- name: 'address_pkey',
+ id: 'ycal57bnptf8u1hr8m8ohq0px',
+ name: 'staff_pkey',
unique: true,
- fieldIds: ['b0iylw1gbvp09vtpxdcs8d3zn'],
- createdAt: Date.now(),
- },
- {
- id: '7tk36ne2exp1dwrt1zj5052fx',
- name: 'idx_fk_city_id',
- unique: false,
- fieldIds: ['qjibly41tvbgo8icl3hndguwv'],
+ fieldIds: ['54i12h4z3uodcr72i1qcfr3ks'],
createdAt: Date.now(),
},
],
@@ -1727,37 +1934,37 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: '4pxqynu5v3vugzy12sfh4ozvu',
- name: 'category',
- x: 971.7954244648793,
- y: 676.4289805326614,
+ id: '3xlkv9xztz29x0bgrw5nrzf3t',
+ name: 'film_category',
+ x: 66.82521602202738,
+ y: 1164.3379709100898,
fields: [
{
- id: 'dhacvdae20ms5wc3inljozrz2',
- name: 'category_id',
- type: { id: 'integer', name: 'integer' },
+ id: '0y1h3uwzkcyyaeesbyr7uiam2',
+ name: 'film_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: true,
unique: true,
nullable: false,
- default:
- "nextval('category_category_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'sm5uluh5x4787xoko5q6mmhdp',
- name: 'name',
+ id: 'rt6bj37fpip85o17q505xeras',
+ name: 'category_id',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'smallint',
+ name: 'smallint',
},
primaryKey: false,
- unique: false,
+ unique: true,
nullable: false,
- characterMaximumLength: '25',
createdAt: Date.now(),
},
{
- id: '65vp8zp821127857yezwio7jq',
+ id: '8ajtbcyiso1wm7ybkk1s6gaku',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -1772,10 +1979,17 @@ export const examples: Example[] = [
],
indexes: [
{
- id: '1dqpjhhupzz6w8ith5sje6s5h',
- name: 'category_pkey',
+ id: 'ot1p1a379nnx0b6qdjdhbypwp',
+ name: 'film_category_pkey',
+ unique: true,
+ fieldIds: ['rt6bj37fpip85o17q505xeras'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'y534dwkyo7tee5kez2tlvfu3l',
+ name: 'film_category_pkey',
unique: true,
- fieldIds: ['dhacvdae20ms5wc3inljozrz2'],
+ fieldIds: ['0y1h3uwzkcyyaeesbyr7uiam2'],
createdAt: Date.now(),
},
],
@@ -1785,45 +1999,37 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'l908eu1k0odh5u4mq6ge61udi',
- name: 'city',
- x: 447.23808020530305,
- y: 843.0068735482081,
+ id: 'btxa10fqejctzsz9y22z93dto',
+ name: 'film_actor',
+ x: 361.01126789702414,
+ y: 461.42942416437415,
fields: [
{
- id: 'ozcebtrmnoar9spk7jq4b2gfz',
- name: 'city_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'qv45deuvh3ztz277pnptifai5',
+ name: 'actor_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: true,
unique: true,
nullable: false,
- default: "nextval('city_city_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'trxo61qtmeooaad55kyxnisqm',
- name: 'city',
+ id: 'mes2rjjt47i1qj8qgy9xtt2sd',
+ name: 'film_id',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'smallint',
+ name: 'smallint',
},
primaryKey: false,
- unique: false,
- nullable: false,
- characterMaximumLength: '50',
- createdAt: Date.now(),
- },
- {
- id: 'lup9lgn5haghenay268urdr2v',
- name: 'country_id',
- type: { id: 'smallint', name: 'smallint' },
- primaryKey: false,
- unique: false,
+ unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'mr8xwe32ytcbqkh5ujc5mq7o8',
+ id: 'qkxjgbuq7dcpnvyax0c7cj92s',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -1838,17 +2044,24 @@ export const examples: Example[] = [
],
indexes: [
{
- id: 'p3oqwg5xmam3env0spfii3ayj',
- name: 'idx_fk_country_id',
+ id: 'grflheiixkrg55o4r5klwdfki',
+ name: 'film_actor_pkey',
+ unique: true,
+ fieldIds: ['qv45deuvh3ztz277pnptifai5'],
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zen76thitkd6wtotwgjwe91vm',
+ name: 'idx_fk_film_id',
unique: false,
- fieldIds: ['lup9lgn5haghenay268urdr2v'],
+ fieldIds: ['mes2rjjt47i1qj8qgy9xtt2sd'],
createdAt: Date.now(),
},
{
- id: 'mqmsium8yab2yl4veo0g3myh5',
- name: 'city_pkey',
+ id: 'wubhwftcrqcrzfsmemgxevrha',
+ name: 'film_actor_pkey',
unique: true,
- fieldIds: ['ozcebtrmnoar9spk7jq4b2gfz'],
+ fieldIds: ['mes2rjjt47i1qj8qgy9xtt2sd'],
createdAt: Date.now(),
},
],
@@ -1858,15 +2071,18 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: '1tzllhzmb8tkgafbmcguqf5vn',
+ id: 'cq7xhw34n8yos6oo6j0ri8lqq',
name: 'country',
- x: 862.6623456852019,
- y: 906.4240231670566,
+ x: -367.22430798395044,
+ y: 589.6264253807967,
fields: [
{
- id: 'jh3rnowvtvmu4qwbjn8s2wjnv',
+ id: 'x773jd75qcqg9ajiyl29bjggo',
name: 'country_id',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
@@ -1875,7 +2091,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'ttugkudyxkpkg2frv2zd0dp7h',
+ id: 'gnw6a7ykjx9mp9vzjg1voj2g8',
name: 'country',
type: {
id: 'character_varying',
@@ -1888,7 +2104,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'rrz88qc7tcunmvhephk32lp9x',
+ id: 'wods540u7p30b17ji1ypzq11z',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -1903,47 +2119,41 @@ export const examples: Example[] = [
],
indexes: [
{
- id: 'xay09hwtgeuehf0bhpo4bk5uh',
+ id: 'zw1cemwd22dmka9n5s7kyhe7y',
name: 'country_pkey',
unique: true,
- fieldIds: ['jh3rnowvtvmu4qwbjn8s2wjnv'],
+ fieldIds: ['x773jd75qcqg9ajiyl29bjggo'],
createdAt: Date.now(),
},
],
- color: '#c05dcf',
+ color: '#ff6363',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'v5c8d2z2r7czjjb6yqfhrzca7',
- name: 'customer',
- x: -222.69179435527712,
- y: -133.6900980855134,
+ id: 'ea4vdndmk0mzj37pxmnbnng6x',
+ name: 'address',
+ x: -636.7645743169105,
+ y: 462.9917166782857,
fields: [
{
- id: '5as8lm61s6t2u9chbixfeyrmd',
- name: 'customer_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'i6qxuuf9xst3t7rc699nc0hgq',
+ name: 'address_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
default:
- "nextval('customer_customer_id_seq'::regclass)",
- createdAt: Date.now(),
- },
- {
- id: 'ech331glim64ped91syweyley',
- name: 'store_id',
- type: { id: 'smallint', name: 'smallint' },
- primaryKey: false,
- unique: false,
- nullable: false,
+ "nextval('address_address_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'zn000ibftpvgu19ri5mbaip9u',
- name: 'first_name',
+ id: 'f5fgkdieedc4b3d0sfev8fejc',
+ name: 'address',
type: {
id: 'character_varying',
name: 'character varying',
@@ -1951,66 +2161,75 @@ export const examples: Example[] = [
primaryKey: false,
unique: false,
nullable: false,
- characterMaximumLength: '45',
+ characterMaximumLength: '50',
createdAt: Date.now(),
},
{
- id: 'qe33c9dizsmkfzw8y4pzz19gp',
- name: 'last_name',
+ id: 'noo5497gxwm4l17ya3wh8dmz5',
+ name: 'address2',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
- nullable: false,
- characterMaximumLength: '45',
+ nullable: true,
+ characterMaximumLength: '50',
createdAt: Date.now(),
},
{
- id: 'cirbtorx4rxki2ivi7seiolls',
- name: 'email',
+ id: '48jx2ug65pbcz3w9fi1p2x217',
+ name: 'district',
type: {
id: 'character_varying',
name: 'character varying',
},
primaryKey: false,
unique: false,
- nullable: true,
- characterMaximumLength: '50',
+ nullable: false,
+ characterMaximumLength: '20',
createdAt: Date.now(),
},
{
- id: 'clgb7yp0y3r7v2bs9vvz2i1g8',
- name: 'address_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'jfavtmtso40cwyhe09f7i1753',
+ name: 'city_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: false,
unique: false,
nullable: false,
createdAt: Date.now(),
},
{
- id: '86tvy4ffhbb5pd0e4id6h6j4a',
- name: 'activebool',
- type: { id: 'boolean', name: 'boolean' },
+ id: 's98qjvoi5ffboyst6fmr8u995',
+ name: 'postal_code',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
- nullable: false,
- default: 'true',
+ nullable: true,
+ characterMaximumLength: '10',
createdAt: Date.now(),
},
{
- id: 'xpnedj3gh30ve8w61yp9j9q08',
- name: 'create_date',
- type: { id: 'date', name: 'date' },
+ id: '1ktbczifaj2ggzbkbuigs2f0c',
+ name: 'phone',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
nullable: false,
- default: "('now'::text)::date",
+ characterMaximumLength: '20',
createdAt: Date.now(),
},
{
- id: '3sev3dleonsle0jy2vjca8fsv',
+ id: 'pm7kl015bgbfvr0hy76ueu1qn',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -2018,65 +2237,45 @@ export const examples: Example[] = [
},
primaryKey: false,
unique: false,
- nullable: true,
+ nullable: false,
default: 'now()',
createdAt: Date.now(),
},
- {
- id: 'qgdyz8n4mzdgd4e337q0rl8ib',
- name: 'active',
- type: { id: 'integer', name: 'integer' },
- primaryKey: false,
- unique: false,
- nullable: true,
- createdAt: Date.now(),
- },
],
indexes: [
{
- id: 'l6e8hwg0443hz7azwgtbk74fu',
- name: 'idx_fk_store_id',
- unique: false,
- fieldIds: ['ech331glim64ped91syweyley'],
- createdAt: Date.now(),
- },
- {
- id: 'ra7o1c43nvgly9ptc7a15ard2',
- name: 'customer_pkey',
+ id: 'zhxnuguyh3iehb1myf13ld5ha',
+ name: 'address_pkey',
unique: true,
- fieldIds: ['5as8lm61s6t2u9chbixfeyrmd'],
- createdAt: Date.now(),
- },
- {
- id: '242d0nfw3fxebye3nvryeh7k4',
- name: 'idx_last_name',
- unique: false,
- fieldIds: ['qe33c9dizsmkfzw8y4pzz19gp'],
+ fieldIds: ['i6qxuuf9xst3t7rc699nc0hgq'],
createdAt: Date.now(),
},
{
- id: 'war2i43ysqjdzpjufhhgay6x7',
- name: 'idx_fk_address_id',
+ id: 'bwc2yssarsfc7wwnecn7smh0z',
+ name: 'idx_fk_city_id',
unique: false,
- fieldIds: ['clgb7yp0y3r7v2bs9vvz2i1g8'],
+ fieldIds: ['jfavtmtso40cwyhe09f7i1753'],
createdAt: Date.now(),
},
],
- color: '#8a61f5',
+ color: '#ff6363',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'e31vevdt598z8mpv13egvkjnj',
+ id: 'ernqqm8aiy3d8k2ljq35h1vwx',
name: 'film',
- x: 566.8187258202024,
- y: 314.30426726271173,
+ x: 419.46255745123165,
+ y: 733.0970856894776,
fields: [
{
- id: '9p7plypt0h2pi24sd1maglln2',
+ id: '66dmeakl4z56mljzwgvttodic',
name: 'film_id',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
@@ -2084,7 +2283,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'xou2sc3iqfl1dgd4st13vc7sg',
+ id: 'uiblxhw1gvfndhmy4jwxwrlcn',
name: 'title',
type: {
id: 'character_varying',
@@ -2097,36 +2296,48 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'abziwxx42f2vrqpdad0elu7o1',
+ id: 'ufgspotxz5v34ytwi9hk84txv',
name: 'description',
- type: { id: 'text', name: 'text' },
+ type: {
+ id: 'text',
+ name: 'text',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: '3ajcx2r2oiow6kwho1way2128',
+ id: 'aaxe3h4jvhqaeywx5bjicstxy',
name: 'release_year',
- type: { id: 'integer', name: 'integer' },
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: '6f0itpcv12zrs47p7ipwokear',
+ id: '84sf02yyd4hdvz4d01knzbmhk',
name: 'language_id',
- type: { id: 'smallint', name: 'smallint' },
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: false,
unique: false,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'ag5jstimbr5u5g1ldv2hl6x0g',
+ id: 'qv4lmue1plykh5fow912ncs8m',
name: 'rental_duration',
- type: { id: 'smallint', name: 'smallint' },
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: false,
unique: false,
nullable: false,
@@ -2134,9 +2345,12 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'ne3v1atnvtg0893em3pixtpa6',
+ id: '2e6px066xtpoga3ny7d4sq7i0',
name: 'rental_rate',
- type: { id: 'numeric', name: 'numeric' },
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
primaryKey: false,
unique: false,
nullable: false,
@@ -2146,18 +2360,24 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'tz8mggxsxu3hehscd5qm1qsrj',
+ id: 'cszo7g1d7wflm794muuvx4qdq',
name: 'length',
- type: { id: 'smallint', name: 'smallint' },
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: 'e57b7z15iro655qi5omyr6f5k',
+ id: 'ts4y3qvev2kdpgriv05ln4cs1',
name: 'replacement_cost',
- type: { id: 'numeric', name: 'numeric' },
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
primaryKey: false,
unique: false,
nullable: false,
@@ -2167,9 +2387,12 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'kx70sye1cc8t19vy17nherzf3',
+ id: 'buqu91gxipahcmffek3rqje5v',
name: 'rating',
- type: { id: 'user-defined', name: 'user-defined' },
+ type: {
+ id: 'user-defined',
+ name: 'user-defined',
+ },
primaryKey: false,
unique: false,
nullable: true,
@@ -2177,7 +2400,7 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'a1oiiu5xtebzcmzcrfoyw86jf',
+ id: 'gkg6ghdscnho819zg0ewjsqng',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -2190,18 +2413,24 @@ export const examples: Example[] = [
createdAt: Date.now(),
},
{
- id: 'tckkm3gb2n0zmayt2qjarbg5x',
+ id: 'yqrnjmizqeu2w7mpfhze3clbj',
name: 'special_features',
- type: { id: 'array', name: 'array' },
+ type: {
+ id: 'array',
+ name: 'array',
+ },
primaryKey: false,
unique: false,
nullable: true,
createdAt: Date.now(),
},
{
- id: 'eob427jyflq7za8ntjhjn1fln',
+ id: 'c89248knl8hfudzoakzps1vxg',
name: 'fulltext',
- type: { id: 'tsvector', name: 'tsvector' },
+ type: {
+ id: 'tsvector',
+ name: 'tsvector',
+ },
primaryKey: false,
unique: false,
nullable: false,
@@ -2210,66 +2439,112 @@ export const examples: Example[] = [
],
indexes: [
{
- id: '3t6ppliwdyqz5ydgrj681bcs1',
+ id: 'q4moyrg9jspxqe8rzrotk7dk2',
name: 'film_pkey',
unique: true,
- fieldIds: ['9p7plypt0h2pi24sd1maglln2'],
+ fieldIds: ['66dmeakl4z56mljzwgvttodic'],
createdAt: Date.now(),
},
{
- id: 'lj5tqyuqhohxalfzrv79tz6bg',
+ id: 'jqzhxwb48gwfozuvpclgh1j71',
name: 'idx_fk_language_id',
unique: false,
- fieldIds: ['6f0itpcv12zrs47p7ipwokear'],
+ fieldIds: ['84sf02yyd4hdvz4d01knzbmhk'],
createdAt: Date.now(),
},
{
- id: 'vkjne04om2a7weddbk1iei5un',
+ id: 'opx4m8ieqvh5b9um44znqqt0i',
name: 'idx_title',
unique: false,
- fieldIds: ['xou2sc3iqfl1dgd4st13vc7sg'],
+ fieldIds: ['uiblxhw1gvfndhmy4jwxwrlcn'],
createdAt: Date.now(),
},
{
- id: 'v3v0408fmmx48ju9ruj2hbmyt',
+ id: 'l540bdijyebkbrlmvs4g63mpj',
name: 'film_fulltext_idx',
unique: false,
- fieldIds: ['eob427jyflq7za8ntjhjn1fln'],
+ fieldIds: ['c89248knl8hfudzoakzps1vxg'],
createdAt: Date.now(),
},
],
- color: '#7175fa',
+ color: '#8eb7ff',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: '6736uomo5tw3w40tiqa85aruk',
- name: 'film_actor',
- x: -231.61785978573243,
- y: 268.50456342335843,
+ id: 'g3ge7o85psagng9zan1qvntvf',
+ name: 'payment',
+ x: 83.31477489288602,
+ y: -281.4863882201852,
fields: [
{
- id: 'h3ugzzz8kx4tjvx3vpnk271gx',
- name: 'actor_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'n7nhie8ah79ketvf2r77y6c5c',
+ name: 'payment_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
+ default:
+ "nextval('payment_payment_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'fr9ql21vmr8s77z1if70ws897',
- name: 'film_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: 't15r74n6x4xrbwlhvsnajn5mu',
+ name: 'customer_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: false,
- unique: true,
+ unique: false,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'jv8jgfxml7m08gjej8h5kjxq8',
- name: 'last_update',
+ id: 'c12w8mec49kzhdf00dbyl4ctd',
+ name: 'staff_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'i37y99hzrq9z3nafghimp6q3a',
+ name: 'rental_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'bro51xqmtc6hwq9ql80t02adp',
+ name: 'amount',
+ type: {
+ id: 'numeric',
+ name: 'numeric',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ precision: 5,
+ scale: 2,
+ createdAt: Date.now(),
+ },
+ {
+ id: '9q8ew0bou8yps4vhto03jokk8',
+ name: 'payment_date',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
@@ -2277,64 +2552,89 @@ export const examples: Example[] = [
primaryKey: false,
unique: false,
nullable: false,
- default: 'now()',
createdAt: Date.now(),
},
],
indexes: [
{
- id: 'uxaefq5wg5n93xpcn1hvlqpyy',
- name: 'film_actor_pkey',
+ id: '95j1jfw7bk4pdg4iv9ydr7q1g',
+ name: 'idx_fk_staff_id',
+ unique: false,
+ fieldIds: ['c12w8mec49kzhdf00dbyl4ctd'],
+ createdAt: Date.now(),
+ },
+ {
+ id: '33kz15fy24c2lt4p3y7vx96vp',
+ name: 'payment_pkey',
unique: true,
- fieldIds: ['h3ugzzz8kx4tjvx3vpnk271gx'],
+ fieldIds: ['n7nhie8ah79ketvf2r77y6c5c'],
createdAt: Date.now(),
},
{
- id: '8zfswqnlebluzqcwre997io5c',
- name: 'idx_fk_film_id',
+ id: 'e68usiqvd3intbr650miybhc4',
+ name: 'idx_fk_customer_id',
unique: false,
- fieldIds: ['fr9ql21vmr8s77z1if70ws897'],
+ fieldIds: ['t15r74n6x4xrbwlhvsnajn5mu'],
createdAt: Date.now(),
},
{
- id: 'tpiirc0dcv1u5sqyul3iovcpc',
- name: 'film_actor_pkey',
- unique: true,
- fieldIds: ['fr9ql21vmr8s77z1if70ws897'],
+ id: '92dhhbiyr99hjjwo2pua3wmob',
+ name: 'idx_fk_rental_id',
+ unique: false,
+ fieldIds: ['i37y99hzrq9z3nafghimp6q3a'],
createdAt: Date.now(),
},
],
- color: '#8a61f5',
+ color: '#ff6b8a',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: '45cjukmjeidmb2a5hvkh19ecg',
- name: 'film_category',
- x: 1367.9870370556057,
- y: 918.6722604164116,
+ id: 'gdc1jbkuk641tmanu26hfjxoh',
+ name: 'store',
+ x: -1138.6315572757546,
+ y: 128.7416168208693,
fields: [
{
- id: '0i0bfvjxpfvhadfvmq04nccau',
- name: 'film_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'sw4uc83e3xd13f8y7gliq2rx7',
+ name: 'store_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
+ default: "nextval('store_store_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'nx6hxsugb6xiirghsp4qzkk8j',
- name: 'category_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'xeczjzu6ebvm0spupgnesobej',
+ name: 'manager_staff_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: false,
unique: true,
nullable: false,
createdAt: Date.now(),
},
{
- id: 'enh72sktfhadc6jjg667sa8tz',
+ id: '3l9vxu3klgfvivy3y3q1i7koy',
+ name: 'address_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'n09mfmazxpycdoh1ksulnsvvc',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -2349,62 +2649,72 @@ export const examples: Example[] = [
],
indexes: [
{
- id: 'pmhv0aa74mhlx767wmccbm2pl',
- name: 'film_category_pkey',
+ id: 'stnbli0om9zlbdkj392g3evjc',
+ name: 'idx_unq_manager_staff_id',
unique: true,
- fieldIds: ['nx6hxsugb6xiirghsp4qzkk8j'],
+ fieldIds: ['xeczjzu6ebvm0spupgnesobej'],
createdAt: Date.now(),
},
{
- id: '0y0uuer2cagpf91to3jdxb7h5',
- name: 'film_category_pkey',
+ id: 'zkz9rvfeql3o12xcnygpllrow',
+ name: 'store_pkey',
unique: true,
- fieldIds: ['0i0bfvjxpfvhadfvmq04nccau'],
+ fieldIds: ['sw4uc83e3xd13f8y7gliq2rx7'],
createdAt: Date.now(),
},
],
- color: '#42e0c0',
+ color: '#8a61f5',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: '2cjhyrtpinfa705eilfeeurtc',
- name: 'inventory',
- x: 837.2463612754104,
- y: 62.66553896452018,
+ id: 'm03oodyufvp9uxjir3uti70r6',
+ name: 'actor',
+ x: 18.884934261679035,
+ y: 434.5735649508925,
fields: [
{
- id: 'qjhszd97v59kifufel97hj33j',
- name: 'inventory_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'begg7si6me1l1svr3zv27rfp3',
+ name: 'actor_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
- default:
- "nextval('inventory_inventory_id_seq'::regclass)",
+ default: "nextval('actor_actor_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'hln6zbas448889n2m2ogs81ev',
- name: 'film_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'xd4xxiq8g6ioazksend7bex0a',
+ name: 'first_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
nullable: false,
+ characterMaximumLength: '45',
createdAt: Date.now(),
},
{
- id: 'jfyqemyo4jockaumlbg6ps19a',
- name: 'store_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'ymyd7t4fikamq2cg2v0nsa4dy',
+ name: 'last_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
nullable: false,
+ characterMaximumLength: '45',
createdAt: Date.now(),
},
{
- id: 'prclnzgowskz3koq16xl10tj1',
+ id: 'ate9rd49jyzffk5hss4eumlrm',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -2419,61 +2729,107 @@ export const examples: Example[] = [
],
indexes: [
{
- id: '03o27kfg8v6gtvkp3f0hw9njt',
- name: 'idx_store_id_film_id',
- unique: false,
- fieldIds: ['jfyqemyo4jockaumlbg6ps19a'],
- createdAt: Date.now(),
- },
- {
- id: 'oc79tabhelehw9jr406dj5ubb',
- name: 'idx_store_id_film_id',
+ id: '2gyalxa5a1chrea8qfjbj3zvf',
+ name: 'idx_actor_last_name',
unique: false,
- fieldIds: ['hln6zbas448889n2m2ogs81ev'],
+ fieldIds: ['ymyd7t4fikamq2cg2v0nsa4dy'],
createdAt: Date.now(),
},
{
- id: '1v0bjrbpy3x3qfgv6r81yn4ao',
- name: 'inventory_pkey',
+ id: 'h19s1f0t1m1sgwnwvdn9p48ny',
+ name: 'actor_pkey',
unique: true,
- fieldIds: ['qjhszd97v59kifufel97hj33j'],
+ fieldIds: ['begg7si6me1l1svr3zv27rfp3'],
createdAt: Date.now(),
},
],
- color: '#b067e9',
+ color: '#42e0c0',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'fctm9t2gjxte1920akz69jkqt',
- name: 'language',
- x: 1145.4852455715575,
- y: 482.0414219458479,
+ id: 'mcqn81zhg4ldxsgwzn81phmjk',
+ name: 'rental',
+ x: 197.78925592434024,
+ y: 40.15805805674481,
fields: [
{
- id: 'fp615hegqw52lssi3xnzx05rs',
- name: 'language_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'fmlmaurapjll9ebz7o54jtpr2',
+ name: 'rental_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
default:
- "nextval('language_language_id_seq'::regclass)",
+ "nextval('rental_rental_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'lng1oxspuc1hsny8x0sti0o72',
- name: 'name',
- type: { id: 'char', name: 'char' },
+ id: 'ikmury4a6qdgqdrqdirx82zw6',
+ name: 'rental_date',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: '4lyxh63o5h60t7fvtuoqjfx4e',
+ name: 'inventory_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'zkl4gi93pago9skvmx0o0scyg',
+ name: 'customer_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: true,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'o51ff4jg6sp5ghjz9g8qyp51l',
+ name: 'return_date',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'gsw8sdyuej7dt34a29bysv9fr',
+ name: 'staff_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: false,
unique: false,
nullable: false,
- characterMaximumLength: '20',
createdAt: Date.now(),
},
{
- id: 'sup8f0z7axc1h9idc8d5uqzc7',
+ id: '0kzuulkjgmgm67gv0fpwl428r',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -2488,76 +2844,82 @@ export const examples: Example[] = [
],
indexes: [
{
- id: 'fdh7uz800a5yuwsq3xah3l5lc',
- name: 'language_pkey',
+ id: '7g0asqc0bdz0bi57weazibk7h',
+ name: 'idx_unq_rental_rental_date_inventory_id_customer_id',
unique: true,
- fieldIds: ['fp615hegqw52lssi3xnzx05rs'],
+ fieldIds: ['4lyxh63o5h60t7fvtuoqjfx4e'],
createdAt: Date.now(),
},
- ],
- color: '#7175fa',
- isView: false,
- isMaterializedView: false,
- createdAt: Date.now(),
- },
- {
- id: 'zqkdij60kh33k27ugz11rh244',
- name: 'payment',
- x: 499.9297120587544,
- y: -137.56446222788708,
- fields: [
{
- id: 'r07b25xp5enas53osnkykhshc',
- name: 'payment_id',
- type: { id: 'integer', name: 'integer' },
- primaryKey: true,
+ id: 'sveycj3cjg1hbul98n1luaevw',
+ name: 'idx_unq_rental_rental_date_inventory_id_customer_id',
unique: true,
- nullable: false,
- default:
- "nextval('payment_payment_id_seq'::regclass)",
+ fieldIds: ['zkl4gi93pago9skvmx0o0scyg'],
createdAt: Date.now(),
},
{
- id: 'lxs0lq5udza79rzkp5ll732z8',
- name: 'customer_id',
- type: { id: 'smallint', name: 'smallint' },
- primaryKey: false,
- unique: false,
- nullable: false,
+ id: 't5cbljr7n0furp1vaynejwyuk',
+ name: 'idx_unq_rental_rental_date_inventory_id_customer_id',
+ unique: true,
+ fieldIds: ['ikmury4a6qdgqdrqdirx82zw6'],
createdAt: Date.now(),
},
{
- id: 'bnanwa6rwnbjnfkqrknpk1tqm',
- name: 'staff_id',
- type: { id: 'smallint', name: 'smallint' },
- primaryKey: false,
- unique: false,
- nullable: false,
+ id: 'emf5bwlw9dv9ddauczpw0mdh8',
+ name: 'rental_pkey',
+ unique: true,
+ fieldIds: ['fmlmaurapjll9ebz7o54jtpr2'],
createdAt: Date.now(),
},
{
- id: 'rdjpkkl53bc1plf75wt2xtf0m',
- name: 'rental_id',
- type: { id: 'integer', name: 'integer' },
- primaryKey: false,
+ id: '1g8fgmo6ybuy5zn8sps79a92n',
+ name: 'idx_fk_inventory_id',
unique: false,
+ fieldIds: ['4lyxh63o5h60t7fvtuoqjfx4e'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#ff6b8a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'noowyg71ra2jdqmpzongal8k6',
+ name: 'category',
+ x: 77.05571595146732,
+ y: 890.0996986121118,
+ fields: [
+ {
+ id: 'grbcz03z7xihwarkidet47sou',
+ name: 'category_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
nullable: false,
+ default:
+ "nextval('category_category_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'gup5upslxkcv9nqu5r4qlc41v',
- name: 'amount',
- type: { id: 'numeric', name: 'numeric' },
+ id: 'jwl0e2s0783xlt3njecotej8t',
+ name: 'name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
unique: false,
nullable: false,
- precision: 5,
- scale: 2,
+ characterMaximumLength: '25',
createdAt: Date.now(),
},
{
- id: 'w90qtt65qbwvjik6ayu17r01y',
- name: 'payment_date',
+ id: 'st51pcmjvncfk46ihk1s7x3l2',
+ name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
name: 'timestamp without time zone',
@@ -2565,114 +2927,135 @@ export const examples: Example[] = [
primaryKey: false,
unique: false,
nullable: false,
+ default: 'now()',
createdAt: Date.now(),
},
],
indexes: [
{
- id: 'lkc8ndsfolib73yg263ybt4a7',
- name: 'idx_fk_staff_id',
- unique: false,
- fieldIds: ['bnanwa6rwnbjnfkqrknpk1tqm'],
- createdAt: Date.now(),
- },
- {
- id: 'ugm1o7w392qrmozxrrormoqgk',
- name: 'payment_pkey',
+ id: 'n3jhbtbbvpvhc54xqr3fmtv0u',
+ name: 'category_pkey',
unique: true,
- fieldIds: ['r07b25xp5enas53osnkykhshc'],
- createdAt: Date.now(),
- },
- {
- id: 'zk83u1oddid41i72aru816h80',
- name: 'idx_fk_customer_id',
- unique: false,
- fieldIds: ['lxs0lq5udza79rzkp5ll732z8'],
- createdAt: Date.now(),
- },
- {
- id: 'doajq8k2zvlna9ig08v7k042s',
- name: 'idx_fk_rental_id',
- unique: false,
- fieldIds: ['rdjpkkl53bc1plf75wt2xtf0m'],
+ fieldIds: ['grbcz03z7xihwarkidet47sou'],
createdAt: Date.now(),
},
],
- color: '#9ef07a',
+ color: '#8eb7ff',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: '08ck6xgxm97m8fr757f3c1u8i',
- name: 'rental',
- x: 162.2336746262622,
- y: 67.05782849810606,
+ id: 'obr7mfhfjejqleyt42xu6dkbv',
+ name: 'customer',
+ x: -400.97107525799214,
+ y: -65.25794215848296,
fields: [
{
- id: 'up97wwftgf0b7b2td9p0jehjb',
- name: 'rental_id',
- type: { id: 'integer', name: 'integer' },
+ id: '2byrkawoomwtfbo4hlm2dw74y',
+ name: 'customer_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
- default:
- "nextval('rental_rental_id_seq'::regclass)",
+ default:
+ "nextval('customer_customer_id_seq'::regclass)",
+ createdAt: Date.now(),
+ },
+ {
+ id: '23qg97erb8vs00z89pu6z1kev',
+ name: 'store_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'ayuysa4j6nt2re26k6zcvyu12',
+ name: 'first_name',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: false,
+ characterMaximumLength: '45',
createdAt: Date.now(),
},
{
- id: '0z6e0xj8p7jze5v4jip4q2xci',
- name: 'rental_date',
+ id: 'k0sm6rxdzmkm1tthrih0jl67r',
+ name: 'last_name',
type: {
- id: 'timestamp_without_time_zone',
- name: 'timestamp without time zone',
+ id: 'character_varying',
+ name: 'character varying',
},
primaryKey: false,
- unique: true,
+ unique: false,
nullable: false,
+ characterMaximumLength: '45',
createdAt: Date.now(),
},
{
- id: '6v1bgzlqyzzrjksnvtbwk50qt',
- name: 'inventory_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'myftxt8k42s75j2le0sooqejp',
+ name: 'email',
+ type: {
+ id: 'character_varying',
+ name: 'character varying',
+ },
primaryKey: false,
- unique: true,
- nullable: false,
+ unique: false,
+ nullable: true,
+ characterMaximumLength: '50',
createdAt: Date.now(),
},
{
- id: 'yxldnw5n7mgk0uz5t1yar2fxb',
- name: 'customer_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'ehadwyrqcmt3ozy9ub8kkacqm',
+ name: 'address_id',
+ type: {
+ id: 'smallint',
+ name: 'smallint',
+ },
primaryKey: false,
- unique: true,
+ unique: false,
nullable: false,
createdAt: Date.now(),
},
{
- id: '43nw8h9mxi1jyiznwn28iblgw',
- name: 'return_date',
+ id: 'tlp3pm4buiw7by7w8c3uqy5wn',
+ name: 'activebool',
type: {
- id: 'timestamp_without_time_zone',
- name: 'timestamp without time zone',
+ id: 'boolean',
+ name: 'boolean',
},
primaryKey: false,
unique: false,
- nullable: true,
+ nullable: false,
+ default: 'true',
createdAt: Date.now(),
},
{
- id: 'ba5gh63xkhulbh90royzndwgy',
- name: 'staff_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: '5107oazvnr8nl7s6c2p850nge',
+ name: 'create_date',
+ type: {
+ id: 'date',
+ name: 'date',
+ },
primaryKey: false,
unique: false,
nullable: false,
+ default: "('now'::text)::date",
createdAt: Date.now(),
},
{
- id: '9vuky8e8fhrmtqjhz0k1lafbi',
+ id: 'de1fl7nbvn19epv8c6qoq7dxu',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -2680,139 +3063,166 @@ export const examples: Example[] = [
},
primaryKey: false,
unique: false,
- nullable: false,
+ nullable: true,
default: 'now()',
createdAt: Date.now(),
},
- ],
- indexes: [
{
- id: 'sp6moud1x6ghpzm7prjo9umfl',
- name: 'idx_unq_rental_rental_date_inventory_id_customer_id',
- unique: true,
- fieldIds: ['6v1bgzlqyzzrjksnvtbwk50qt'],
+ id: 'os6b9dmyq4r8z0cwmo3jdl8hs',
+ name: 'active',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: false,
+ unique: false,
+ nullable: true,
createdAt: Date.now(),
},
+ ],
+ indexes: [
{
- id: '3uqyqf2nthx5b2uabfbi2sybv',
- name: 'idx_unq_rental_rental_date_inventory_id_customer_id',
- unique: true,
- fieldIds: ['yxldnw5n7mgk0uz5t1yar2fxb'],
+ id: 'g6jzlu2034flxv2pvqst3vh2a',
+ name: 'idx_fk_store_id',
+ unique: false,
+ fieldIds: ['23qg97erb8vs00z89pu6z1kev'],
createdAt: Date.now(),
},
{
- id: '1ygsqa88rwhhhupxvaq9ec6zr',
- name: 'idx_unq_rental_rental_date_inventory_id_customer_id',
+ id: 'x0hvbp0z7mx3qbey90349klw5',
+ name: 'customer_pkey',
unique: true,
- fieldIds: ['0z6e0xj8p7jze5v4jip4q2xci'],
+ fieldIds: ['2byrkawoomwtfbo4hlm2dw74y'],
createdAt: Date.now(),
},
{
- id: 'w3bmoghte4qzaip75kxojno32',
- name: 'rental_pkey',
- unique: true,
- fieldIds: ['up97wwftgf0b7b2td9p0jehjb'],
+ id: 'gw5twqlrlipawh54y1qhrwu0t',
+ name: 'idx_last_name',
+ unique: false,
+ fieldIds: ['k0sm6rxdzmkm1tthrih0jl67r'],
createdAt: Date.now(),
},
{
- id: 'iiffskh0x60pmb5a8es4rmf72',
- name: 'idx_fk_inventory_id',
+ id: 'y41qm3l12hg85bz7thb9idryr',
+ name: 'idx_fk_address_id',
unique: false,
- fieldIds: ['6v1bgzlqyzzrjksnvtbwk50qt'],
+ fieldIds: ['ehadwyrqcmt3ozy9ub8kkacqm'],
createdAt: Date.now(),
},
],
- color: '#8a61f5',
+ color: '#4dee8a',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'xkeb7oj02sbn5oyoo2f66wmnz',
- name: 'staff',
- x: 1503.0448885421442,
- y: 282.1436895892762,
+ id: 'sx03o3sop41zzvwyp7c9nvvcx',
+ name: 'inventory',
+ x: 728.7383049766354,
+ y: 215.390313450282,
fields: [
{
- id: 'vxnoi2w8ap9rcxm8e2jlkbkpa',
- name: 'staff_id',
- type: { id: 'integer', name: 'integer' },
+ id: 'ihkfowcflwh43vmfvzhcs4qsh',
+ name: 'inventory_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
- default: "nextval('staff_staff_id_seq'::regclass)",
+ default:
+ "nextval('inventory_inventory_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'mzcg5j2iq708hxi0sndilef9v',
- name: 'first_name',
+ id: 'tmqm0lbjejydyxk9qxkekv2dx',
+ name: 'film_id',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'smallint',
+ name: 'smallint',
},
primaryKey: false,
unique: false,
nullable: false,
- characterMaximumLength: '45',
createdAt: Date.now(),
},
{
- id: '27noncs0jf6fxqnjbeod2vdi4',
- name: 'last_name',
+ id: 'ooufm6yrgludnem7q1unx17cl',
+ name: 'store_id',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'smallint',
+ name: 'smallint',
},
primaryKey: false,
unique: false,
nullable: false,
- characterMaximumLength: '45',
createdAt: Date.now(),
},
{
- id: 'gef3s8gky0dx4hnh8u78glpbt',
- name: 'address_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: '9z1v71tmjjknvfjrbdlsv094o',
+ name: 'last_update',
+ type: {
+ id: 'timestamp_without_time_zone',
+ name: 'timestamp without time zone',
+ },
primaryKey: false,
unique: false,
nullable: false,
+ default: 'now()',
createdAt: Date.now(),
},
+ ],
+ indexes: [
{
- id: 'rjqlqzc59cnt2v1w0os5ryisz',
- name: 'email',
- type: {
- id: 'character_varying',
- name: 'character varying',
- },
- primaryKey: false,
+ id: 'gl1ce4681253ocizlnahzyfyz',
+ name: 'idx_store_id_film_id',
unique: false,
- nullable: true,
- characterMaximumLength: '50',
+ fieldIds: ['ooufm6yrgludnem7q1unx17cl'],
createdAt: Date.now(),
},
{
- id: 'y53nwunyujmkitnw75vcodstd',
- name: 'store_id',
- type: { id: 'smallint', name: 'smallint' },
- primaryKey: false,
+ id: 'q47y9k6y4guzaq9r6iweq12dg',
+ name: 'idx_store_id_film_id',
unique: false,
- nullable: false,
+ fieldIds: ['tmqm0lbjejydyxk9qxkekv2dx'],
createdAt: Date.now(),
},
{
- id: 'ef2vi9r49wgwm1ku32mbf67ge',
- name: 'active',
- type: { id: 'boolean', name: 'boolean' },
- primaryKey: false,
- unique: false,
+ id: 'b0brn24lmh4egvojlndc9s78g',
+ name: 'inventory_pkey',
+ unique: true,
+ fieldIds: ['ihkfowcflwh43vmfvzhcs4qsh'],
+ createdAt: Date.now(),
+ },
+ ],
+ color: '#9ef07a',
+ isView: false,
+ isMaterializedView: false,
+ createdAt: Date.now(),
+ },
+ {
+ id: 'yj5zet1lfo6kodxnzl9r3lgtp',
+ name: 'city',
+ x: -561.4063228067535,
+ y: 894.3656386061484,
+ fields: [
+ {
+ id: '5of6crq34x0x6wlvcmdgv5zw7',
+ name: 'city_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
+ primaryKey: true,
+ unique: true,
nullable: false,
- default: 'true',
+ default: "nextval('city_city_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: '0jidh7w9ipnf0nddc0mdzljbt',
- name: 'username',
+ id: 'mrul1c7akzacuvc3s41xxego4',
+ name: 'city',
type: {
id: 'character_varying',
name: 'character varying',
@@ -2820,24 +3230,23 @@ export const examples: Example[] = [
primaryKey: false,
unique: false,
nullable: false,
- characterMaximumLength: '16',
+ characterMaximumLength: '50',
createdAt: Date.now(),
},
{
- id: 'ktwit7owb7p1j3ibqmh6yeomx',
- name: 'password',
+ id: 'u4aj9xveey1eufmczzg0sts25',
+ name: 'country_id',
type: {
- id: 'character_varying',
- name: 'character varying',
+ id: 'smallint',
+ name: 'smallint',
},
primaryKey: false,
unique: false,
- nullable: true,
- characterMaximumLength: '40',
+ nullable: false,
createdAt: Date.now(),
},
{
- id: 'q3wl36pn6sa5imtmbsinaahai',
+ id: '3fugxuir9obeda1zhp6ueg4lm',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -2849,66 +3258,63 @@ export const examples: Example[] = [
default: 'now()',
createdAt: Date.now(),
},
+ ],
+ indexes: [
{
- id: 'og6rhsk3jxmgivvdmn9ur4nxg',
- name: 'picture',
- type: { id: 'bytea', name: 'bytea' },
- primaryKey: false,
+ id: 'ce0r4zmj1u78812ffc2gcmyko',
+ name: 'idx_fk_country_id',
unique: false,
- nullable: true,
+ fieldIds: ['u4aj9xveey1eufmczzg0sts25'],
createdAt: Date.now(),
},
- ],
- indexes: [
{
- id: 'fx598g89nmvdj0th64w25dyex',
- name: 'staff_pkey',
+ id: '43zd73gkf5vbrp290a2aqibc9',
+ name: 'city_pkey',
unique: true,
- fieldIds: ['vxnoi2w8ap9rcxm8e2jlkbkpa'],
+ fieldIds: ['5of6crq34x0x6wlvcmdgv5zw7'],
createdAt: Date.now(),
},
],
- color: '#ff6b8a',
+ color: '#ff6363',
isView: false,
isMaterializedView: false,
createdAt: Date.now(),
},
{
- id: 'mdugti4vpfw7ez6v0jfgd7cpv',
- name: 'store',
- x: 95.60771046641412,
- y: 696.1542093282828,
+ id: 'ymyqg33rfrw2l23mgd35989wz',
+ name: 'language',
+ x: 746.4181562673502,
+ y: 1117.9725006616545,
fields: [
{
- id: '93r7rr674bo09jhtv2imzdp6v',
- name: 'store_id',
- type: { id: 'integer', name: 'integer' },
+ id: '8g961c9q8b5zl1hlq48qfk8x9',
+ name: 'language_id',
+ type: {
+ id: 'integer',
+ name: 'integer',
+ },
primaryKey: true,
unique: true,
nullable: false,
- default: "nextval('store_store_id_seq'::regclass)",
- createdAt: Date.now(),
- },
- {
- id: 'jrsmkppymx89sbbeiudkv1bta',
- name: 'manager_staff_id',
- type: { id: 'smallint', name: 'smallint' },
- primaryKey: false,
- unique: true,
- nullable: false,
+ default:
+ "nextval('language_language_id_seq'::regclass)",
createdAt: Date.now(),
},
{
- id: 'u63mhszue97e96a9efvl8zs38',
- name: 'address_id',
- type: { id: 'smallint', name: 'smallint' },
+ id: 'htlvmgtuj7aidj4nidgwm4oyw',
+ name: 'name',
+ type: {
+ id: 'char',
+ name: 'char',
+ },
primaryKey: false,
unique: false,
nullable: false,
+ characterMaximumLength: '20',
createdAt: Date.now(),
},
{
- id: 'wulhhocqy6al49u1v1eprjws7',
+ id: 'r0bukq1f2dstufz2t9p8odwv2',
name: 'last_update',
type: {
id: 'timestamp_without_time_zone',
@@ -2923,17 +3329,10 @@ export const examples: Example[] = [
],
indexes: [
{
- id: 'rboeb1rttgce921zqcdlargln',
- name: 'idx_unq_manager_staff_id',
- unique: true,
- fieldIds: ['jrsmkppymx89sbbeiudkv1bta'],
- createdAt: Date.now(),
- },
- {
- id: 'bhcxmfa97t2tibscwxt1454zp',
- name: 'store_pkey',
+ id: '2yvt9rr3a9j9e4exb9mj2bitv',
+ name: 'language_pkey',
unique: true,
- fieldIds: ['93r7rr674bo09jhtv2imzdp6v'],
+ fieldIds: ['8g961c9q8b5zl1hlq48qfk8x9'],
createdAt: Date.now(),
},
],
@@ -2945,222 +3344,252 @@ export const examples: Example[] = [
],
relationships: [
{
- id: '1gve6ks3y6nrqt44f1lnxzh90',
+ id: '07lvs12q3i1tfnydwk944p0u5',
name: 'customer_address_id_fkey',
- sourceTableId: 'v5c8d2z2r7czjjb6yqfhrzca7',
- targetTableId: '6zd90tcbey5t4s8robbviqus8',
- sourceFieldId: 'clgb7yp0y3r7v2bs9vvz2i1g8',
- targetFieldId: 'b0iylw1gbvp09vtpxdcs8d3zn',
-
+ sourceTableId: 'obr7mfhfjejqleyt42xu6dkbv',
+ targetTableId: 'ea4vdndmk0mzj37pxmnbnng6x',
+ sourceFieldId: 'ehadwyrqcmt3ozy9ub8kkacqm',
+ targetFieldId: 'i6qxuuf9xst3t7rc699nc0hgq',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'd91monmss0svv9wxy0824crpc',
- name: 'film_actor_actor_id_fkey',
- sourceTableId: '6736uomo5tw3w40tiqa85aruk',
- targetTableId: 'fsqbyg9qles1fl937pizwve95',
- sourceFieldId: 'h3ugzzz8kx4tjvx3vpnk271gx',
- targetFieldId: 'xqx13khvb9m0vzfepcycizcai',
-
+ id: '0xduhcrf47uz6k0gcy98qubzj',
+ name: 'rental_customer_id_fkey',
+ sourceTableId: 'mcqn81zhg4ldxsgwzn81phmjk',
+ targetTableId: 'obr7mfhfjejqleyt42xu6dkbv',
+ sourceFieldId: 'zkl4gi93pago9skvmx0o0scyg',
+ targetFieldId: '2byrkawoomwtfbo4hlm2dw74y',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'pv7vlqioc00ms620dmcdmgg70',
- name: 'film_actor_film_id_fkey',
- sourceTableId: '6736uomo5tw3w40tiqa85aruk',
- targetTableId: 'e31vevdt598z8mpv13egvkjnj',
- sourceFieldId: 'fr9ql21vmr8s77z1if70ws897',
- targetFieldId: '9p7plypt0h2pi24sd1maglln2',
-
+ id: '1ce0w0r8s0xss9lwwayi6v9g0',
+ name: 'staff_address_id_fkey',
+ sourceTableId: '34yt1qc2aa0ry1xlfff635xpi',
+ targetTableId: 'ea4vdndmk0mzj37pxmnbnng6x',
+ sourceFieldId: 'uhl87fgu2gxu18c7jj7a9lnz4',
+ targetFieldId: 'i6qxuuf9xst3t7rc699nc0hgq',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'lqslle7l8xnh0aldxdum9tj2w',
- name: 'film_category_category_id_fkey',
- sourceTableId: '45cjukmjeidmb2a5hvkh19ecg',
- targetTableId: '4pxqynu5v3vugzy12sfh4ozvu',
- sourceFieldId: 'nx6hxsugb6xiirghsp4qzkk8j',
- targetFieldId: 'dhacvdae20ms5wc3inljozrz2',
-
+ id: '1tyx62292uu38o0rrcdxv5cz3',
+ name: 'rental_inventory_id_fkey',
+ sourceTableId: 'mcqn81zhg4ldxsgwzn81phmjk',
+ targetTableId: 'sx03o3sop41zzvwyp7c9nvvcx',
+ sourceFieldId: '4lyxh63o5h60t7fvtuoqjfx4e',
+ targetFieldId: 'ihkfowcflwh43vmfvzhcs4qsh',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'ybf06o8yozvtd6lm0k8t7c430',
- name: 'film_category_film_id_fkey',
- sourceTableId: '45cjukmjeidmb2a5hvkh19ecg',
- targetTableId: 'e31vevdt598z8mpv13egvkjnj',
- sourceFieldId: '0i0bfvjxpfvhadfvmq04nccau',
- targetFieldId: '9p7plypt0h2pi24sd1maglln2',
-
+ id: '2xoeoui3dnqef8a53pjurk44c',
+ name: 'film_actor_film_id_fkey',
+ sourceTableId: 'btxa10fqejctzsz9y22z93dto',
+ targetTableId: 'ernqqm8aiy3d8k2ljq35h1vwx',
+ sourceFieldId: 'mes2rjjt47i1qj8qgy9xtt2sd',
+ targetFieldId: '66dmeakl4z56mljzwgvttodic',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'uxlbezj3s4x2asdtbhqilcv2j',
- name: 'film_language_id_fkey',
- sourceTableId: 'e31vevdt598z8mpv13egvkjnj',
- targetTableId: 'fctm9t2gjxte1920akz69jkqt',
- sourceFieldId: '6f0itpcv12zrs47p7ipwokear',
- targetFieldId: 'fp615hegqw52lssi3xnzx05rs',
-
+ id: '4j1sobeu97gyvtrqutka6dyon',
+ name: 'inventory_film_id_fkey',
+ sourceTableId: 'sx03o3sop41zzvwyp7c9nvvcx',
+ targetTableId: 'ernqqm8aiy3d8k2ljq35h1vwx',
+ sourceFieldId: 'tmqm0lbjejydyxk9qxkekv2dx',
+ targetFieldId: '66dmeakl4z56mljzwgvttodic',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'j0ua1y7df5ixcueoh0pd5tz7e',
- name: 'fk_address_city',
- sourceTableId: '6zd90tcbey5t4s8robbviqus8',
- targetTableId: 'l908eu1k0odh5u4mq6ge61udi',
- sourceFieldId: 'qjibly41tvbgo8icl3hndguwv',
- targetFieldId: 'ozcebtrmnoar9spk7jq4b2gfz',
-
+ id: 'avuni33tj1mlx3px80cg73mxn',
+ name: 'film_category_film_id_fkey',
+ sourceTableId: '3xlkv9xztz29x0bgrw5nrzf3t',
+ targetTableId: 'ernqqm8aiy3d8k2ljq35h1vwx',
+ sourceFieldId: '0y1h3uwzkcyyaeesbyr7uiam2',
+ targetFieldId: '66dmeakl4z56mljzwgvttodic',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'oirm5lo84mlwzjwxt3ovdj5mg',
- name: 'fk_city',
- sourceTableId: 'l908eu1k0odh5u4mq6ge61udi',
- targetTableId: '1tzllhzmb8tkgafbmcguqf5vn',
- sourceFieldId: 'lup9lgn5haghenay268urdr2v',
- targetFieldId: 'jh3rnowvtvmu4qwbjn8s2wjnv',
-
+ id: 'bpdb5n83jwgvql3rsgekkgsuu',
+ name: 'film_language_id_fkey',
+ sourceTableId: 'ernqqm8aiy3d8k2ljq35h1vwx',
+ targetTableId: 'ymyqg33rfrw2l23mgd35989wz',
+ sourceFieldId: '84sf02yyd4hdvz4d01knzbmhk',
+ targetFieldId: '8g961c9q8b5zl1hlq48qfk8x9',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'mxahuy1mglwxjxlpyown790hb',
- name: 'inventory_film_id_fkey',
- sourceTableId: '2cjhyrtpinfa705eilfeeurtc',
- targetTableId: 'e31vevdt598z8mpv13egvkjnj',
- sourceFieldId: 'hln6zbas448889n2m2ogs81ev',
- targetFieldId: '9p7plypt0h2pi24sd1maglln2',
-
+ id: 'hy4dh9omcw7ge0hiag53dfbcm',
+ name: 'store_address_id_fkey',
+ sourceTableId: 'gdc1jbkuk641tmanu26hfjxoh',
+ targetTableId: 'ea4vdndmk0mzj37pxmnbnng6x',
+ sourceFieldId: '3l9vxu3klgfvivy3y3q1i7koy',
+ targetFieldId: 'i6qxuuf9xst3t7rc699nc0hgq',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'qfdb97v9ji2d5amt42vvb2b4m',
- name: 'payment_customer_id_fkey',
- sourceTableId: 'zqkdij60kh33k27ugz11rh244',
- targetTableId: 'v5c8d2z2r7czjjb6yqfhrzca7',
- sourceFieldId: 'lxs0lq5udza79rzkp5ll732z8',
- targetFieldId: '5as8lm61s6t2u9chbixfeyrmd',
-
+ id: 'illm3w5xrqvntl2m80w32gn6m',
+ name: 'store_manager_staff_id_fkey',
+ sourceTableId: 'gdc1jbkuk641tmanu26hfjxoh',
+ targetTableId: '34yt1qc2aa0ry1xlfff635xpi',
+ sourceFieldId: 'xeczjzu6ebvm0spupgnesobej',
+ targetFieldId: '54i12h4z3uodcr72i1qcfr3ks',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'ffl6rmrvc9uu1k5k65u1pe081',
- name: 'payment_rental_id_fkey',
- sourceTableId: 'zqkdij60kh33k27ugz11rh244',
- targetTableId: '08ck6xgxm97m8fr757f3c1u8i',
- sourceFieldId: 'rdjpkkl53bc1plf75wt2xtf0m',
- targetFieldId: 'up97wwftgf0b7b2td9p0jehjb',
-
+ id: 'l6s3646egw5ws6r0zpvi8i3kx',
+ name: 'payment_staff_id_fkey',
+ sourceTableId: 'g3ge7o85psagng9zan1qvntvf',
+ targetTableId: '34yt1qc2aa0ry1xlfff635xpi',
+ sourceFieldId: 'c12w8mec49kzhdf00dbyl4ctd',
+ targetFieldId: '54i12h4z3uodcr72i1qcfr3ks',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'zmk8p06up7tm63acu0aigzm7e',
- name: 'payment_staff_id_fkey',
- sourceTableId: 'zqkdij60kh33k27ugz11rh244',
- targetTableId: 'xkeb7oj02sbn5oyoo2f66wmnz',
- sourceFieldId: 'bnanwa6rwnbjnfkqrknpk1tqm',
- targetFieldId: 'vxnoi2w8ap9rcxm8e2jlkbkpa',
-
+ id: 'p8lnkek3oou1rpk52heqplcom',
+ name: 'film_actor_actor_id_fkey',
+ sourceTableId: 'btxa10fqejctzsz9y22z93dto',
+ targetTableId: 'm03oodyufvp9uxjir3uti70r6',
+ sourceFieldId: 'qv45deuvh3ztz277pnptifai5',
+ targetFieldId: 'begg7si6me1l1svr3zv27rfp3',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'n9olwy5ahcfmwxgv4k82p2p4o',
- name: 'rental_customer_id_fkey',
- sourceTableId: '08ck6xgxm97m8fr757f3c1u8i',
- targetTableId: 'v5c8d2z2r7czjjb6yqfhrzca7',
- sourceFieldId: 'yxldnw5n7mgk0uz5t1yar2fxb',
- targetFieldId: '5as8lm61s6t2u9chbixfeyrmd',
-
+ id: 'r5yf6wn7zxp2sovglszw8dfwk',
+ name: 'fk_city',
+ sourceTableId: 'yj5zet1lfo6kodxnzl9r3lgtp',
+ targetTableId: 'cq7xhw34n8yos6oo6j0ri8lqq',
+ sourceFieldId: 'u4aj9xveey1eufmczzg0sts25',
+ targetFieldId: 'x773jd75qcqg9ajiyl29bjggo',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'ctpuu27arc67ilc494rfygn8i',
- name: 'rental_inventory_id_fkey',
- sourceTableId: '08ck6xgxm97m8fr757f3c1u8i',
- targetTableId: '2cjhyrtpinfa705eilfeeurtc',
- sourceFieldId: '6v1bgzlqyzzrjksnvtbwk50qt',
- targetFieldId: 'qjhszd97v59kifufel97hj33j',
-
+ id: 'sn93vjerzvmusnju9leasxgof',
+ name: 'rental_staff_id_key',
+ sourceTableId: 'mcqn81zhg4ldxsgwzn81phmjk',
+ targetTableId: '34yt1qc2aa0ry1xlfff635xpi',
+ sourceFieldId: 'gsw8sdyuej7dt34a29bysv9fr',
+ targetFieldId: '54i12h4z3uodcr72i1qcfr3ks',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'ndd5pkrkzqlnaugt960vpbea3',
- name: 'rental_staff_id_key',
- sourceTableId: '08ck6xgxm97m8fr757f3c1u8i',
- targetTableId: 'xkeb7oj02sbn5oyoo2f66wmnz',
- sourceFieldId: 'ba5gh63xkhulbh90royzndwgy',
- targetFieldId: 'vxnoi2w8ap9rcxm8e2jlkbkpa',
-
+ id: 'sx8j3nwiik8qn5bf19oo9d514',
+ name: 'fk_address_city',
+ sourceTableId: 'ea4vdndmk0mzj37pxmnbnng6x',
+ targetTableId: 'yj5zet1lfo6kodxnzl9r3lgtp',
+ sourceFieldId: 'jfavtmtso40cwyhe09f7i1753',
+ targetFieldId: '5of6crq34x0x6wlvcmdgv5zw7',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'w1wezoqdfhzrpvrdzrluatdaj',
- name: 'staff_address_id_fkey',
- sourceTableId: 'xkeb7oj02sbn5oyoo2f66wmnz',
- targetTableId: '6zd90tcbey5t4s8robbviqus8',
- sourceFieldId: 'gef3s8gky0dx4hnh8u78glpbt',
- targetFieldId: 'b0iylw1gbvp09vtpxdcs8d3zn',
-
+ id: 'u7o5ymikjzcgxln3xzgkg9p6w',
+ name: 'payment_rental_id_fkey',
+ sourceTableId: 'g3ge7o85psagng9zan1qvntvf',
+ targetTableId: 'mcqn81zhg4ldxsgwzn81phmjk',
+ sourceFieldId: 'i37y99hzrq9z3nafghimp6q3a',
+ targetFieldId: 'fmlmaurapjll9ebz7o54jtpr2',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'lzbdtwcpijch4b825otub9acp',
- name: 'store_address_id_fkey',
- sourceTableId: 'mdugti4vpfw7ez6v0jfgd7cpv',
- targetTableId: '6zd90tcbey5t4s8robbviqus8',
- sourceFieldId: 'u63mhszue97e96a9efvl8zs38',
- targetFieldId: 'b0iylw1gbvp09vtpxdcs8d3zn',
-
+ id: 'ubx3xzrrq58ue4tl113qxnn1x',
+ name: 'payment_customer_id_fkey',
+ sourceTableId: 'g3ge7o85psagng9zan1qvntvf',
+ targetTableId: 'obr7mfhfjejqleyt42xu6dkbv',
+ sourceFieldId: 't15r74n6x4xrbwlhvsnajn5mu',
+ targetFieldId: '2byrkawoomwtfbo4hlm2dw74y',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
{
- id: 'mg7omw1e5ec3ma4kvwu9mzocn',
- name: 'store_manager_staff_id_fkey',
- sourceTableId: 'mdugti4vpfw7ez6v0jfgd7cpv',
- targetTableId: 'xkeb7oj02sbn5oyoo2f66wmnz',
- sourceFieldId: 'jrsmkppymx89sbbeiudkv1bta',
- targetFieldId: 'vxnoi2w8ap9rcxm8e2jlkbkpa',
-
+ id: 'yx1hlqjfzo7gd5xx82me2ksf2',
+ name: 'film_category_category_id_fkey',
+ sourceTableId: '3xlkv9xztz29x0bgrw5nrzf3t',
+ targetTableId: 'noowyg71ra2jdqmpzongal8k6',
+ sourceFieldId: 'rt6bj37fpip85o17q505xeras',
+ targetFieldId: 'grbcz03z7xihwarkidet47sou',
sourceCardinality: 'many',
targetCardinality: 'one',
createdAt: Date.now(),
},
],
+ dependencies: [],
+ areas: [
+ {
+ id: '996x6m588q0qvl0ow8jnrerkm',
+ name: 'Actor',
+ x: -67.76213714534502,
+ y: 380.7908074634159,
+ width: 691,
+ height: 271,
+ color: '#ff9f74',
+ },
+ {
+ id: 'ilc86f56ejdsrmm0c35e0dnm1',
+ name: 'Store info',
+ x: -1194.6006424844563,
+ y: -285.0279668920198,
+ width: 726,
+ height: 626,
+ color: '#42e0c0',
+ },
+ {
+ id: 'mbr3xr9cifsmeziyiqfx1wpqe',
+ name: 'Film',
+ x: -39.20505509904933,
+ y: 686.5810977471396,
+ width: 1031,
+ height: 667,
+ color: '#8eb7ff',
+ },
+ {
+ id: 'qxwjfn8vxznjxhh0d0omiffvm',
+ name: 'Locations',
+ x: -720.9201952020898,
+ y: 376.84504502140646,
+ width: 610,
+ height: 759,
+ color: '#c05dcf',
+ },
+ {
+ id: 'ri8uegrx440a6kaqemmqsvv2p',
+ name: 'Rental',
+ x: 1.746300547304088,
+ y: -331.9341056404298,
+ width: 495,
+ height: 681,
+ color: '#b067e9',
+ },
+ ],
},
},
];