Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "plugins": {
- "buildinfo": {}
- },
- "root": "metadata",
- "nodes": {
- "metadata": {
- "properties": {
- "roles": {
- "type": {
- "reference": false,
- "array": true,
- "object": "role"
- }
- },
- "persons": {
- "type": {
- "reference": false,
- "array": true,
- "object": "person"
- }
- },
- "tables": {
- "type": {
- "reference": "false",
- "array": "true",
- "object": "table"
- }
- }
- }
- },
- "person": {
- "properties": {
- "userId": {
- "type": {
- "type": "string"
- }
- },
- "username": {
- "type": {
- "type": "string"
- }
- },
- "firstName": {
- "type": {
- "type": "string"
- }
- },
- "lastName": {
- "type": {
- "type": "string"
- }
- },
- "email": {
- "type": {
- "type": "string"
- }
- },
- "roles": {
- "type": {
- "reference": false,
- "array": true,
- "object": "roleReference"
- }
- }
- },
- "constraints": [
- {
- "type": "UNIQUE",
- "id": "PERSON_UNIQUE_USER_ID",
- "scope": "WITHIN_PARENT",
- "properties": [
- "userId"
- ]
- }
- ]
- },
- "roleReference": {
- "properties": {
- "role": {
- "type": {
- "reference": true,
- "array": false,
- "object": "role"
- }
- }
- },
- "constraints": [
- {
- "type": "UNIQUE",
- "id": "ROLE_REFERENCE_UNIQUE_ROLE",
- "scope": "WITHIN_PARENT",
- "properties": [
- "role"
- ]
- }
- ]
- },
- "personReference": {
- "properties": {
- "person": {
- "type": {
- "reference": true,
- "array": false,
- "object": "person"
- }
- }
- },
- "constraints": [
- {
- "type": "UNIQUE",
- "id": "PERSON_REFERENCE_UNIQUE_ROLE",
- "scope": "WITHIN_PARENT",
- "properties": [
- "person"
- ]
- }
- ]
- },
- "role": {
- "properties": {
- "id": {
- "type": {
- "type": "string"
- }
- },
- "name": {
- "type": {
- "type": "string"
- }
- },
- "description": {
- "type": {
- "type": "string"
- }
- },
- "persons": {
- "type": {
- "reference": false,
- "array": true,
- "object": "personReference"
- }
- }
- },
- "constraints": [
- {
- "type": "UNIQUE",
- "id": "ROLE_UNIQUE_ID",
- "scope": "WITHIN_PARENT",
- "properties": [
- "id"
- ]
- }, {
- "type": "UNIQUE",
- "id": "ROLE_UNIQUE_NAME",
- "scope": "WITHIN_PARENT",
- "properties": [
- "name"
- ]
- }
- ]
- },
- "table": {
- "properties": {
- "stringProperty": {
- "type": {
- "type": "string"
- }
- },
- "booleanProperty": {
- "type": {
- "type": "boolean"
- }
- },
- "longProperty": {
- "type": {
- "type": "long"
- }
- },
- "intProperty": {
- "type": {
- "type": "integer"
- }
- },
- "doubleProperty": {
- "type": {
- "type": "double"
- }
- },
- "floatProperty": {
- "type": {
- "type": "float"
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement