366 lines
		
	
	
		
			No EOL
		
	
	
		
			9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			366 lines
		
	
	
		
			No EOL
		
	
	
		
			9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
  "version": "5",
 | 
						|
  "dialect": "mysql",
 | 
						|
  "id": "20bd9f86-c801-4ead-841c-558127978194",
 | 
						|
  "prevId": "00000000-0000-0000-0000-000000000000",
 | 
						|
  "tables": {
 | 
						|
    "sessions": {
 | 
						|
      "name": "sessions",
 | 
						|
      "columns": {
 | 
						|
        "token": {
 | 
						|
          "name": "token",
 | 
						|
          "type": "varchar(255)",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "userId": {
 | 
						|
          "name": "userId",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "expires": {
 | 
						|
          "name": "expires",
 | 
						|
          "type": "bigint",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "indexes": {},
 | 
						|
      "foreignKeys": {
 | 
						|
        "sessions_userId_users_table_id_fk": {
 | 
						|
          "name": "sessions_userId_users_table_id_fk",
 | 
						|
          "tableFrom": "sessions",
 | 
						|
          "tableTo": "users_table",
 | 
						|
          "columnsFrom": [
 | 
						|
            "userId"
 | 
						|
          ],
 | 
						|
          "columnsTo": [
 | 
						|
            "id"
 | 
						|
          ],
 | 
						|
          "onDelete": "cascade",
 | 
						|
          "onUpdate": "no action"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "compositePrimaryKeys": {
 | 
						|
        "sessions_token": {
 | 
						|
          "name": "sessions_token",
 | 
						|
          "columns": [
 | 
						|
            "token"
 | 
						|
          ]
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "uniqueConstraints": {},
 | 
						|
      "checkConstraint": {}
 | 
						|
    },
 | 
						|
    "survey_access_table": {
 | 
						|
      "name": "survey_access_table",
 | 
						|
      "columns": {
 | 
						|
        "id": {
 | 
						|
          "name": "id",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": true
 | 
						|
        },
 | 
						|
        "surveyId": {
 | 
						|
          "name": "surveyId",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "recepientEmail": {
 | 
						|
          "name": "recepientEmail",
 | 
						|
          "type": "text",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "accessToken": {
 | 
						|
          "name": "accessToken",
 | 
						|
          "type": "varchar(255)",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "indexes": {
 | 
						|
        "token_index": {
 | 
						|
          "name": "token_index",
 | 
						|
          "columns": [
 | 
						|
            "accessToken"
 | 
						|
          ],
 | 
						|
          "isUnique": false
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "foreignKeys": {
 | 
						|
        "survey_access_table_surveyId_surveys_table_id_fk": {
 | 
						|
          "name": "survey_access_table_surveyId_surveys_table_id_fk",
 | 
						|
          "tableFrom": "survey_access_table",
 | 
						|
          "tableTo": "surveys_table",
 | 
						|
          "columnsFrom": [
 | 
						|
            "surveyId"
 | 
						|
          ],
 | 
						|
          "columnsTo": [
 | 
						|
            "id"
 | 
						|
          ],
 | 
						|
          "onDelete": "cascade",
 | 
						|
          "onUpdate": "no action"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "compositePrimaryKeys": {
 | 
						|
        "survey_access_table_id": {
 | 
						|
          "name": "survey_access_table_id",
 | 
						|
          "columns": [
 | 
						|
            "id"
 | 
						|
          ]
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "uniqueConstraints": {},
 | 
						|
      "checkConstraint": {}
 | 
						|
    },
 | 
						|
    "survey_answers_table": {
 | 
						|
      "name": "survey_answers_table",
 | 
						|
      "columns": {
 | 
						|
        "participantId": {
 | 
						|
          "name": "participantId",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "skillId": {
 | 
						|
          "name": "skillId",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "rating": {
 | 
						|
          "name": "rating",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "indexes": {},
 | 
						|
      "foreignKeys": {
 | 
						|
        "survey_answers_table_participantId_survey_access_table_id_fk": {
 | 
						|
          "name": "survey_answers_table_participantId_survey_access_table_id_fk",
 | 
						|
          "tableFrom": "survey_answers_table",
 | 
						|
          "tableTo": "survey_access_table",
 | 
						|
          "columnsFrom": [
 | 
						|
            "participantId"
 | 
						|
          ],
 | 
						|
          "columnsTo": [
 | 
						|
            "id"
 | 
						|
          ],
 | 
						|
          "onDelete": "cascade",
 | 
						|
          "onUpdate": "no action"
 | 
						|
        },
 | 
						|
        "survey_answers_table_skillId_survey_skills_table_id_fk": {
 | 
						|
          "name": "survey_answers_table_skillId_survey_skills_table_id_fk",
 | 
						|
          "tableFrom": "survey_answers_table",
 | 
						|
          "tableTo": "survey_skills_table",
 | 
						|
          "columnsFrom": [
 | 
						|
            "skillId"
 | 
						|
          ],
 | 
						|
          "columnsTo": [
 | 
						|
            "id"
 | 
						|
          ],
 | 
						|
          "onDelete": "cascade",
 | 
						|
          "onUpdate": "no action"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "compositePrimaryKeys": {
 | 
						|
        "survey_answers_table_participantId_skillId_pk": {
 | 
						|
          "name": "survey_answers_table_participantId_skillId_pk",
 | 
						|
          "columns": [
 | 
						|
            "participantId",
 | 
						|
            "skillId"
 | 
						|
          ]
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "uniqueConstraints": {},
 | 
						|
      "checkConstraint": {}
 | 
						|
    },
 | 
						|
    "survey_skills_table": {
 | 
						|
      "name": "survey_skills_table",
 | 
						|
      "columns": {
 | 
						|
        "id": {
 | 
						|
          "name": "id",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": true
 | 
						|
        },
 | 
						|
        "surveyId": {
 | 
						|
          "name": "surveyId",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "title": {
 | 
						|
          "name": "title",
 | 
						|
          "type": "text",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "description": {
 | 
						|
          "name": "description",
 | 
						|
          "type": "text",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": false,
 | 
						|
          "autoincrement": false
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "indexes": {},
 | 
						|
      "foreignKeys": {
 | 
						|
        "survey_skills_table_surveyId_surveys_table_id_fk": {
 | 
						|
          "name": "survey_skills_table_surveyId_surveys_table_id_fk",
 | 
						|
          "tableFrom": "survey_skills_table",
 | 
						|
          "tableTo": "surveys_table",
 | 
						|
          "columnsFrom": [
 | 
						|
            "surveyId"
 | 
						|
          ],
 | 
						|
          "columnsTo": [
 | 
						|
            "id"
 | 
						|
          ],
 | 
						|
          "onDelete": "cascade",
 | 
						|
          "onUpdate": "no action"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "compositePrimaryKeys": {
 | 
						|
        "survey_skills_table_id": {
 | 
						|
          "name": "survey_skills_table_id",
 | 
						|
          "columns": [
 | 
						|
            "id"
 | 
						|
          ]
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "uniqueConstraints": {},
 | 
						|
      "checkConstraint": {}
 | 
						|
    },
 | 
						|
    "surveys_table": {
 | 
						|
      "name": "surveys_table",
 | 
						|
      "columns": {
 | 
						|
        "id": {
 | 
						|
          "name": "id",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": true
 | 
						|
        },
 | 
						|
        "title": {
 | 
						|
          "name": "title",
 | 
						|
          "type": "text",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "description": {
 | 
						|
          "name": "description",
 | 
						|
          "type": "text",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": false,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "owner": {
 | 
						|
          "name": "owner",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "indexes": {},
 | 
						|
      "foreignKeys": {
 | 
						|
        "surveys_table_owner_users_table_id_fk": {
 | 
						|
          "name": "surveys_table_owner_users_table_id_fk",
 | 
						|
          "tableFrom": "surveys_table",
 | 
						|
          "tableTo": "users_table",
 | 
						|
          "columnsFrom": [
 | 
						|
            "owner"
 | 
						|
          ],
 | 
						|
          "columnsTo": [
 | 
						|
            "id"
 | 
						|
          ],
 | 
						|
          "onDelete": "cascade",
 | 
						|
          "onUpdate": "no action"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "compositePrimaryKeys": {
 | 
						|
        "surveys_table_id": {
 | 
						|
          "name": "surveys_table_id",
 | 
						|
          "columns": [
 | 
						|
            "id"
 | 
						|
          ]
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "uniqueConstraints": {},
 | 
						|
      "checkConstraint": {}
 | 
						|
    },
 | 
						|
    "users_table": {
 | 
						|
      "name": "users_table",
 | 
						|
      "columns": {
 | 
						|
        "id": {
 | 
						|
          "name": "id",
 | 
						|
          "type": "int",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": true
 | 
						|
        },
 | 
						|
        "email": {
 | 
						|
          "name": "email",
 | 
						|
          "type": "text",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        },
 | 
						|
        "password_hash": {
 | 
						|
          "name": "password_hash",
 | 
						|
          "type": "text",
 | 
						|
          "primaryKey": false,
 | 
						|
          "notNull": true,
 | 
						|
          "autoincrement": false
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "indexes": {},
 | 
						|
      "foreignKeys": {},
 | 
						|
      "compositePrimaryKeys": {
 | 
						|
        "users_table_id": {
 | 
						|
          "name": "users_table_id",
 | 
						|
          "columns": [
 | 
						|
            "id"
 | 
						|
          ]
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "uniqueConstraints": {
 | 
						|
        "users_table_email_unique": {
 | 
						|
          "name": "users_table_email_unique",
 | 
						|
          "columns": [
 | 
						|
            "email"
 | 
						|
          ]
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "checkConstraint": {}
 | 
						|
    }
 | 
						|
  },
 | 
						|
  "views": {},
 | 
						|
  "_meta": {
 | 
						|
    "schemas": {},
 | 
						|
    "tables": {},
 | 
						|
    "columns": {}
 | 
						|
  },
 | 
						|
  "internal": {
 | 
						|
    "tables": {},
 | 
						|
    "indexes": {}
 | 
						|
  }
 | 
						|
} |