Files
beenvoice/drizzle/meta/0000_snapshot.json
Sean O'Connor a1b40e7a9c Add Turso/Vercel deployment configuration
- Updated database connection to support Turso auth token
- Added vercel.json with bun build configuration
- Updated environment schema for production deployment
- Added new features and components for production readiness
2025-07-12 01:42:43 -04:00

884 lines
23 KiB
JSON

{
"version": "6",
"dialect": "sqlite",
"id": "d29d5fc3-5c1a-4506-b057-2c117bcd2017",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"beenvoice_account": {
"name": "beenvoice_account",
"columns": {
"userId": {
"name": "userId",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"type": {
"name": "type",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"provider": {
"name": "provider",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"providerAccountId": {
"name": "providerAccountId",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"refresh_token": {
"name": "refresh_token",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"access_token": {
"name": "access_token",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"expires_at": {
"name": "expires_at",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"token_type": {
"name": "token_type",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"scope": {
"name": "scope",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"id_token": {
"name": "id_token",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"session_state": {
"name": "session_state",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {
"account_user_id_idx": {
"name": "account_user_id_idx",
"columns": [
"userId"
],
"isUnique": false
}
},
"foreignKeys": {
"beenvoice_account_userId_beenvoice_user_id_fk": {
"name": "beenvoice_account_userId_beenvoice_user_id_fk",
"tableFrom": "beenvoice_account",
"tableTo": "beenvoice_user",
"columnsFrom": [
"userId"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {
"beenvoice_account_provider_providerAccountId_pk": {
"columns": [
"provider",
"providerAccountId"
],
"name": "beenvoice_account_provider_providerAccountId_pk"
}
},
"uniqueConstraints": {},
"checkConstraints": {}
},
"beenvoice_business": {
"name": "beenvoice_business",
"columns": {
"id": {
"name": "id",
"type": "text(255)",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"phone": {
"name": "phone",
"type": "text(50)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"addressLine1": {
"name": "addressLine1",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"addressLine2": {
"name": "addressLine2",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"city": {
"name": "city",
"type": "text(100)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"state": {
"name": "state",
"type": "text(50)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"postalCode": {
"name": "postalCode",
"type": "text(20)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"country": {
"name": "country",
"type": "text(100)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"website": {
"name": "website",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"taxId": {
"name": "taxId",
"type": "text(100)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"logoUrl": {
"name": "logoUrl",
"type": "text(500)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"isDefault": {
"name": "isDefault",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": false
},
"createdById": {
"name": "createdById",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"createdAt": {
"name": "createdAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "(unixepoch())"
},
"updatedAt": {
"name": "updatedAt",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {
"business_created_by_idx": {
"name": "business_created_by_idx",
"columns": [
"createdById"
],
"isUnique": false
},
"business_name_idx": {
"name": "business_name_idx",
"columns": [
"name"
],
"isUnique": false
},
"business_email_idx": {
"name": "business_email_idx",
"columns": [
"email"
],
"isUnique": false
},
"business_is_default_idx": {
"name": "business_is_default_idx",
"columns": [
"isDefault"
],
"isUnique": false
}
},
"foreignKeys": {
"beenvoice_business_createdById_beenvoice_user_id_fk": {
"name": "beenvoice_business_createdById_beenvoice_user_id_fk",
"tableFrom": "beenvoice_business",
"tableTo": "beenvoice_user",
"columnsFrom": [
"createdById"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"beenvoice_client": {
"name": "beenvoice_client",
"columns": {
"id": {
"name": "id",
"type": "text(255)",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"phone": {
"name": "phone",
"type": "text(50)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"addressLine1": {
"name": "addressLine1",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"addressLine2": {
"name": "addressLine2",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"city": {
"name": "city",
"type": "text(100)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"state": {
"name": "state",
"type": "text(50)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"postalCode": {
"name": "postalCode",
"type": "text(20)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"country": {
"name": "country",
"type": "text(100)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"createdById": {
"name": "createdById",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"createdAt": {
"name": "createdAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "(unixepoch())"
},
"updatedAt": {
"name": "updatedAt",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {
"client_created_by_idx": {
"name": "client_created_by_idx",
"columns": [
"createdById"
],
"isUnique": false
},
"client_name_idx": {
"name": "client_name_idx",
"columns": [
"name"
],
"isUnique": false
},
"client_email_idx": {
"name": "client_email_idx",
"columns": [
"email"
],
"isUnique": false
}
},
"foreignKeys": {
"beenvoice_client_createdById_beenvoice_user_id_fk": {
"name": "beenvoice_client_createdById_beenvoice_user_id_fk",
"tableFrom": "beenvoice_client",
"tableTo": "beenvoice_user",
"columnsFrom": [
"createdById"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"beenvoice_invoice_item": {
"name": "beenvoice_invoice_item",
"columns": {
"id": {
"name": "id",
"type": "text(255)",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"invoiceId": {
"name": "invoiceId",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"date": {
"name": "date",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"description": {
"name": "description",
"type": "text(500)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"hours": {
"name": "hours",
"type": "real",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"rate": {
"name": "rate",
"type": "real",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"amount": {
"name": "amount",
"type": "real",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"position": {
"name": "position",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 0
},
"createdAt": {
"name": "createdAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "(unixepoch())"
}
},
"indexes": {
"invoice_item_invoice_id_idx": {
"name": "invoice_item_invoice_id_idx",
"columns": [
"invoiceId"
],
"isUnique": false
},
"invoice_item_date_idx": {
"name": "invoice_item_date_idx",
"columns": [
"date"
],
"isUnique": false
},
"invoice_item_position_idx": {
"name": "invoice_item_position_idx",
"columns": [
"position"
],
"isUnique": false
}
},
"foreignKeys": {
"beenvoice_invoice_item_invoiceId_beenvoice_invoice_id_fk": {
"name": "beenvoice_invoice_item_invoiceId_beenvoice_invoice_id_fk",
"tableFrom": "beenvoice_invoice_item",
"tableTo": "beenvoice_invoice",
"columnsFrom": [
"invoiceId"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"beenvoice_invoice": {
"name": "beenvoice_invoice",
"columns": {
"id": {
"name": "id",
"type": "text(255)",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"invoiceNumber": {
"name": "invoiceNumber",
"type": "text(100)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"businessId": {
"name": "businessId",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"clientId": {
"name": "clientId",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"issueDate": {
"name": "issueDate",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"dueDate": {
"name": "dueDate",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"status": {
"name": "status",
"type": "text(50)",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "'draft'"
},
"totalAmount": {
"name": "totalAmount",
"type": "real",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 0
},
"taxRate": {
"name": "taxRate",
"type": "real",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": 0
},
"notes": {
"name": "notes",
"type": "text(1000)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"createdById": {
"name": "createdById",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"createdAt": {
"name": "createdAt",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": "(unixepoch())"
},
"updatedAt": {
"name": "updatedAt",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {
"invoice_business_id_idx": {
"name": "invoice_business_id_idx",
"columns": [
"businessId"
],
"isUnique": false
},
"invoice_client_id_idx": {
"name": "invoice_client_id_idx",
"columns": [
"clientId"
],
"isUnique": false
},
"invoice_created_by_idx": {
"name": "invoice_created_by_idx",
"columns": [
"createdById"
],
"isUnique": false
},
"invoice_number_idx": {
"name": "invoice_number_idx",
"columns": [
"invoiceNumber"
],
"isUnique": false
},
"invoice_status_idx": {
"name": "invoice_status_idx",
"columns": [
"status"
],
"isUnique": false
}
},
"foreignKeys": {
"beenvoice_invoice_businessId_beenvoice_business_id_fk": {
"name": "beenvoice_invoice_businessId_beenvoice_business_id_fk",
"tableFrom": "beenvoice_invoice",
"tableTo": "beenvoice_business",
"columnsFrom": [
"businessId"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"beenvoice_invoice_clientId_beenvoice_client_id_fk": {
"name": "beenvoice_invoice_clientId_beenvoice_client_id_fk",
"tableFrom": "beenvoice_invoice",
"tableTo": "beenvoice_client",
"columnsFrom": [
"clientId"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
},
"beenvoice_invoice_createdById_beenvoice_user_id_fk": {
"name": "beenvoice_invoice_createdById_beenvoice_user_id_fk",
"tableFrom": "beenvoice_invoice",
"tableTo": "beenvoice_user",
"columnsFrom": [
"createdById"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"beenvoice_session": {
"name": "beenvoice_session",
"columns": {
"sessionToken": {
"name": "sessionToken",
"type": "text(255)",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"userId": {
"name": "userId",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"expires": {
"name": "expires",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"session_userId_idx": {
"name": "session_userId_idx",
"columns": [
"userId"
],
"isUnique": false
}
},
"foreignKeys": {
"beenvoice_session_userId_beenvoice_user_id_fk": {
"name": "beenvoice_session_userId_beenvoice_user_id_fk",
"tableFrom": "beenvoice_session",
"tableTo": "beenvoice_user",
"columnsFrom": [
"userId"
],
"columnsTo": [
"id"
],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"beenvoice_user": {
"name": "beenvoice_user",
"columns": {
"id": {
"name": "id",
"type": "text(255)",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"password": {
"name": "password",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"emailVerified": {
"name": "emailVerified",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(unixepoch())"
},
"image": {
"name": "image",
"type": "text(255)",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
},
"beenvoice_verification_token": {
"name": "beenvoice_verification_token",
"columns": {
"identifier": {
"name": "identifier",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"token": {
"name": "token",
"type": "text(255)",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"expires": {
"name": "expires",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {
"beenvoice_verification_token_identifier_token_pk": {
"columns": [
"identifier",
"token"
],
"name": "beenvoice_verification_token_identifier_token_pk"
}
},
"uniqueConstraints": {},
"checkConstraints": {}
}
},
"views": {},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
},
"internal": {
"indexes": {}
}
}