()
| 88 | * constant so behavior is unchanged for the hosted product. |
| 89 | */ |
| 90 | export function getTablePlanLimits(): TablePlanLimitsByPlan { |
| 91 | return { |
| 92 | free: { |
| 93 | maxTables: envNumber(env.FREE_TABLES_LIMIT, DEFAULT_TABLE_PLAN_LIMITS.free.maxTables), |
| 94 | maxRowsPerTable: envNumber( |
| 95 | env.FREE_TABLE_ROWS_LIMIT, |
| 96 | DEFAULT_TABLE_PLAN_LIMITS.free.maxRowsPerTable |
| 97 | ), |
| 98 | }, |
| 99 | pro: { |
| 100 | maxTables: envNumber(env.PRO_TABLES_LIMIT, DEFAULT_TABLE_PLAN_LIMITS.pro.maxTables), |
| 101 | maxRowsPerTable: envNumber( |
| 102 | env.PRO_TABLE_ROWS_LIMIT, |
| 103 | DEFAULT_TABLE_PLAN_LIMITS.pro.maxRowsPerTable |
| 104 | ), |
| 105 | }, |
| 106 | team: { |
| 107 | maxTables: envNumber(env.TEAM_TABLES_LIMIT, DEFAULT_TABLE_PLAN_LIMITS.team.maxTables), |
| 108 | maxRowsPerTable: envNumber( |
| 109 | env.TEAM_TABLE_ROWS_LIMIT, |
| 110 | DEFAULT_TABLE_PLAN_LIMITS.team.maxRowsPerTable |
| 111 | ), |
| 112 | }, |
| 113 | enterprise: { |
| 114 | maxTables: envNumber( |
| 115 | env.ENTERPRISE_TABLES_LIMIT, |
| 116 | DEFAULT_TABLE_PLAN_LIMITS.enterprise.maxTables |
| 117 | ), |
| 118 | maxRowsPerTable: envNumber( |
| 119 | env.ENTERPRISE_TABLE_ROWS_LIMIT, |
| 120 | DEFAULT_TABLE_PLAN_LIMITS.enterprise.maxRowsPerTable |
| 121 | ), |
| 122 | }, |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | export const COLUMN_TYPES = ['string', 'number', 'boolean', 'date', 'json'] as const |
| 127 |
no test coverage detected