( name: string, columns: TColumns, )
| 40 | /** A truly global table (the blob store). Isolation is carried in the row's |
| 41 | * `namespace` (which encodes the owner partition + plugin id), not a policy. */ |
| 42 | const unscopedExecutorTable = <const TColumns extends UserColumns>( |
| 43 | name: string, |
| 44 | columns: TColumns, |
| 45 | ) => { |
| 46 | const out = table(name, { |
| 47 | ...columns, |
| 48 | row_id: idColumn("row_id", "varchar(255)").defaultTo$("auto"), |
| 49 | id: keyColumn("id"), |
| 50 | }); |
| 51 | out.unique(`${name}_id_uidx`, ["id"]); |
| 52 | return out.policy({ name: executorUnscopedPolicyName }); |
| 53 | }; |
| 54 | |
| 55 | /** A tenant-shared table (catalog / blobs) — partitioned only by `tenant`. */ |
| 56 | const tenantExecutorTable = <const TColumns extends UserColumns>( |
no test coverage detected