* feat: wip refactor schema builder * feat: wip store types and first queries generation * feat: refactor schema-builder and resolver-builder * fix: clean & small type fix * fix: avoid breaking change * fix: remove util from pg-graphql classes * fix: required default fields * Refactor frontend accordingly --------- Co-authored-by: Charles Bochet <charles@twenty.com>
26 lines
452 B
TypeScript
26 lines
452 B
TypeScript
import { TableColumnOptions } from 'typeorm';
|
|
|
|
export const customTableDefaultColumns: TableColumnOptions[] = [
|
|
{
|
|
name: 'id',
|
|
type: 'uuid',
|
|
isPrimary: true,
|
|
default: 'public.uuid_generate_v4()',
|
|
},
|
|
{
|
|
name: 'createdAt',
|
|
type: 'timestamp',
|
|
default: 'now()',
|
|
},
|
|
{
|
|
name: 'updatedAt',
|
|
type: 'timestamp',
|
|
default: 'now()',
|
|
},
|
|
{
|
|
name: 'deletedAt',
|
|
type: 'timestamp',
|
|
isNullable: true,
|
|
},
|
|
];
|