Files
convite-rael/drizzle/meta/0005_snapshot.json

473 lines
12 KiB
JSON

{
"id": "0737d501-be94-4c28-8338-3ae445f2c85c",
"prevId": "04383ff0-b0ea-4d85-8289-a56bce363364",
"version": "7",
"dialect": "postgresql",
"tables": {
"public.events": {
"name": "events",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"date": {
"name": "date",
"type": "date",
"primaryKey": false,
"notNull": true
},
"time": {
"name": "time",
"type": "time",
"primaryKey": false,
"notNull": true
},
"venue": {
"name": "venue",
"type": "text",
"primaryKey": false,
"notNull": true
},
"address": {
"name": "address",
"type": "text",
"primaryKey": false,
"notNull": true
},
"rsvp_deadline": {
"name": "rsvp_deadline",
"type": "date",
"primaryKey": false,
"notNull": false
},
"theme": {
"name": "theme",
"type": "text",
"primaryKey": false,
"notNull": true,
"default": "'safari'"
},
"badge_text": {
"name": "badge_text",
"type": "text",
"primaryKey": false,
"notNull": false
},
"footer_text": {
"name": "footer_text",
"type": "text",
"primaryKey": false,
"notNull": false
},
"pdf_template_version": {
"name": "pdf_template_version",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"pdf_template_name": {
"name": "pdf_template_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"pdf_template_updated_at": {
"name": "pdf_template_updated_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.guests": {
"name": "guests",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"invitation_id": {
"name": "invitation_id",
"type": "uuid",
"primaryKey": false,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"type": {
"name": "type",
"type": "guest_type",
"typeSchema": "public",
"primaryKey": false,
"notNull": true
},
"status": {
"name": "status",
"type": "rsvp_status",
"typeSchema": "public",
"primaryKey": false,
"notNull": true,
"default": "'pending'"
},
"sort_order": {
"name": "sort_order",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"responded_at": {
"name": "responded_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {
"guests_invitation_id_invitations_id_fk": {
"name": "guests_invitation_id_invitations_id_fk",
"tableFrom": "guests",
"tableTo": "invitations",
"columnsFrom": [
"invitation_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.invitations": {
"name": "invitations",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"event_id": {
"name": "event_id",
"type": "uuid",
"primaryKey": false,
"notNull": true
},
"token": {
"name": "token",
"type": "text",
"primaryKey": false,
"notNull": true
},
"display_name": {
"name": "display_name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"responded_at": {
"name": "responded_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"pdf_status": {
"name": "pdf_status",
"type": "pdf_status",
"typeSchema": "public",
"primaryKey": false,
"notNull": true,
"default": "'not_generated'"
},
"pdf_template_version": {
"name": "pdf_template_version",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"pdf_generated_at": {
"name": "pdf_generated_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"pdf_error": {
"name": "pdf_error",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {
"invitations_event_id_events_id_fk": {
"name": "invitations_event_id_events_id_fk",
"tableFrom": "invitations",
"tableTo": "events",
"columnsFrom": [
"event_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {
"invitations_token_unique": {
"name": "invitations_token_unique",
"nullsNotDistinct": false,
"columns": [
"token"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.organizer_sessions": {
"name": "organizer_sessions",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true
},
"user_agent": {
"name": "user_agent",
"type": "text",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"expires_at": {
"name": "expires_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
},
"public.pdf_jobs": {
"name": "pdf_jobs",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"primaryKey": true,
"notNull": true,
"default": "gen_random_uuid()"
},
"event_id": {
"name": "event_id",
"type": "uuid",
"primaryKey": false,
"notNull": true
},
"status": {
"name": "status",
"type": "pdf_job_status",
"typeSchema": "public",
"primaryKey": false,
"notNull": true,
"default": "'running'"
},
"invitation_ids": {
"name": "invitation_ids",
"type": "jsonb",
"primaryKey": false,
"notNull": true
},
"total": {
"name": "total",
"type": "integer",
"primaryKey": false,
"notNull": true
},
"processed": {
"name": "processed",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"failed": {
"name": "failed",
"type": "integer",
"primaryKey": false,
"notNull": true,
"default": 0
},
"created_at": {
"name": "created_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": true,
"default": "now()"
},
"finished_at": {
"name": "finished_at",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
}
},
"indexes": {
"pdf_jobs_one_running_per_event": {
"name": "pdf_jobs_one_running_per_event",
"columns": [
{
"expression": "event_id",
"isExpression": false,
"asc": true,
"nulls": "last"
}
],
"isUnique": true,
"where": "\"pdf_jobs\".\"status\" = 'running'",
"concurrently": false,
"method": "btree",
"with": {}
}
},
"foreignKeys": {
"pdf_jobs_event_id_events_id_fk": {
"name": "pdf_jobs_event_id_events_id_fk",
"tableFrom": "pdf_jobs",
"tableTo": "events",
"columnsFrom": [
"event_id"
],
"columnsTo": [
"id"
],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": false
}
},
"enums": {
"public.guest_type": {
"name": "guest_type",
"schema": "public",
"values": [
"adult",
"teen",
"child"
]
},
"public.pdf_job_status": {
"name": "pdf_job_status",
"schema": "public",
"values": [
"running",
"finished",
"interrupted"
]
},
"public.pdf_status": {
"name": "pdf_status",
"schema": "public",
"values": [
"not_generated",
"generating",
"generated",
"error"
]
},
"public.rsvp_status": {
"name": "rsvp_status",
"schema": "public",
"values": [
"pending",
"confirmed",
"declined"
]
}
},
"schemas": {},
"sequences": {},
"roles": {},
"policies": {},
"views": {},
"_meta": {
"columns": {},
"schemas": {},
"tables": {}
}
}