mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-08-06 21:55:18 +02:00
135 lines
3 KiB
JSON
135 lines
3 KiB
JSON
|
{
|
||
|
"id": "b0849b3e-02e1-42e1-b07c-6fa613c98e82",
|
||
|
"prevId": "e91dda33-e04e-4e99-a297-21a34aa35493",
|
||
|
"version": "5",
|
||
|
"dialect": "pg",
|
||
|
"tables": {
|
||
|
"featuredAdventures": {
|
||
|
"name": "featuredAdventures",
|
||
|
"schema": "",
|
||
|
"columns": {
|
||
|
"id": {
|
||
|
"name": "id",
|
||
|
"type": "serial",
|
||
|
"primaryKey": true,
|
||
|
"notNull": true
|
||
|
},
|
||
|
"name": {
|
||
|
"name": "name",
|
||
|
"type": "text",
|
||
|
"primaryKey": false,
|
||
|
"notNull": true
|
||
|
},
|
||
|
"location": {
|
||
|
"name": "location",
|
||
|
"type": "text",
|
||
|
"primaryKey": false,
|
||
|
"notNull": false
|
||
|
}
|
||
|
},
|
||
|
"indexes": {},
|
||
|
"foreignKeys": {},
|
||
|
"compositePrimaryKeys": {},
|
||
|
"uniqueConstraints": {}
|
||
|
},
|
||
|
"session": {
|
||
|
"name": "session",
|
||
|
"schema": "",
|
||
|
"columns": {
|
||
|
"id": {
|
||
|
"name": "id",
|
||
|
"type": "text",
|
||
|
"primaryKey": true,
|
||
|
"notNull": true
|
||
|
},
|
||
|
"user_id": {
|
||
|
"name": "user_id",
|
||
|
"type": "text",
|
||
|
"primaryKey": false,
|
||
|
"notNull": true
|
||
|
},
|
||
|
"expires_at": {
|
||
|
"name": "expires_at",
|
||
|
"type": "timestamp with time zone",
|
||
|
"primaryKey": false,
|
||
|
"notNull": true
|
||
|
}
|
||
|
},
|
||
|
"indexes": {},
|
||
|
"foreignKeys": {
|
||
|
"session_user_id_user_id_fk": {
|
||
|
"name": "session_user_id_user_id_fk",
|
||
|
"tableFrom": "session",
|
||
|
"tableTo": "user",
|
||
|
"columnsFrom": [
|
||
|
"user_id"
|
||
|
],
|
||
|
"columnsTo": [
|
||
|
"id"
|
||
|
],
|
||
|
"onDelete": "no action",
|
||
|
"onUpdate": "no action"
|
||
|
}
|
||
|
},
|
||
|
"compositePrimaryKeys": {},
|
||
|
"uniqueConstraints": {}
|
||
|
},
|
||
|
"sharedAdventures": {
|
||
|
"name": "sharedAdventures",
|
||
|
"schema": "",
|
||
|
"columns": {
|
||
|
"id": {
|
||
|
"name": "id",
|
||
|
"type": "text",
|
||
|
"primaryKey": true,
|
||
|
"notNull": true
|
||
|
},
|
||
|
"data": {
|
||
|
"name": "data",
|
||
|
"type": "json",
|
||
|
"primaryKey": false,
|
||
|
"notNull": true
|
||
|
}
|
||
|
},
|
||
|
"indexes": {},
|
||
|
"foreignKeys": {},
|
||
|
"compositePrimaryKeys": {},
|
||
|
"uniqueConstraints": {}
|
||
|
},
|
||
|
"user": {
|
||
|
"name": "user",
|
||
|
"schema": "",
|
||
|
"columns": {
|
||
|
"id": {
|
||
|
"name": "id",
|
||
|
"type": "text",
|
||
|
"primaryKey": true,
|
||
|
"notNull": true
|
||
|
},
|
||
|
"username": {
|
||
|
"name": "username",
|
||
|
"type": "text",
|
||
|
"primaryKey": false,
|
||
|
"notNull": true
|
||
|
},
|
||
|
"hashed_password": {
|
||
|
"name": "hashed_password",
|
||
|
"type": "varchar",
|
||
|
"primaryKey": false,
|
||
|
"notNull": true
|
||
|
}
|
||
|
},
|
||
|
"indexes": {},
|
||
|
"foreignKeys": {},
|
||
|
"compositePrimaryKeys": {},
|
||
|
"uniqueConstraints": {}
|
||
|
}
|
||
|
},
|
||
|
"enums": {},
|
||
|
"schemas": {},
|
||
|
"_meta": {
|
||
|
"columns": {},
|
||
|
"schemas": {},
|
||
|
"tables": {}
|
||
|
}
|
||
|
}
|