the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make sandbox_variables.name non-nullable

+1084 -4
+4 -2
apps/api/src/schema/sandbox-variables.ts
··· 6 6 const sandboxVariables = pgTable( 7 7 "sandbox_variables", 8 8 { 9 - id: text("id").primaryKey().default(sql`xata_id()`), 9 + id: text("id") 10 + .primaryKey() 11 + .default(sql`xata_id()`), 10 12 sandboxId: text("sandbox_id") 11 13 .notNull() 12 14 .references(() => sandboxes.id), 13 15 variableId: text("variable_id") 14 16 .notNull() 15 17 .references(() => variables.id), 16 - name: text("name"), 18 + name: text("name").notNull(), 17 19 createdAt: timestamp("created_at").defaultNow().notNull(), 18 20 updatedAt: timestamp("updated_at").defaultNow().notNull(), 19 21 },
+1
apps/cf-sandbox/drizzle/0019_hot_nextwave.sql
··· 1 + ALTER TABLE "sandbox_variables" ALTER COLUMN "name" SET NOT NULL;
+1070
apps/cf-sandbox/drizzle/meta/0019_snapshot.json
··· 1 + { 2 + "id": "a92e1110-1b61-4de4-96a5-93c2a625f646", 3 + "prevId": "0a58b7af-2443-495b-b5ec-bfdacb42409a", 4 + "version": "7", 5 + "dialect": "postgresql", 6 + "tables": { 7 + "public.authorized_keys": { 8 + "name": "authorized_keys", 9 + "schema": "", 10 + "columns": { 11 + "id": { 12 + "name": "id", 13 + "type": "text", 14 + "primaryKey": true, 15 + "notNull": true, 16 + "default": "xata_id()" 17 + }, 18 + "sandbox_id": { 19 + "name": "sandbox_id", 20 + "type": "text", 21 + "primaryKey": false, 22 + "notNull": false 23 + }, 24 + "public_key": { 25 + "name": "public_key", 26 + "type": "text", 27 + "primaryKey": false, 28 + "notNull": true 29 + }, 30 + "created_at": { 31 + "name": "created_at", 32 + "type": "timestamp", 33 + "primaryKey": false, 34 + "notNull": true, 35 + "default": "now()" 36 + } 37 + }, 38 + "indexes": {}, 39 + "foreignKeys": { 40 + "authorized_keys_sandbox_id_sandboxes_id_fk": { 41 + "name": "authorized_keys_sandbox_id_sandboxes_id_fk", 42 + "tableFrom": "authorized_keys", 43 + "tableTo": "sandboxes", 44 + "columnsFrom": [ 45 + "sandbox_id" 46 + ], 47 + "columnsTo": [ 48 + "id" 49 + ], 50 + "onDelete": "no action", 51 + "onUpdate": "no action" 52 + } 53 + }, 54 + "compositePrimaryKeys": {}, 55 + "uniqueConstraints": {}, 56 + "policies": {}, 57 + "checkConstraints": {}, 58 + "isRLSEnabled": false 59 + }, 60 + "public.files": { 61 + "name": "files", 62 + "schema": "", 63 + "columns": { 64 + "id": { 65 + "name": "id", 66 + "type": "text", 67 + "primaryKey": true, 68 + "notNull": true, 69 + "default": "variable_id()" 70 + }, 71 + "content": { 72 + "name": "content", 73 + "type": "text", 74 + "primaryKey": false, 75 + "notNull": true 76 + }, 77 + "created_at": { 78 + "name": "created_at", 79 + "type": "timestamp", 80 + "primaryKey": false, 81 + "notNull": true, 82 + "default": "now()" 83 + }, 84 + "updated_at": { 85 + "name": "updated_at", 86 + "type": "timestamp", 87 + "primaryKey": false, 88 + "notNull": true, 89 + "default": "now()" 90 + } 91 + }, 92 + "indexes": {}, 93 + "foreignKeys": {}, 94 + "compositePrimaryKeys": {}, 95 + "uniqueConstraints": {}, 96 + "policies": {}, 97 + "checkConstraints": {}, 98 + "isRLSEnabled": false 99 + }, 100 + "public.sandbox_files": { 101 + "name": "sandbox_files", 102 + "schema": "", 103 + "columns": { 104 + "id": { 105 + "name": "id", 106 + "type": "text", 107 + "primaryKey": true, 108 + "notNull": true, 109 + "default": "xata_id()" 110 + }, 111 + "sandbox_id": { 112 + "name": "sandbox_id", 113 + "type": "text", 114 + "primaryKey": false, 115 + "notNull": true 116 + }, 117 + "file_id": { 118 + "name": "file_id", 119 + "type": "text", 120 + "primaryKey": false, 121 + "notNull": true 122 + }, 123 + "path": { 124 + "name": "path", 125 + "type": "text", 126 + "primaryKey": false, 127 + "notNull": true 128 + }, 129 + "created_at": { 130 + "name": "created_at", 131 + "type": "timestamp", 132 + "primaryKey": false, 133 + "notNull": true, 134 + "default": "now()" 135 + }, 136 + "updated_at": { 137 + "name": "updated_at", 138 + "type": "timestamp", 139 + "primaryKey": false, 140 + "notNull": true, 141 + "default": "now()" 142 + } 143 + }, 144 + "indexes": { 145 + "unique_sandbox_file": { 146 + "name": "unique_sandbox_file", 147 + "columns": [ 148 + { 149 + "expression": "sandbox_id", 150 + "isExpression": false, 151 + "asc": true, 152 + "nulls": "last" 153 + }, 154 + { 155 + "expression": "file_id", 156 + "isExpression": false, 157 + "asc": true, 158 + "nulls": "last" 159 + } 160 + ], 161 + "isUnique": true, 162 + "concurrently": false, 163 + "method": "btree", 164 + "with": {} 165 + }, 166 + "unique_sandbox_file_path": { 167 + "name": "unique_sandbox_file_path", 168 + "columns": [ 169 + { 170 + "expression": "sandbox_id", 171 + "isExpression": false, 172 + "asc": true, 173 + "nulls": "last" 174 + }, 175 + { 176 + "expression": "path", 177 + "isExpression": false, 178 + "asc": true, 179 + "nulls": "last" 180 + } 181 + ], 182 + "isUnique": true, 183 + "concurrently": false, 184 + "method": "btree", 185 + "with": {} 186 + } 187 + }, 188 + "foreignKeys": { 189 + "sandbox_files_sandbox_id_sandboxes_id_fk": { 190 + "name": "sandbox_files_sandbox_id_sandboxes_id_fk", 191 + "tableFrom": "sandbox_files", 192 + "tableTo": "sandboxes", 193 + "columnsFrom": [ 194 + "sandbox_id" 195 + ], 196 + "columnsTo": [ 197 + "id" 198 + ], 199 + "onDelete": "no action", 200 + "onUpdate": "no action" 201 + }, 202 + "sandbox_files_file_id_files_id_fk": { 203 + "name": "sandbox_files_file_id_files_id_fk", 204 + "tableFrom": "sandbox_files", 205 + "tableTo": "files", 206 + "columnsFrom": [ 207 + "file_id" 208 + ], 209 + "columnsTo": [ 210 + "id" 211 + ], 212 + "onDelete": "no action", 213 + "onUpdate": "no action" 214 + } 215 + }, 216 + "compositePrimaryKeys": {}, 217 + "uniqueConstraints": {}, 218 + "policies": {}, 219 + "checkConstraints": {}, 220 + "isRLSEnabled": false 221 + }, 222 + "public.sandbox_secrets": { 223 + "name": "sandbox_secrets", 224 + "schema": "", 225 + "columns": { 226 + "id": { 227 + "name": "id", 228 + "type": "text", 229 + "primaryKey": true, 230 + "notNull": true, 231 + "default": "xata_id()" 232 + }, 233 + "sandbox_id": { 234 + "name": "sandbox_id", 235 + "type": "text", 236 + "primaryKey": false, 237 + "notNull": true 238 + }, 239 + "secret_id": { 240 + "name": "secret_id", 241 + "type": "text", 242 + "primaryKey": false, 243 + "notNull": true 244 + }, 245 + "name": { 246 + "name": "name", 247 + "type": "text", 248 + "primaryKey": false, 249 + "notNull": false 250 + }, 251 + "created_at": { 252 + "name": "created_at", 253 + "type": "timestamp", 254 + "primaryKey": false, 255 + "notNull": true, 256 + "default": "now()" 257 + }, 258 + "updated_at": { 259 + "name": "updated_at", 260 + "type": "timestamp", 261 + "primaryKey": false, 262 + "notNull": true, 263 + "default": "now()" 264 + } 265 + }, 266 + "indexes": { 267 + "unique_sandbox_secret": { 268 + "name": "unique_sandbox_secret", 269 + "columns": [ 270 + { 271 + "expression": "sandbox_id", 272 + "isExpression": false, 273 + "asc": true, 274 + "nulls": "last" 275 + }, 276 + { 277 + "expression": "secret_id", 278 + "isExpression": false, 279 + "asc": true, 280 + "nulls": "last" 281 + } 282 + ], 283 + "isUnique": true, 284 + "concurrently": false, 285 + "method": "btree", 286 + "with": {} 287 + }, 288 + "unique_sandbox_secret_by_name": { 289 + "name": "unique_sandbox_secret_by_name", 290 + "columns": [ 291 + { 292 + "expression": "sandbox_id", 293 + "isExpression": false, 294 + "asc": true, 295 + "nulls": "last" 296 + }, 297 + { 298 + "expression": "name", 299 + "isExpression": false, 300 + "asc": true, 301 + "nulls": "last" 302 + } 303 + ], 304 + "isUnique": true, 305 + "concurrently": false, 306 + "method": "btree", 307 + "with": {} 308 + } 309 + }, 310 + "foreignKeys": { 311 + "sandbox_secrets_sandbox_id_sandboxes_id_fk": { 312 + "name": "sandbox_secrets_sandbox_id_sandboxes_id_fk", 313 + "tableFrom": "sandbox_secrets", 314 + "tableTo": "sandboxes", 315 + "columnsFrom": [ 316 + "sandbox_id" 317 + ], 318 + "columnsTo": [ 319 + "id" 320 + ], 321 + "onDelete": "no action", 322 + "onUpdate": "no action" 323 + }, 324 + "sandbox_secrets_secret_id_secrets_id_fk": { 325 + "name": "sandbox_secrets_secret_id_secrets_id_fk", 326 + "tableFrom": "sandbox_secrets", 327 + "tableTo": "secrets", 328 + "columnsFrom": [ 329 + "secret_id" 330 + ], 331 + "columnsTo": [ 332 + "id" 333 + ], 334 + "onDelete": "no action", 335 + "onUpdate": "no action" 336 + } 337 + }, 338 + "compositePrimaryKeys": {}, 339 + "uniqueConstraints": {}, 340 + "policies": {}, 341 + "checkConstraints": {}, 342 + "isRLSEnabled": false 343 + }, 344 + "public.sandbox_variables": { 345 + "name": "sandbox_variables", 346 + "schema": "", 347 + "columns": { 348 + "id": { 349 + "name": "id", 350 + "type": "text", 351 + "primaryKey": true, 352 + "notNull": true, 353 + "default": "xata_id()" 354 + }, 355 + "sandbox_id": { 356 + "name": "sandbox_id", 357 + "type": "text", 358 + "primaryKey": false, 359 + "notNull": true 360 + }, 361 + "variable_id": { 362 + "name": "variable_id", 363 + "type": "text", 364 + "primaryKey": false, 365 + "notNull": true 366 + }, 367 + "name": { 368 + "name": "name", 369 + "type": "text", 370 + "primaryKey": false, 371 + "notNull": true 372 + }, 373 + "created_at": { 374 + "name": "created_at", 375 + "type": "timestamp", 376 + "primaryKey": false, 377 + "notNull": true, 378 + "default": "now()" 379 + }, 380 + "updated_at": { 381 + "name": "updated_at", 382 + "type": "timestamp", 383 + "primaryKey": false, 384 + "notNull": true, 385 + "default": "now()" 386 + } 387 + }, 388 + "indexes": { 389 + "unique_sandbox_variables": { 390 + "name": "unique_sandbox_variables", 391 + "columns": [ 392 + { 393 + "expression": "sandbox_id", 394 + "isExpression": false, 395 + "asc": true, 396 + "nulls": "last" 397 + }, 398 + { 399 + "expression": "variable_id", 400 + "isExpression": false, 401 + "asc": true, 402 + "nulls": "last" 403 + } 404 + ], 405 + "isUnique": true, 406 + "concurrently": false, 407 + "method": "btree", 408 + "with": {} 409 + }, 410 + "unique_sandbox_variables_by_name": { 411 + "name": "unique_sandbox_variables_by_name", 412 + "columns": [ 413 + { 414 + "expression": "sandbox_id", 415 + "isExpression": false, 416 + "asc": true, 417 + "nulls": "last" 418 + }, 419 + { 420 + "expression": "name", 421 + "isExpression": false, 422 + "asc": true, 423 + "nulls": "last" 424 + } 425 + ], 426 + "isUnique": true, 427 + "concurrently": false, 428 + "method": "btree", 429 + "with": {} 430 + } 431 + }, 432 + "foreignKeys": { 433 + "sandbox_variables_sandbox_id_sandboxes_id_fk": { 434 + "name": "sandbox_variables_sandbox_id_sandboxes_id_fk", 435 + "tableFrom": "sandbox_variables", 436 + "tableTo": "sandboxes", 437 + "columnsFrom": [ 438 + "sandbox_id" 439 + ], 440 + "columnsTo": [ 441 + "id" 442 + ], 443 + "onDelete": "no action", 444 + "onUpdate": "no action" 445 + }, 446 + "sandbox_variables_variable_id_variables_id_fk": { 447 + "name": "sandbox_variables_variable_id_variables_id_fk", 448 + "tableFrom": "sandbox_variables", 449 + "tableTo": "variables", 450 + "columnsFrom": [ 451 + "variable_id" 452 + ], 453 + "columnsTo": [ 454 + "id" 455 + ], 456 + "onDelete": "no action", 457 + "onUpdate": "no action" 458 + } 459 + }, 460 + "compositePrimaryKeys": {}, 461 + "uniqueConstraints": {}, 462 + "policies": {}, 463 + "checkConstraints": {}, 464 + "isRLSEnabled": false 465 + }, 466 + "public.sandbox_volumes": { 467 + "name": "sandbox_volumes", 468 + "schema": "", 469 + "columns": { 470 + "id": { 471 + "name": "id", 472 + "type": "text", 473 + "primaryKey": true, 474 + "notNull": true, 475 + "default": "xata_id()" 476 + }, 477 + "sandbox_id": { 478 + "name": "sandbox_id", 479 + "type": "text", 480 + "primaryKey": false, 481 + "notNull": true 482 + }, 483 + "volume_id": { 484 + "name": "volume_id", 485 + "type": "text", 486 + "primaryKey": false, 487 + "notNull": true 488 + }, 489 + "name": { 490 + "name": "name", 491 + "type": "text", 492 + "primaryKey": false, 493 + "notNull": false 494 + }, 495 + "path": { 496 + "name": "path", 497 + "type": "text", 498 + "primaryKey": false, 499 + "notNull": true 500 + }, 501 + "created_at": { 502 + "name": "created_at", 503 + "type": "timestamp", 504 + "primaryKey": false, 505 + "notNull": true, 506 + "default": "now()" 507 + }, 508 + "updated_at": { 509 + "name": "updated_at", 510 + "type": "timestamp", 511 + "primaryKey": false, 512 + "notNull": true, 513 + "default": "now()" 514 + } 515 + }, 516 + "indexes": { 517 + "unique_sandbox_volume": { 518 + "name": "unique_sandbox_volume", 519 + "columns": [ 520 + { 521 + "expression": "sandbox_id", 522 + "isExpression": false, 523 + "asc": true, 524 + "nulls": "last" 525 + }, 526 + { 527 + "expression": "volume_id", 528 + "isExpression": false, 529 + "asc": true, 530 + "nulls": "last" 531 + } 532 + ], 533 + "isUnique": true, 534 + "concurrently": false, 535 + "method": "btree", 536 + "with": {} 537 + }, 538 + "unique_sandbox_volume_path": { 539 + "name": "unique_sandbox_volume_path", 540 + "columns": [ 541 + { 542 + "expression": "sandbox_id", 543 + "isExpression": false, 544 + "asc": true, 545 + "nulls": "last" 546 + }, 547 + { 548 + "expression": "path", 549 + "isExpression": false, 550 + "asc": true, 551 + "nulls": "last" 552 + } 553 + ], 554 + "isUnique": true, 555 + "concurrently": false, 556 + "method": "btree", 557 + "with": {} 558 + } 559 + }, 560 + "foreignKeys": { 561 + "sandbox_volumes_sandbox_id_sandboxes_id_fk": { 562 + "name": "sandbox_volumes_sandbox_id_sandboxes_id_fk", 563 + "tableFrom": "sandbox_volumes", 564 + "tableTo": "sandboxes", 565 + "columnsFrom": [ 566 + "sandbox_id" 567 + ], 568 + "columnsTo": [ 569 + "id" 570 + ], 571 + "onDelete": "no action", 572 + "onUpdate": "no action" 573 + }, 574 + "sandbox_volumes_volume_id_volumes_id_fk": { 575 + "name": "sandbox_volumes_volume_id_volumes_id_fk", 576 + "tableFrom": "sandbox_volumes", 577 + "tableTo": "volumes", 578 + "columnsFrom": [ 579 + "volume_id" 580 + ], 581 + "columnsTo": [ 582 + "id" 583 + ], 584 + "onDelete": "no action", 585 + "onUpdate": "no action" 586 + } 587 + }, 588 + "compositePrimaryKeys": {}, 589 + "uniqueConstraints": {}, 590 + "policies": {}, 591 + "checkConstraints": {}, 592 + "isRLSEnabled": false 593 + }, 594 + "public.sandboxes": { 595 + "name": "sandboxes", 596 + "schema": "", 597 + "columns": { 598 + "id": { 599 + "name": "id", 600 + "type": "text", 601 + "primaryKey": true, 602 + "notNull": true, 603 + "default": "sandbox_id()" 604 + }, 605 + "base": { 606 + "name": "base", 607 + "type": "text", 608 + "primaryKey": false, 609 + "notNull": false 610 + }, 611 + "name": { 612 + "name": "name", 613 + "type": "text", 614 + "primaryKey": false, 615 + "notNull": true 616 + }, 617 + "display_name": { 618 + "name": "display_name", 619 + "type": "text", 620 + "primaryKey": false, 621 + "notNull": false 622 + }, 623 + "uri": { 624 + "name": "uri", 625 + "type": "text", 626 + "primaryKey": false, 627 + "notNull": false 628 + }, 629 + "cid": { 630 + "name": "cid", 631 + "type": "text", 632 + "primaryKey": false, 633 + "notNull": false 634 + }, 635 + "repo": { 636 + "name": "repo", 637 + "type": "text", 638 + "primaryKey": false, 639 + "notNull": false 640 + }, 641 + "provider": { 642 + "name": "provider", 643 + "type": "text", 644 + "primaryKey": false, 645 + "notNull": true, 646 + "default": "'cloudflare'" 647 + }, 648 + "description": { 649 + "name": "description", 650 + "type": "text", 651 + "primaryKey": false, 652 + "notNull": false 653 + }, 654 + "logo": { 655 + "name": "logo", 656 + "type": "text", 657 + "primaryKey": false, 658 + "notNull": false 659 + }, 660 + "readme": { 661 + "name": "readme", 662 + "type": "text", 663 + "primaryKey": false, 664 + "notNull": false 665 + }, 666 + "public_key": { 667 + "name": "public_key", 668 + "type": "text", 669 + "primaryKey": false, 670 + "notNull": true 671 + }, 672 + "user_id": { 673 + "name": "user_id", 674 + "type": "text", 675 + "primaryKey": false, 676 + "notNull": false 677 + }, 678 + "instance_type": { 679 + "name": "instance_type", 680 + "type": "text", 681 + "primaryKey": false, 682 + "notNull": false 683 + }, 684 + "vcpus": { 685 + "name": "vcpus", 686 + "type": "integer", 687 + "primaryKey": false, 688 + "notNull": false 689 + }, 690 + "memory": { 691 + "name": "memory", 692 + "type": "integer", 693 + "primaryKey": false, 694 + "notNull": false 695 + }, 696 + "disk": { 697 + "name": "disk", 698 + "type": "integer", 699 + "primaryKey": false, 700 + "notNull": false 701 + }, 702 + "status": { 703 + "name": "status", 704 + "type": "text", 705 + "primaryKey": false, 706 + "notNull": true 707 + }, 708 + "keep_alive": { 709 + "name": "keep_alive", 710 + "type": "boolean", 711 + "primaryKey": false, 712 + "notNull": true, 713 + "default": false 714 + }, 715 + "sleep_after": { 716 + "name": "sleep_after", 717 + "type": "text", 718 + "primaryKey": false, 719 + "notNull": false 720 + }, 721 + "sandbox_id": { 722 + "name": "sandbox_id", 723 + "type": "text", 724 + "primaryKey": false, 725 + "notNull": false 726 + }, 727 + "installs": { 728 + "name": "installs", 729 + "type": "integer", 730 + "primaryKey": false, 731 + "notNull": true, 732 + "default": 0 733 + }, 734 + "started_at": { 735 + "name": "started_at", 736 + "type": "timestamp", 737 + "primaryKey": false, 738 + "notNull": false 739 + }, 740 + "created_at": { 741 + "name": "created_at", 742 + "type": "timestamp", 743 + "primaryKey": false, 744 + "notNull": true, 745 + "default": "now()" 746 + }, 747 + "updated_at": { 748 + "name": "updated_at", 749 + "type": "timestamp", 750 + "primaryKey": false, 751 + "notNull": true, 752 + "default": "now()" 753 + } 754 + }, 755 + "indexes": {}, 756 + "foreignKeys": { 757 + "sandboxes_user_id_users_id_fk": { 758 + "name": "sandboxes_user_id_users_id_fk", 759 + "tableFrom": "sandboxes", 760 + "tableTo": "users", 761 + "columnsFrom": [ 762 + "user_id" 763 + ], 764 + "columnsTo": [ 765 + "id" 766 + ], 767 + "onDelete": "no action", 768 + "onUpdate": "no action" 769 + } 770 + }, 771 + "compositePrimaryKeys": {}, 772 + "uniqueConstraints": { 773 + "sandboxes_name_unique": { 774 + "name": "sandboxes_name_unique", 775 + "nullsNotDistinct": false, 776 + "columns": [ 777 + "name" 778 + ] 779 + }, 780 + "sandboxes_uri_unique": { 781 + "name": "sandboxes_uri_unique", 782 + "nullsNotDistinct": false, 783 + "columns": [ 784 + "uri" 785 + ] 786 + }, 787 + "sandboxes_cid_unique": { 788 + "name": "sandboxes_cid_unique", 789 + "nullsNotDistinct": false, 790 + "columns": [ 791 + "cid" 792 + ] 793 + } 794 + }, 795 + "policies": {}, 796 + "checkConstraints": {}, 797 + "isRLSEnabled": false 798 + }, 799 + "public.secrets": { 800 + "name": "secrets", 801 + "schema": "", 802 + "columns": { 803 + "id": { 804 + "name": "id", 805 + "type": "text", 806 + "primaryKey": true, 807 + "notNull": true, 808 + "default": "secret_id()" 809 + }, 810 + "name": { 811 + "name": "name", 812 + "type": "text", 813 + "primaryKey": false, 814 + "notNull": true 815 + }, 816 + "value": { 817 + "name": "value", 818 + "type": "text", 819 + "primaryKey": false, 820 + "notNull": true 821 + }, 822 + "created_at": { 823 + "name": "created_at", 824 + "type": "timestamp", 825 + "primaryKey": false, 826 + "notNull": true, 827 + "default": "now()" 828 + } 829 + }, 830 + "indexes": {}, 831 + "foreignKeys": {}, 832 + "compositePrimaryKeys": {}, 833 + "uniqueConstraints": {}, 834 + "policies": {}, 835 + "checkConstraints": {}, 836 + "isRLSEnabled": false 837 + }, 838 + "public.snapshots": { 839 + "name": "snapshots", 840 + "schema": "", 841 + "columns": { 842 + "id": { 843 + "name": "id", 844 + "type": "text", 845 + "primaryKey": true, 846 + "notNull": true, 847 + "default": "snapshot_id()" 848 + }, 849 + "slug": { 850 + "name": "slug", 851 + "type": "text", 852 + "primaryKey": false, 853 + "notNull": true 854 + }, 855 + "created_at": { 856 + "name": "created_at", 857 + "type": "timestamp", 858 + "primaryKey": false, 859 + "notNull": true, 860 + "default": "now()" 861 + } 862 + }, 863 + "indexes": {}, 864 + "foreignKeys": {}, 865 + "compositePrimaryKeys": {}, 866 + "uniqueConstraints": { 867 + "snapshots_slug_unique": { 868 + "name": "snapshots_slug_unique", 869 + "nullsNotDistinct": false, 870 + "columns": [ 871 + "slug" 872 + ] 873 + } 874 + }, 875 + "policies": {}, 876 + "checkConstraints": {}, 877 + "isRLSEnabled": false 878 + }, 879 + "public.users": { 880 + "name": "users", 881 + "schema": "", 882 + "columns": { 883 + "id": { 884 + "name": "id", 885 + "type": "text", 886 + "primaryKey": true, 887 + "notNull": true, 888 + "default": "xata_id()" 889 + }, 890 + "did": { 891 + "name": "did", 892 + "type": "text", 893 + "primaryKey": false, 894 + "notNull": true 895 + }, 896 + "display_name": { 897 + "name": "display_name", 898 + "type": "text", 899 + "primaryKey": false, 900 + "notNull": false 901 + }, 902 + "handle": { 903 + "name": "handle", 904 + "type": "text", 905 + "primaryKey": false, 906 + "notNull": true 907 + }, 908 + "avatar": { 909 + "name": "avatar", 910 + "type": "text", 911 + "primaryKey": false, 912 + "notNull": false 913 + }, 914 + "created_at": { 915 + "name": "created_at", 916 + "type": "timestamp", 917 + "primaryKey": false, 918 + "notNull": true, 919 + "default": "now()" 920 + }, 921 + "updated_at": { 922 + "name": "updated_at", 923 + "type": "timestamp", 924 + "primaryKey": false, 925 + "notNull": true, 926 + "default": "now()" 927 + } 928 + }, 929 + "indexes": {}, 930 + "foreignKeys": {}, 931 + "compositePrimaryKeys": {}, 932 + "uniqueConstraints": { 933 + "users_did_unique": { 934 + "name": "users_did_unique", 935 + "nullsNotDistinct": false, 936 + "columns": [ 937 + "did" 938 + ] 939 + }, 940 + "users_handle_unique": { 941 + "name": "users_handle_unique", 942 + "nullsNotDistinct": false, 943 + "columns": [ 944 + "handle" 945 + ] 946 + } 947 + }, 948 + "policies": {}, 949 + "checkConstraints": {}, 950 + "isRLSEnabled": false 951 + }, 952 + "public.variables": { 953 + "name": "variables", 954 + "schema": "", 955 + "columns": { 956 + "id": { 957 + "name": "id", 958 + "type": "text", 959 + "primaryKey": true, 960 + "notNull": true, 961 + "default": "variable_id()" 962 + }, 963 + "name": { 964 + "name": "name", 965 + "type": "text", 966 + "primaryKey": false, 967 + "notNull": true 968 + }, 969 + "value": { 970 + "name": "value", 971 + "type": "text", 972 + "primaryKey": false, 973 + "notNull": true 974 + }, 975 + "created_at": { 976 + "name": "created_at", 977 + "type": "timestamp", 978 + "primaryKey": false, 979 + "notNull": true, 980 + "default": "now()" 981 + }, 982 + "updated_at": { 983 + "name": "updated_at", 984 + "type": "timestamp", 985 + "primaryKey": false, 986 + "notNull": true, 987 + "default": "now()" 988 + } 989 + }, 990 + "indexes": {}, 991 + "foreignKeys": {}, 992 + "compositePrimaryKeys": {}, 993 + "uniqueConstraints": {}, 994 + "policies": {}, 995 + "checkConstraints": {}, 996 + "isRLSEnabled": false 997 + }, 998 + "public.volumes": { 999 + "name": "volumes", 1000 + "schema": "", 1001 + "columns": { 1002 + "id": { 1003 + "name": "id", 1004 + "type": "text", 1005 + "primaryKey": true, 1006 + "notNull": true, 1007 + "default": "volume_id()" 1008 + }, 1009 + "slug": { 1010 + "name": "slug", 1011 + "type": "text", 1012 + "primaryKey": false, 1013 + "notNull": true 1014 + }, 1015 + "size": { 1016 + "name": "size", 1017 + "type": "integer", 1018 + "primaryKey": false, 1019 + "notNull": true 1020 + }, 1021 + "size_unit": { 1022 + "name": "size_unit", 1023 + "type": "text", 1024 + "primaryKey": false, 1025 + "notNull": true 1026 + }, 1027 + "created_at": { 1028 + "name": "created_at", 1029 + "type": "timestamp", 1030 + "primaryKey": false, 1031 + "notNull": true, 1032 + "default": "now()" 1033 + }, 1034 + "updated_at": { 1035 + "name": "updated_at", 1036 + "type": "timestamp", 1037 + "primaryKey": false, 1038 + "notNull": true, 1039 + "default": "now()" 1040 + } 1041 + }, 1042 + "indexes": {}, 1043 + "foreignKeys": {}, 1044 + "compositePrimaryKeys": {}, 1045 + "uniqueConstraints": { 1046 + "volumes_slug_unique": { 1047 + "name": "volumes_slug_unique", 1048 + "nullsNotDistinct": false, 1049 + "columns": [ 1050 + "slug" 1051 + ] 1052 + } 1053 + }, 1054 + "policies": {}, 1055 + "checkConstraints": {}, 1056 + "isRLSEnabled": false 1057 + } 1058 + }, 1059 + "enums": {}, 1060 + "schemas": {}, 1061 + "sequences": {}, 1062 + "roles": {}, 1063 + "policies": {}, 1064 + "views": {}, 1065 + "_meta": { 1066 + "columns": {}, 1067 + "schemas": {}, 1068 + "tables": {} 1069 + } 1070 + }
+7
apps/cf-sandbox/drizzle/meta/_journal.json
··· 134 134 "when": 1772997231610, 135 135 "tag": "0018_awesome_sally_floyd", 136 136 "breakpoints": true 137 + }, 138 + { 139 + "idx": 19, 140 + "version": "7", 141 + "when": 1773000076930, 142 + "tag": "0019_hot_nextwave", 143 + "breakpoints": true 137 144 } 138 145 ] 139 146 }
+1 -1
apps/cf-sandbox/src/schema/sandbox-variables.ts
··· 15 15 variableId: text("variable_id") 16 16 .notNull() 17 17 .references(() => variables.id), 18 - name: text("name"), 18 + name: text("name").notNull(), 19 19 createdAt: timestamp("created_at").defaultNow().notNull(), 20 20 updatedAt: timestamp("updated_at").defaultNow().notNull(), 21 21 },
+1 -1
apps/sandbox/src/schema/sandbox-variables.ts
··· 15 15 variableId: text("variable_id") 16 16 .notNull() 17 17 .references(() => variables.id), 18 - name: text("name"), 18 + name: text("name").notNull(), 19 19 createdAt: timestamp("created_at").defaultNow().notNull(), 20 20 updatedAt: timestamp("updated_at").defaultNow().notNull(), 21 21 },