ReviewOS

also looking at this

stacks/lastsoulultra

fix(database): generate the migrations the models have been waiting for

#13
Merged glennmichael123 wants to merge fix/product-variant-columns into main
10 files +625 -10
database/migrations/1785502251874-create-card_attachments-table.sqladded+15-0
Changes to database/migrations/1785502251874-create-card_attachments-table.sql
@@ -0,0 +1,15 @@
1-- qb:generated
2-- @generated by `buddy migrate:regenerate` - edits will be overwritten
3CREATE TABLE IF NOT EXISTS "card_attachments" (
4 "id" INTEGER PRIMARY KEY AUTOINCREMENT,
5 "disk" TEXT not null,
6 "path" TEXT not null,
7 "mime_type" TEXT not null,
8 "size_bytes" INTEGER not null,
9 "card_id" INTEGER REFERENCES "cards"("id") ON DELETE CASCADE,
10 "created_at" TEXT not null default CURRENT_TIMESTAMP,
11 "updated_at" TEXT,
12 "uuid" TEXT
13);
14CREATE UNIQUE INDEX IF NOT EXISTS "card_attachments_path_unique" ON "card_attachments" ("path");
15CREATE UNIQUE INDEX IF NOT EXISTS "card_attachments_uuid_unique" ON "card_attachments" ("uuid");