@the-inkwell/shared 0.1.69 → 0.1.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/package.json +1 -1
  2. package/src/types/_schema/Action.ts +61 -16
  3. package/src/types/_schema/Admin.ts +21 -8
  4. package/src/types/_schema/Campaign.ts +54 -14
  5. package/src/types/_schema/CampaignToPosition.ts +26 -9
  6. package/src/types/_schema/Candidacy.ts +59 -15
  7. package/src/types/_schema/CandidacyFeedback.ts +37 -11
  8. package/src/types/_schema/CandidacyRatingToTag.ts +26 -9
  9. package/src/types/_schema/Client.ts +38 -11
  10. package/src/types/_schema/Contract.ts +42 -12
  11. package/src/types/_schema/Conversation.ts +43 -12
  12. package/src/types/_schema/Jwt.ts +37 -11
  13. package/src/types/_schema/ListView.ts +52 -14
  14. package/src/types/_schema/Message.ts +48 -13
  15. package/src/types/_schema/MessageTemplate.ts +37 -12
  16. package/src/types/_schema/Note.ts +52 -14
  17. package/src/types/_schema/Otp.ts +42 -12
  18. package/src/types/_schema/Person.ts +233 -49
  19. package/src/types/_schema/PersonClub.ts +37 -12
  20. package/src/types/_schema/PersonEnrichment.ts +42 -12
  21. package/src/types/_schema/PersonNetwork.ts +37 -12
  22. package/src/types/_schema/PersonSkill.ts +37 -12
  23. package/src/types/_schema/PersonToBestPerson.ts +20 -8
  24. package/src/types/_schema/PersonToPersonClub.ts +20 -8
  25. package/src/types/_schema/PersonToPersonNetwork.ts +20 -8
  26. package/src/types/_schema/PersonToPersonSkill.ts +20 -8
  27. package/src/types/_schema/PersonToTag.ts +20 -8
  28. package/src/types/_schema/Position.ts +55 -14
  29. package/src/types/_schema/Referral.ts +53 -14
  30. package/src/types/_schema/ReferralPayout.ts +15 -7
  31. package/src/types/_schema/ReferralToIntroMessage.ts +26 -9
  32. package/src/types/_schema/Sender.ts +42 -13
  33. package/src/types/_schema/Tag.ts +32 -11
  34. package/src/types/_schema/WebsiteBlock.ts +30 -11
  35. package/src/types/_schema/WebsiteLandingPage.ts +32 -11
  36. package/src/types/_schema/WebsiteStaticPage.ts +37 -12
  37. package/src/types/models/admin/persons/index.ts +5 -4
  38. package/src/types/models/admin/website/index.ts +15 -9
@@ -3,19 +3,31 @@
3
3
 
4
4
  import type { PersonId } from './Person';
5
5
  import type { PersonNetworkId } from './PersonNetwork';
6
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
7
6
 
8
7
  /** Represents the table public.PersonToPersonNetwork */
9
- export default interface PersonToPersonNetworkTable {
10
- personId: ColumnType<PersonId, PersonId, PersonId>;
8
+ export default interface PersonToPersonNetwork {
9
+ personId: PersonId;
11
10
 
12
- networkId: ColumnType<PersonNetworkId, PersonNetworkId, PersonNetworkId>;
11
+ networkId: PersonNetworkId;
13
12
 
14
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
13
+ createdAt: Date;
15
14
  }
16
15
 
17
- export type PersonToPersonNetwork = Selectable<PersonToPersonNetworkTable>;
16
+ /** Represents the initializer for the table public.PersonToPersonNetwork */
17
+ export interface PersonToPersonNetworkInitializer {
18
+ personId: PersonId;
18
19
 
19
- export type NewPersonToPersonNetwork = Insertable<PersonToPersonNetworkTable>;
20
+ networkId: PersonNetworkId;
20
21
 
21
- export type PersonToPersonNetworkUpdate = Updateable<PersonToPersonNetworkTable>;
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.PersonToPersonNetwork */
27
+ export interface PersonToPersonNetworkMutator {
28
+ personId?: PersonId;
29
+
30
+ networkId?: PersonNetworkId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -3,19 +3,31 @@
3
3
 
4
4
  import type { PersonId } from './Person';
5
5
  import type { PersonSkillId } from './PersonSkill';
6
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
7
6
 
8
7
  /** Represents the table public.PersonToPersonSkill */
9
- export default interface PersonToPersonSkillTable {
10
- personId: ColumnType<PersonId, PersonId, PersonId>;
8
+ export default interface PersonToPersonSkill {
9
+ personId: PersonId;
11
10
 
12
- skillId: ColumnType<PersonSkillId, PersonSkillId, PersonSkillId>;
11
+ skillId: PersonSkillId;
13
12
 
14
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
13
+ createdAt: Date;
15
14
  }
16
15
 
17
- export type PersonToPersonSkill = Selectable<PersonToPersonSkillTable>;
16
+ /** Represents the initializer for the table public.PersonToPersonSkill */
17
+ export interface PersonToPersonSkillInitializer {
18
+ personId: PersonId;
18
19
 
19
- export type NewPersonToPersonSkill = Insertable<PersonToPersonSkillTable>;
20
+ skillId: PersonSkillId;
20
21
 
21
- export type PersonToPersonSkillUpdate = Updateable<PersonToPersonSkillTable>;
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.PersonToPersonSkill */
27
+ export interface PersonToPersonSkillMutator {
28
+ personId?: PersonId;
29
+
30
+ skillId?: PersonSkillId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -3,19 +3,31 @@
3
3
 
4
4
  import type { PersonId } from './Person';
5
5
  import type { TagId } from './Tag';
6
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
7
6
 
8
7
  /** Represents the table public.PersonToTag */
9
- export default interface PersonToTagTable {
10
- personId: ColumnType<PersonId, PersonId, PersonId>;
8
+ export default interface PersonToTag {
9
+ personId: PersonId;
11
10
 
12
- tagId: ColumnType<TagId, TagId, TagId>;
11
+ tagId: TagId;
13
12
 
14
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
13
+ createdAt: Date;
15
14
  }
16
15
 
17
- export type PersonToTag = Selectable<PersonToTagTable>;
16
+ /** Represents the initializer for the table public.PersonToTag */
17
+ export interface PersonToTagInitializer {
18
+ personId: PersonId;
18
19
 
19
- export type NewPersonToTag = Insertable<PersonToTagTable>;
20
+ tagId: TagId;
20
21
 
21
- export type PersonToTagUpdate = Updateable<PersonToTagTable>;
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.PersonToTag */
27
+ export interface PersonToTagMutator {
28
+ personId?: PersonId;
29
+
30
+ tagId?: TagId;
31
+
32
+ createdAt?: Date;
33
+ }
@@ -3,34 +3,75 @@
3
3
 
4
4
  import type { default as PositionStatuses } from './PositionStatuses';
5
5
  import type { ClientId } from './Client';
6
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
7
6
 
8
7
  /** Identifier type for public.Position */
9
8
  export type PositionId = string & { __brand: 'PositionId' };
10
9
 
11
10
  /** Represents the table public.Position */
12
- export default interface PositionTable {
13
- id: ColumnType<PositionId, PositionId | undefined, PositionId>;
11
+ export default interface Position {
12
+ id: PositionId;
14
13
 
15
- urlId: ColumnType<number, number | undefined, number>;
14
+ urlId: number;
16
15
 
17
- name: ColumnType<string, string, string>;
16
+ name: string;
18
17
 
19
- currentStatus: ColumnType<PositionStatuses | null, PositionStatuses | null, PositionStatuses | null>;
18
+ currentStatus: PositionStatuses | null;
20
19
 
21
- isHidden: ColumnType<boolean, boolean | undefined, boolean>;
20
+ isHidden: boolean;
22
21
 
23
- clientId: ColumnType<ClientId, ClientId, ClientId>;
22
+ clientId: ClientId;
24
23
 
25
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
24
+ createdAt: Date;
26
25
 
27
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
26
+ updatedAt: Date;
28
27
 
29
- deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
28
+ deletedAt: Date | null;
30
29
  }
31
30
 
32
- export type Position = Selectable<PositionTable>;
31
+ /** Represents the initializer for the table public.Position */
32
+ export interface PositionInitializer {
33
+ /** Default value: gen_random_uuid() */
34
+ id?: PositionId;
33
35
 
34
- export type NewPosition = Insertable<PositionTable>;
36
+ /** Default value: nextval('"Position_urlId_seq"'::regclass) */
37
+ urlId?: number;
35
38
 
36
- export type PositionUpdate = Updateable<PositionTable>;
39
+ name: string;
40
+
41
+ /** Default value: 'OPEN'::"PositionStatuses" */
42
+ currentStatus?: PositionStatuses | null;
43
+
44
+ /** Default value: false */
45
+ isHidden?: boolean;
46
+
47
+ clientId: ClientId;
48
+
49
+ /** Default value: CURRENT_TIMESTAMP */
50
+ createdAt?: Date;
51
+
52
+ /** Default value: CURRENT_TIMESTAMP */
53
+ updatedAt?: Date;
54
+
55
+ deletedAt?: Date | null;
56
+ }
57
+
58
+ /** Represents the mutator for the table public.Position */
59
+ export interface PositionMutator {
60
+ id?: PositionId;
61
+
62
+ urlId?: number;
63
+
64
+ name?: string;
65
+
66
+ currentStatus?: PositionStatuses | null;
67
+
68
+ isHidden?: boolean;
69
+
70
+ clientId?: ClientId;
71
+
72
+ createdAt?: Date;
73
+
74
+ updatedAt?: Date;
75
+
76
+ deletedAt?: Date | null;
77
+ }
@@ -6,34 +6,73 @@ import type { PersonId } from './Person';
6
6
  import type { CandidacyId } from './Candidacy';
7
7
  import type { CampaignId } from './Campaign';
8
8
  import type { PositionId } from './Position';
9
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
10
9
 
11
10
  /** Identifier type for public.Referral */
12
11
  export type ReferralId = string & { __brand: 'ReferralId' };
13
12
 
14
13
  /** Represents the table public.Referral */
15
- export default interface ReferralTable {
16
- id: ColumnType<ReferralId, ReferralId | undefined, ReferralId>;
14
+ export default interface Referral {
15
+ id: ReferralId;
17
16
 
18
- source: ColumnType<ReferralSources | null, ReferralSources | null, ReferralSources | null>;
17
+ source: ReferralSources | null;
19
18
 
20
- referrerId: ColumnType<PersonId, PersonId, PersonId>;
19
+ referrerId: PersonId;
21
20
 
22
- candidacyId: ColumnType<CandidacyId, CandidacyId, CandidacyId>;
21
+ candidacyId: CandidacyId;
23
22
 
24
- campaignId: ColumnType<CampaignId | null, CampaignId | null, CampaignId | null>;
23
+ campaignId: CampaignId | null;
25
24
 
26
- positionId: ColumnType<PositionId, PositionId, PositionId>;
25
+ positionId: PositionId;
27
26
 
28
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
27
+ createdAt: Date;
29
28
 
30
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
29
+ updatedAt: Date;
31
30
 
32
- messageId: ColumnType<string | null, string | null, string | null>;
31
+ messageId: string | null;
33
32
  }
34
33
 
35
- export type Referral = Selectable<ReferralTable>;
34
+ /** Represents the initializer for the table public.Referral */
35
+ export interface ReferralInitializer {
36
+ /** Default value: gen_random_uuid() */
37
+ id?: ReferralId;
36
38
 
37
- export type NewReferral = Insertable<ReferralTable>;
39
+ /** Default value: 'ADMIN'::"ReferralSources" */
40
+ source?: ReferralSources | null;
38
41
 
39
- export type ReferralUpdate = Updateable<ReferralTable>;
42
+ referrerId: PersonId;
43
+
44
+ candidacyId: CandidacyId;
45
+
46
+ campaignId?: CampaignId | null;
47
+
48
+ positionId: PositionId;
49
+
50
+ /** Default value: CURRENT_TIMESTAMP */
51
+ createdAt?: Date;
52
+
53
+ /** Default value: CURRENT_TIMESTAMP */
54
+ updatedAt?: Date;
55
+
56
+ messageId?: string | null;
57
+ }
58
+
59
+ /** Represents the mutator for the table public.Referral */
60
+ export interface ReferralMutator {
61
+ id?: ReferralId;
62
+
63
+ source?: ReferralSources | null;
64
+
65
+ referrerId?: PersonId;
66
+
67
+ candidacyId?: CandidacyId;
68
+
69
+ campaignId?: CampaignId | null;
70
+
71
+ positionId?: PositionId;
72
+
73
+ createdAt?: Date;
74
+
75
+ updatedAt?: Date;
76
+
77
+ messageId?: string | null;
78
+ }
@@ -2,20 +2,28 @@
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
4
  import type { ReferralId } from './Referral';
5
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
6
5
 
7
6
  /** Identifier type for public.ReferralPayout */
8
7
  export type ReferralPayoutId = string & { __brand: 'ReferralPayoutId' };
9
8
 
10
9
  /** Represents the table public.ReferralPayout */
11
- export default interface ReferralPayoutTable {
12
- id: ColumnType<ReferralPayoutId, ReferralPayoutId | undefined, ReferralPayoutId>;
10
+ export default interface ReferralPayout {
11
+ id: ReferralPayoutId;
13
12
 
14
- referralId: ColumnType<ReferralId | null, ReferralId | null, ReferralId | null>;
13
+ referralId: ReferralId | null;
15
14
  }
16
15
 
17
- export type ReferralPayout = Selectable<ReferralPayoutTable>;
16
+ /** Represents the initializer for the table public.ReferralPayout */
17
+ export interface ReferralPayoutInitializer {
18
+ /** Default value: gen_random_uuid() */
19
+ id?: ReferralPayoutId;
18
20
 
19
- export type NewReferralPayout = Insertable<ReferralPayoutTable>;
21
+ referralId?: ReferralId | null;
22
+ }
23
+
24
+ /** Represents the mutator for the table public.ReferralPayout */
25
+ export interface ReferralPayoutMutator {
26
+ id?: ReferralPayoutId;
20
27
 
21
- export type ReferralPayoutUpdate = Updateable<ReferralPayoutTable>;
28
+ referralId?: ReferralId | null;
29
+ }
@@ -3,21 +3,38 @@
3
3
 
4
4
  import type { MessageId } from './Message';
5
5
  import type { ReferralId } from './Referral';
6
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
7
6
 
8
7
  /** Represents the table public.ReferralToIntroMessage */
9
- export default interface ReferralToIntroMessageTable {
10
- messageId: ColumnType<MessageId, MessageId, MessageId>;
8
+ export default interface ReferralToIntroMessage {
9
+ messageId: MessageId;
11
10
 
12
- referralId: ColumnType<ReferralId, ReferralId, ReferralId>;
11
+ referralId: ReferralId;
13
12
 
14
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
13
+ createdAt: Date;
15
14
 
16
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
15
+ updatedAt: Date;
17
16
  }
18
17
 
19
- export type ReferralToIntroMessage = Selectable<ReferralToIntroMessageTable>;
18
+ /** Represents the initializer for the table public.ReferralToIntroMessage */
19
+ export interface ReferralToIntroMessageInitializer {
20
+ messageId: MessageId;
20
21
 
21
- export type NewReferralToIntroMessage = Insertable<ReferralToIntroMessageTable>;
22
+ referralId: ReferralId;
22
23
 
23
- export type ReferralToIntroMessageUpdate = Updateable<ReferralToIntroMessageTable>;
24
+ /** Default value: CURRENT_TIMESTAMP */
25
+ createdAt?: Date;
26
+
27
+ /** Default value: CURRENT_TIMESTAMP */
28
+ updatedAt?: Date;
29
+ }
30
+
31
+ /** Represents the mutator for the table public.ReferralToIntroMessage */
32
+ export interface ReferralToIntroMessageMutator {
33
+ messageId?: MessageId;
34
+
35
+ referralId?: ReferralId;
36
+
37
+ createdAt?: Date;
38
+
39
+ updatedAt?: Date;
40
+ }
@@ -1,30 +1,59 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
5
-
6
4
  /** Identifier type for public.Sender */
7
5
  export type SenderId = string & { __brand: 'SenderId' };
8
6
 
9
7
  /** Represents the table public.Sender */
10
- export default interface SenderTable {
11
- id: ColumnType<SenderId, SenderId | undefined, SenderId>;
8
+ export default interface Sender {
9
+ id: SenderId;
10
+
11
+ name: string;
12
+
13
+ email: string | null;
14
+
15
+ replyToEmail: string | null;
16
+
17
+ smsNumber: string | null;
18
+
19
+ createdAt: Date;
20
+
21
+ updatedAt: Date;
22
+ }
23
+
24
+ /** Represents the initializer for the table public.Sender */
25
+ export interface SenderInitializer {
26
+ /** Default value: gen_random_uuid() */
27
+ id?: SenderId;
12
28
 
13
- name: ColumnType<string, string, string>;
29
+ name: string;
14
30
 
15
- email: ColumnType<string | null, string | null, string | null>;
31
+ email?: string | null;
16
32
 
17
- replyToEmail: ColumnType<string | null, string | null, string | null>;
33
+ replyToEmail?: string | null;
18
34
 
19
- smsNumber: ColumnType<string | null, string | null, string | null>;
35
+ smsNumber?: string | null;
20
36
 
21
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
37
+ /** Default value: CURRENT_TIMESTAMP */
38
+ createdAt?: Date;
22
39
 
23
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
40
+ /** Default value: CURRENT_TIMESTAMP */
41
+ updatedAt?: Date;
24
42
  }
25
43
 
26
- export type Sender = Selectable<SenderTable>;
44
+ /** Represents the mutator for the table public.Sender */
45
+ export interface SenderMutator {
46
+ id?: SenderId;
47
+
48
+ name?: string;
49
+
50
+ email?: string | null;
27
51
 
28
- export type NewSender = Insertable<SenderTable>;
52
+ replyToEmail?: string | null;
29
53
 
30
- export type SenderUpdate = Updateable<SenderTable>;
54
+ smsNumber?: string | null;
55
+
56
+ createdAt?: Date;
57
+
58
+ updatedAt?: Date;
59
+ }
@@ -1,26 +1,47 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
5
-
6
4
  /** Identifier type for public.Tag */
7
5
  export type TagId = string & { __brand: 'TagId' };
8
6
 
9
7
  /** Represents the table public.Tag */
10
- export default interface TagTable {
11
- id: ColumnType<TagId, TagId | undefined, TagId>;
8
+ export default interface Tag {
9
+ id: TagId;
10
+
11
+ slug: string;
12
+
13
+ name: string;
14
+
15
+ createdAt: Date;
16
+
17
+ updatedAt: Date;
18
+ }
19
+
20
+ /** Represents the initializer for the table public.Tag */
21
+ export interface TagInitializer {
22
+ /** Default value: gen_random_uuid() */
23
+ id?: TagId;
12
24
 
13
- slug: ColumnType<string, string, string>;
25
+ slug: string;
14
26
 
15
- name: ColumnType<string, string, string>;
27
+ name: string;
16
28
 
17
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
29
+ /** Default value: CURRENT_TIMESTAMP */
30
+ createdAt?: Date;
18
31
 
19
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
32
+ /** Default value: CURRENT_TIMESTAMP */
33
+ updatedAt?: Date;
20
34
  }
21
35
 
22
- export type Tag = Selectable<TagTable>;
36
+ /** Represents the mutator for the table public.Tag */
37
+ export interface TagMutator {
38
+ id?: TagId;
39
+
40
+ slug?: string;
23
41
 
24
- export type NewTag = Insertable<TagTable>;
42
+ name?: string;
25
43
 
26
- export type TagUpdate = Updateable<TagTable>;
44
+ createdAt?: Date;
45
+
46
+ updatedAt?: Date;
47
+ }
@@ -1,26 +1,45 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
5
-
6
4
  /** Identifier type for public.WebsiteBlock */
7
5
  export type WebsiteBlockId = string & { __brand: 'WebsiteBlockId' };
8
6
 
9
7
  /** Represents the table public.WebsiteBlock */
10
- export default interface WebsiteBlockTable {
11
- id: ColumnType<WebsiteBlockId, WebsiteBlockId | undefined, WebsiteBlockId>;
8
+ export default interface WebsiteBlock {
9
+ id: WebsiteBlockId;
10
+
11
+ slug: string;
12
+
13
+ name: string;
14
+
15
+ content: string;
16
+
17
+ contentType: string;
18
+ }
19
+
20
+ /** Represents the initializer for the table public.WebsiteBlock */
21
+ export interface WebsiteBlockInitializer {
22
+ /** Default value: gen_random_uuid() */
23
+ id?: WebsiteBlockId;
12
24
 
13
- slug: ColumnType<string, string, string>;
25
+ slug: string;
14
26
 
15
- name: ColumnType<string, string, string>;
27
+ name: string;
16
28
 
17
- content: ColumnType<string, string, string>;
29
+ content: string;
18
30
 
19
- contentType: ColumnType<string, string, string>;
31
+ contentType: string;
20
32
  }
21
33
 
22
- export type WebsiteBlock = Selectable<WebsiteBlockTable>;
34
+ /** Represents the mutator for the table public.WebsiteBlock */
35
+ export interface WebsiteBlockMutator {
36
+ id?: WebsiteBlockId;
37
+
38
+ slug?: string;
23
39
 
24
- export type NewWebsiteBlock = Insertable<WebsiteBlockTable>;
40
+ name?: string;
25
41
 
26
- export type WebsiteBlockUpdate = Updateable<WebsiteBlockTable>;
42
+ content?: string;
43
+
44
+ contentType?: string;
45
+ }
@@ -1,26 +1,47 @@
1
1
  // @generated
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
5
-
6
4
  /** Identifier type for public.WebsiteLandingPage */
7
5
  export type WebsiteLandingPageId = string & { __brand: 'WebsiteLandingPageId' };
8
6
 
9
7
  /** Represents the table public.WebsiteLandingPage */
10
- export default interface WebsiteLandingPageTable {
11
- id: ColumnType<WebsiteLandingPageId, WebsiteLandingPageId | undefined, WebsiteLandingPageId>;
8
+ export default interface WebsiteLandingPage {
9
+ id: WebsiteLandingPageId;
10
+
11
+ slug: string;
12
+
13
+ name: string;
14
+
15
+ content: unknown;
16
+
17
+ meta: unknown;
18
+ }
19
+
20
+ /** Represents the initializer for the table public.WebsiteLandingPage */
21
+ export interface WebsiteLandingPageInitializer {
22
+ /** Default value: gen_random_uuid() */
23
+ id?: WebsiteLandingPageId;
12
24
 
13
- slug: ColumnType<string, string, string>;
25
+ slug: string;
14
26
 
15
- name: ColumnType<string, string, string>;
27
+ name: string;
16
28
 
17
- content: ColumnType<unknown, unknown | undefined, unknown>;
29
+ /** Default value: '{}'::jsonb */
30
+ content?: unknown;
18
31
 
19
- meta: ColumnType<unknown, unknown | undefined, unknown>;
32
+ /** Default value: '{}'::jsonb */
33
+ meta?: unknown;
20
34
  }
21
35
 
22
- export type WebsiteLandingPage = Selectable<WebsiteLandingPageTable>;
36
+ /** Represents the mutator for the table public.WebsiteLandingPage */
37
+ export interface WebsiteLandingPageMutator {
38
+ id?: WebsiteLandingPageId;
39
+
40
+ slug?: string;
23
41
 
24
- export type NewWebsiteLandingPage = Insertable<WebsiteLandingPageTable>;
42
+ name?: string;
25
43
 
26
- export type WebsiteLandingPageUpdate = Updateable<WebsiteLandingPageTable>;
44
+ content?: unknown;
45
+
46
+ meta?: unknown;
47
+ }