Cloned Components

When you run a clone, Twins can copy up to 14 types of components from your source project to your target project. Each component is independent and can be enabled or disabled.

Component List

ComponentDescriptionDetail Page
Tables (schema)Table structure, columns, constraints, indexesDetail
DataTable rowsDetail
ViewsSQL viewsDetail
Functions and triggersPostgreSQL functions and triggersDetail
RLS PoliciesRow Level Security access rulesDetail
Edge FunctionsSupabase serverless functionsDetail
StorageBuckets and filesDetail
Auth UsersUser accountsDetail
Cron JobsScheduled tasksDetail
WebhooksDatabase webhooksDetail
RealtimeRealtime configurationDetail
Project ConfigProject settingsDetail

Clone Order

Components are cloned in a specific order to respect dependencies:

  1. Extensions — required before tables (e.g. uuid-ossp, pgcrypto)
  2. Custom types — tables may use enums
  3. Tables (schema only) — structure creation
  4. Sequences — serial/identity columns
  5. Views — depend on tables
  6. Functions — may be referenced by triggers
  7. Triggers — depend on functions and tables
  8. RLS Policies — depend on tables
  9. Data — inserted once the schema is in place
  10. Edge Functions — independent of the database
  11. Storage — independent
  12. Auth Users — independent
  13. Cron Jobs — may reference functions
  14. Webhooks — reference tables
  15. Realtime — publication configuration
  16. Project Config — global settings

What happens if a component fails?

The clone continues with the remaining components. A failure on one component does not stop the process. The final report details what succeeded and what failed.

Next Steps

Click on a component above to understand in detail what is copied and the key considerations.