mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 02:29:03 +00:00 
			
		
		
		
	
		
			
	
	
		
			573 lines
		
	
	
		
			16 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
		
		
			
		
	
	
			573 lines
		
	
	
		
			16 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
|   | { | ||
|  |   "tables": [ | ||
|  |     { | ||
|  |       "name": "Tags", | ||
|  |       "displayName": null, | ||
|  |       "fullyQualifiedName": "mysql_sample.default.new_er_database.Tags", | ||
|  |       "description": null, | ||
|  |       "tableType": "Regular", | ||
|  |       "columns": [ | ||
|  |         { | ||
|  |           "name": "tag_id", | ||
|  |           "dataType": "INT", | ||
|  |           "dataLength": 1, | ||
|  |           "description": null, | ||
|  |           "constraint": "PRIMARY_KEY", | ||
|  |           "ordinalPosition": 1 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "name", | ||
|  |           "dataType": "VARCHAR", | ||
|  |           "dataLength": 100, | ||
|  |           "dataTypeDisplay": "varchar(100)", | ||
|  |           "description": null, | ||
|  |           "constraint": "NOT_NULL", | ||
|  |           "ordinalPosition": 2 | ||
|  |         } | ||
|  |       ], | ||
|  |       "databaseSchema": { | ||
|  |         "id": "5f40fbdc-7652-4bb5-8dd8-5834c382b8cf", | ||
|  |         "type": "databaseSchema", | ||
|  |         "name": "new_er_database", | ||
|  |         "fullyQualifiedName": "mysql_sample.default.new_er_database", | ||
|  |         "description": null, | ||
|  |         "displayName": "new_er_database", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "database": { | ||
|  |         "id": "9ec40d31-2cc3-434b-b79e-93a22ffb695b", | ||
|  |         "type": "database", | ||
|  |         "name": "default", | ||
|  |         "fullyQualifiedName": "mysql_sample.default", | ||
|  |         "description": null, | ||
|  |         "displayName": "default", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "service": { | ||
|  |         "id": "93fd8fbb-cecd-46b5-ae9a-0f6cda13a923", | ||
|  |         "type": "databaseService", | ||
|  |         "name": "mysql_sample", | ||
|  |         "fullyQualifiedName": "mysql_sample", | ||
|  |         "description": null, | ||
|  |         "displayName": "mysql_sample", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       } | ||
|  |     }, | ||
|  |     { | ||
|  |       "name": "Users", | ||
|  |       "displayName": null, | ||
|  |       "fullyQualifiedName": "mysql_sample.default.new_er_database.Users", | ||
|  |       "description": null, | ||
|  |       "tableType": "Regular", | ||
|  |       "columns": [ | ||
|  |         { | ||
|  |           "name": "user_id", | ||
|  |           "dataType": "INT", | ||
|  |           "dataLength": 1, | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "constraint": "PRIMARY_KEY", | ||
|  |           "ordinalPosition": 1 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "username", | ||
|  |           "dataType": "VARCHAR", | ||
|  |           "dataLength": 50, | ||
|  |           "dataTypeDisplay": "varchar(50)", | ||
|  |           "constraint": "NOT_NULL", | ||
|  |           "ordinalPosition": 2 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "email", | ||
|  |           "dataType": "VARCHAR", | ||
|  |           "dataLength": 100, | ||
|  |           "dataTypeDisplay": "varchar(100)", | ||
|  |           "constraint": "NOT_NULL", | ||
|  |           "ordinalPosition": 3 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "created_at", | ||
|  |           "dataType": "TIMESTAMP", | ||
|  |           "dataLength": 1, | ||
|  |           "dataTypeDisplay": "timestamp", | ||
|  |           "constraint": "NULL", | ||
|  |           "ordinalPosition": 4 | ||
|  |         } | ||
|  |       ], | ||
|  |       "databaseSchema": { | ||
|  |         "id": "5f40fbdc-7652-4bb5-8dd8-5834c382b8cf", | ||
|  |         "type": "databaseSchema", | ||
|  |         "name": "new_er_database", | ||
|  |         "fullyQualifiedName": "mysql_sample.default.new_er_database", | ||
|  |         "description": null, | ||
|  |         "displayName": "new_er_database", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "database": { | ||
|  |         "id": "9ec40d31-2cc3-434b-b79e-93a22ffb695b", | ||
|  |         "type": "database", | ||
|  |         "name": "default", | ||
|  |         "fullyQualifiedName": "mysql_sample.default", | ||
|  |         "description": null, | ||
|  |         "displayName": "default", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "service": { | ||
|  |         "id": "93fd8fbb-cecd-46b5-ae9a-0f6cda13a923", | ||
|  |         "type": "databaseService", | ||
|  |         "name": "mysql_sample", | ||
|  |         "fullyQualifiedName": "mysql_sample", | ||
|  |         "description": null, | ||
|  |         "displayName": "mysql_sample", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       } | ||
|  |     }, | ||
|  |     { | ||
|  |       "name": "Categories", | ||
|  |       "displayName": null, | ||
|  |       "fullyQualifiedName": "mysql_sample.default.posts_db.Categories", | ||
|  |       "description": null, | ||
|  |       "tableType": "Regular", | ||
|  |       "columns": [ | ||
|  |         { | ||
|  |           "name": "category_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataLength": 100, | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": "PRIMARY_KEY", | ||
|  |           "ordinalPosition": 1 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "name", | ||
|  |           "dataType": "VARCHAR", | ||
|  |           "dataLength": 100, | ||
|  |           "dataTypeDisplay": "varchar(100)", | ||
|  |           "description": null, | ||
|  |           "constraint": "NOT_NULL", | ||
|  |           "ordinalPosition": 2 | ||
|  |         } | ||
|  |       ], | ||
|  |       "databaseSchema": { | ||
|  |         "type": "databaseSchema", | ||
|  |         "name": "posts_db", | ||
|  |         "fullyQualifiedName": "mysql_sample.default.posts_db", | ||
|  |         "description": null, | ||
|  |         "displayName": "posts_db", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "database": { | ||
|  |         "type": "database", | ||
|  |         "name": "default", | ||
|  |         "fullyQualifiedName": "mysql_sample.default", | ||
|  |         "description": null, | ||
|  |         "displayName": "default", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "service": { | ||
|  |         "type": "databaseService", | ||
|  |         "name": "mysql_sample", | ||
|  |         "fullyQualifiedName": "mysql_sample", | ||
|  |         "description": null, | ||
|  |         "displayName": "mysql_sample", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       } | ||
|  |     }, | ||
|  |     { | ||
|  |       "name": "Comments", | ||
|  |       "displayName": null, | ||
|  |       "fullyQualifiedName": "mysql_sample.default.posts_db.Comments", | ||
|  |       "description": null, | ||
|  |       "tableType": "Regular", | ||
|  |       "columns": [ | ||
|  |         { | ||
|  |           "name": "comment_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": "PRIMARY_KEY", | ||
|  |           "ordinalPosition": 1 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "post_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": "NULL", | ||
|  |           "ordinalPosition": 2 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "user_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": "NULL", | ||
|  |           "ordinalPosition": 3 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "comment", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "TEXT", | ||
|  |           "dataTypeDisplay": "text", | ||
|  |           "description": null, | ||
|  |           "constraint": "NOT_NULL", | ||
|  |           "ordinalPosition": 4 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "created_at", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "TIMESTAMP", | ||
|  |           "dataTypeDisplay": "timestamp", | ||
|  |           "description": null, | ||
|  |           "constraint": "NULL", | ||
|  |           "ordinalPosition": 5 | ||
|  |         } | ||
|  |       ], | ||
|  |       "tableConstraints": [ | ||
|  |         { | ||
|  |           "constraintType": "FOREIGN_KEY", | ||
|  |           "columns": [ | ||
|  |             "post_id" | ||
|  |           ], | ||
|  |           "referredColumns": [ | ||
|  |             "mysql_sample.default.posts_db.Posts.post_id" | ||
|  |           ], | ||
|  |           "relationshipType": "MANY_TO_ONE" | ||
|  |         }, | ||
|  |         { | ||
|  |           "constraintType": "FOREIGN_KEY", | ||
|  |           "columns": [ | ||
|  |             "user_id" | ||
|  |           ], | ||
|  |           "referredColumns": [ | ||
|  |             "mysql_sample.default.posts_db.Users.user_id" | ||
|  |           ], | ||
|  |           "relationshipType": "MANY_TO_ONE" | ||
|  |         } | ||
|  |       ], | ||
|  |       "databaseSchema": { | ||
|  |         "type": "databaseSchema", | ||
|  |         "name": "posts_db", | ||
|  |         "fullyQualifiedName": "mysql_sample.default.posts_db", | ||
|  |         "description": null, | ||
|  |         "displayName": "posts_db", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "database": { | ||
|  |         "type": "database", | ||
|  |         "name": "default", | ||
|  |         "fullyQualifiedName": "mysql_sample.default", | ||
|  |         "description": null, | ||
|  |         "displayName": "default", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "service": { | ||
|  |         "type": "databaseService", | ||
|  |         "name": "mysql_sample", | ||
|  |         "fullyQualifiedName": "mysql_sample", | ||
|  |         "description": null, | ||
|  |         "displayName": "mysql_sample", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       } | ||
|  |     }, | ||
|  |     { | ||
|  |       "name": "Posts", | ||
|  |       "displayName": null, | ||
|  |       "fullyQualifiedName": "mysql_sample.default.posts_db.Posts", | ||
|  |       "description": null, | ||
|  |       "tableType": "Regular", | ||
|  |       "columns": [ | ||
|  |         { | ||
|  |           "name": "post_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": "PRIMARY_KEY", | ||
|  |           "ordinalPosition": 1 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "user_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": "NULL", | ||
|  |           "ordinalPosition": 2 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "category_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": "NULL", | ||
|  |           "ordinalPosition": 3 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "title", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "VARCHAR", | ||
|  |           "arrayDataType": null, | ||
|  |           "dataLength": 255, | ||
|  |           "precision": null, | ||
|  |           "scale": null, | ||
|  |           "dataTypeDisplay": "varchar(255)", | ||
|  |           "description": null, | ||
|  |           "constraint": "NOT_NULL", | ||
|  |           "ordinalPosition": 4 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "content", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "TEXT", | ||
|  |           "dataTypeDisplay": "text", | ||
|  |           "description": null, | ||
|  |           "constraint": "NOT_NULL", | ||
|  |           "ordinalPosition": 5 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "created_at", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "TIMESTAMP", | ||
|  |           "dataTypeDisplay": "timestamp", | ||
|  |           "description": null, | ||
|  |           "constraint": "NULL", | ||
|  |           "ordinalPosition": 6 | ||
|  |         } | ||
|  |       ], | ||
|  |       "tableConstraints": [ | ||
|  |         { | ||
|  |           "constraintType": "FOREIGN_KEY", | ||
|  |           "columns": [ | ||
|  |             "user_id" | ||
|  |           ], | ||
|  |           "referredColumns": [ | ||
|  |             "mysql_sample.default.posts_db.Users.user_id" | ||
|  |           ], | ||
|  |           "relationshipType": "MANY_TO_ONE" | ||
|  |         }, | ||
|  |         { | ||
|  |           "constraintType": "FOREIGN_KEY", | ||
|  |           "columns": [ | ||
|  |             "category_id" | ||
|  |           ], | ||
|  |           "referredColumns": [ | ||
|  |             "mysql_sample.default.posts_db.Categories.category_id" | ||
|  |           ], | ||
|  |           "relationshipType": "MANY_TO_ONE" | ||
|  |         } | ||
|  |       ], | ||
|  |       "databaseSchema": { | ||
|  |         "id": "3b2c045a-03ea-4303-abf3-082ac4e73804", | ||
|  |         "type": "databaseSchema", | ||
|  |         "name": "posts_db", | ||
|  |         "fullyQualifiedName": "mysql_sample.default.posts_db", | ||
|  |         "description": null, | ||
|  |         "displayName": "posts_db", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "database": { | ||
|  |         "id": "c1a9f3bf-8bb8-43e3-beeb-e4c2293b977a", | ||
|  |         "type": "database", | ||
|  |         "name": "default", | ||
|  |         "fullyQualifiedName": "mysql_sample.default", | ||
|  |         "description": null, | ||
|  |         "displayName": "default", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "service": { | ||
|  |         "id": "c0382692-7cf3-40b7-9aa7-b14bf2cbecdd", | ||
|  |         "type": "databaseService", | ||
|  |         "name": "mysql_sample", | ||
|  |         "fullyQualifiedName": "mysql_sample", | ||
|  |         "description": null, | ||
|  |         "displayName": "mysql_sample", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       } | ||
|  |     }, | ||
|  |     { | ||
|  |       "name": "PostTags", | ||
|  |       "displayName": null, | ||
|  |       "fullyQualifiedName": "mysql_sample.default.posts_db.PostTags", | ||
|  |       "description": "testdesc2", | ||
|  |       "tableType": "Regular", | ||
|  |       "columns": [ | ||
|  |         { | ||
|  |           "name": "post_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": null, | ||
|  |           "ordinalPosition": 1 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "tag_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": null, | ||
|  |           "ordinalPosition": 2 | ||
|  |         } | ||
|  |       ], | ||
|  |       "tableConstraints": [ | ||
|  |         { | ||
|  |           "constraintType": "PRIMARY_KEY", | ||
|  |           "columns": [ | ||
|  |             "post_id", | ||
|  |             "tag_id" | ||
|  |           ], | ||
|  |           "referredColumns": null, | ||
|  |           "relationshipType": null | ||
|  |         }, | ||
|  |         { | ||
|  |           "constraintType": "FOREIGN_KEY", | ||
|  |           "columns": [ | ||
|  |             "post_id" | ||
|  |           ], | ||
|  |           "referredColumns": [ | ||
|  |             "mysql_sample.default.posts_db.Posts.post_id" | ||
|  |           ], | ||
|  |           "relationshipType": "MANY_TO_ONE" | ||
|  |         }, | ||
|  |         { | ||
|  |           "constraintType": "FOREIGN_KEY", | ||
|  |           "columns": [ | ||
|  |             "tag_id" | ||
|  |           ], | ||
|  |           "referredColumns": [ | ||
|  |             "mysql_sample.default.posts_db.Tags.tag_id" | ||
|  |           ], | ||
|  |           "relationshipType": "MANY_TO_ONE" | ||
|  |         } | ||
|  |       ], | ||
|  |       "databaseSchema": { | ||
|  |         "type": "databaseSchema", | ||
|  |         "name": "posts_db", | ||
|  |         "fullyQualifiedName": "mysql_sample.default.posts_db", | ||
|  |         "description": null, | ||
|  |         "displayName": "posts_db", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "database": { | ||
|  |         "id": "c1a9f3bf-8bb8-43e3-beeb-e4c2293b977a", | ||
|  |         "type": "database", | ||
|  |         "name": "default", | ||
|  |         "fullyQualifiedName": "mysql_sample.default", | ||
|  |         "description": null, | ||
|  |         "displayName": "default", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "service": { | ||
|  |         "id": "c0382692-7cf3-40b7-9aa7-b14bf2cbecdd", | ||
|  |         "type": "databaseService", | ||
|  |         "name": "mysql_sample", | ||
|  |         "fullyQualifiedName": "mysql_sample", | ||
|  |         "description": null, | ||
|  |         "displayName": "mysql_sample", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       } | ||
|  |     }, | ||
|  |     { | ||
|  |       "name": "Profiles", | ||
|  |       "displayName": null, | ||
|  |       "fullyQualifiedName": "mysql_sample.default.posts_db.Profiles", | ||
|  |       "description": null, | ||
|  |       "tableType": "Regular", | ||
|  |       "columns": [ | ||
|  |         { | ||
|  |           "name": "profile_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": "PRIMARY_KEY", | ||
|  |           "ordinalPosition": 1 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "user_id", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "INT", | ||
|  |           "dataTypeDisplay": "int", | ||
|  |           "description": null, | ||
|  |           "constraint": "UNIQUE", | ||
|  |           "ordinalPosition": 2 | ||
|  |         }, | ||
|  |         { | ||
|  |           "name": "bio", | ||
|  |           "displayName": null, | ||
|  |           "dataType": "TEXT", | ||
|  |           "dataTypeDisplay": "text", | ||
|  |           "description": null, | ||
|  |           "constraint": "NULL", | ||
|  |           "ordinalPosition": 3 | ||
|  |         } | ||
|  |       ], | ||
|  |       "tableConstraints": [ | ||
|  |         { | ||
|  |           "constraintType": "FOREIGN_KEY", | ||
|  |           "columns": [ | ||
|  |             "user_id" | ||
|  |           ], | ||
|  |           "referredColumns": [ | ||
|  |             "mysql_sample.default.posts_db.Users.user_id" | ||
|  |           ], | ||
|  |           "relationshipType": "ONE_TO_ONE" | ||
|  |         } | ||
|  |       ], | ||
|  |       "databaseSchema": { | ||
|  |         "id": "3b2c045a-03ea-4303-abf3-082ac4e73804", | ||
|  |         "type": "databaseSchema", | ||
|  |         "name": "posts_db", | ||
|  |         "fullyQualifiedName": "mysql_sample.default.posts_db", | ||
|  |         "description": null, | ||
|  |         "displayName": "posts_db", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "database": { | ||
|  |         "id": "c1a9f3bf-8bb8-43e3-beeb-e4c2293b977a", | ||
|  |         "type": "database", | ||
|  |         "name": "default", | ||
|  |         "fullyQualifiedName": "mysql_sample.default", | ||
|  |         "description": null, | ||
|  |         "displayName": "default", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       }, | ||
|  |       "service": { | ||
|  |         "id": "c0382692-7cf3-40b7-9aa7-b14bf2cbecdd", | ||
|  |         "type": "databaseService", | ||
|  |         "name": "mysql_sample", | ||
|  |         "fullyQualifiedName": "mysql_sample", | ||
|  |         "description": null, | ||
|  |         "displayName": "mysql_sample", | ||
|  |         "deleted": false, | ||
|  |         "inherited": null | ||
|  |       } | ||
|  |     } | ||
|  |   ] | ||
|  | } |