This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { PrimaryColumn } from 'typeorm'; | |
| /** | |
| * TypeORM decorator that generates UUID v7 primary keys using a PostgreSQL function. | |
| * UUID v7 is time-sortable, giving better B-tree index performance than UUID v4. | |
| * | |
| * Requires the `uuid_generate_v7()` function to exist in your database β see the | |
| * companion migration file. | |
| */ | |
| export function PrimaryGeneratedUuidV7Column(options?: { primaryKeyConstraintName?: string }): PropertyDecorator { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Metabase Sync (Direct Environment-to-Environment) | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| source_environment: | |
| description: 'Source environment to export from' | |
| type: environment | |
| required: true | |
| target_environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as changeCase from 'change-case'; | |
| // Laravel's like node js request data validator | |
| // Usage: | |
| // | |
| // let v = new Validator(body, { | |
| // index: 'required|string', | |
| // lang: 'string', | |
| // code: 'required|number', | |
| // phone_number: 'required|string|regex:/^\\+?[1-9]\\d{1,14}$/', |