🎉 init

This commit is contained in:
2026-07-01 15:43:18 +02:00
commit 2f492c55be
64 changed files with 11645 additions and 0 deletions
@@ -0,0 +1,280 @@
{
"version": "6",
"dialect": "sqlite",
"id": "ff3f0e2c-da64-4a0c-8c38-7b5717b112ac",
"prevId": "c81712c7-479e-4818-9604-5e603434afac",
"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
},
"paypal_link": {
"name": "paypal_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": {}
}
}