Files
splitt-the-bill/server/database/migrations/meta/0002_snapshot.json
T
anbraten cbe1b42f6e
tinyedge/deploy Deployed by TinyEdge
🐛 add env to useDb and apply prettier
2026-08-07 13:28:26 +02:00

255 lines
6.7 KiB
JSON

{
"version": "6",
"dialect": "sqlite",
"id": "f2f62ba6-53b9-43b7-bbd2-3dd5bdaa21fe",
"prevId": "ff3f0e2c-da64-4a0c-8c38-7b5717b112ac",
"tables": {
"expense_participants": {
"name": "expense_participants",
"columns": {
"expense_id": {
"name": "expense_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"participant_id": {
"name": "participant_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"expense_participants_expense_id_idx": {
"name": "expense_participants_expense_id_idx",
"columns": ["expense_id"],
"isUnique": false
}
},
"foreignKeys": {
"expense_participants_expense_id_expenses_id_fk": {
"name": "expense_participants_expense_id_expenses_id_fk",
"tableFrom": "expense_participants",
"tableTo": "expenses",
"columnsFrom": ["expense_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
"expense_participants_participant_id_participants_id_fk": {
"name": "expense_participants_participant_id_participants_id_fk",
"tableFrom": "expense_participants",
"tableTo": "participants",
"columnsFrom": ["participant_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"expenses": {
"name": "expenses",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"pot_slug": {
"name": "pot_slug",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"type": {
"name": "type",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'expense'"
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"amount_cents": {
"name": "amount_cents",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"payer_id": {
"name": "payer_id",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "(unixepoch())"
}
},
"indexes": {
"expenses_pot_slug_idx": {
"name": "expenses_pot_slug_idx",
"columns": ["pot_slug"],
"isUnique": false
}
},
"foreignKeys": {
"expenses_pot_slug_pots_slug_fk": {
"name": "expenses_pot_slug_pots_slug_fk",
"tableFrom": "expenses",
"tableTo": "pots",
"columnsFrom": ["pot_slug"],
"columnsTo": ["slug"],
"onDelete": "no action",
"onUpdate": "no action"
},
"expenses_payer_id_participants_id_fk": {
"name": "expenses_payer_id_participants_id_fk",
"tableFrom": "expenses",
"tableTo": "participants",
"columnsFrom": ["payer_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"participants": {
"name": "participants",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"pot_slug": {
"name": "pot_slug",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"payment_link": {
"name": "payment_link",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "(unixepoch())"
}
},
"indexes": {
"participants_pot_slug_idx": {
"name": "participants_pot_slug_idx",
"columns": ["pot_slug"],
"isUnique": false
}
},
"foreignKeys": {
"participants_pot_slug_pots_slug_fk": {
"name": "participants_pot_slug_pots_slug_fk",
"tableFrom": "participants",
"tableTo": "pots",
"columnsFrom": ["pot_slug"],
"columnsTo": ["slug"],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"pots": {
"name": "pots",
"columns": {
"slug": {
"name": "slug",
"type": "text",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"currency": {
"name": "currency",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "(unixepoch())"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
}
},
"views": {},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
},
"internal": {
"indexes": {}
}
}