@the-inkwell/shared 0.1.67 → 0.1.69

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 (40) hide show
  1. package/dist/src/types/_schema/PublicSchema.js +4 -0
  2. package/package.json +1 -4
  3. package/src/types/_schema/Action.ts +16 -61
  4. package/src/types/_schema/Admin.ts +8 -21
  5. package/src/types/_schema/Campaign.ts +14 -54
  6. package/src/types/_schema/CampaignToPosition.ts +9 -26
  7. package/src/types/_schema/Candidacy.ts +15 -59
  8. package/src/types/_schema/CandidacyFeedback.ts +11 -37
  9. package/src/types/_schema/CandidacyRatingToTag.ts +9 -26
  10. package/src/types/_schema/Client.ts +11 -38
  11. package/src/types/_schema/Contract.ts +12 -42
  12. package/src/types/_schema/Conversation.ts +12 -43
  13. package/src/types/_schema/Jwt.ts +11 -37
  14. package/src/types/_schema/ListView.ts +14 -52
  15. package/src/types/_schema/Message.ts +13 -48
  16. package/src/types/_schema/MessageTemplate.ts +12 -37
  17. package/src/types/_schema/Note.ts +14 -52
  18. package/src/types/_schema/Otp.ts +12 -42
  19. package/src/types/_schema/Person.ts +49 -233
  20. package/src/types/_schema/PersonClub.ts +12 -37
  21. package/src/types/_schema/PersonEnrichment.ts +12 -42
  22. package/src/types/_schema/PersonNetwork.ts +12 -37
  23. package/src/types/_schema/PersonSkill.ts +12 -37
  24. package/src/types/_schema/PersonToBestPerson.ts +8 -20
  25. package/src/types/_schema/PersonToPersonClub.ts +8 -20
  26. package/src/types/_schema/PersonToPersonNetwork.ts +8 -20
  27. package/src/types/_schema/PersonToPersonSkill.ts +8 -20
  28. package/src/types/_schema/PersonToTag.ts +8 -20
  29. package/src/types/_schema/Position.ts +14 -55
  30. package/src/types/_schema/PublicSchema.ts +110 -0
  31. package/src/types/_schema/Referral.ts +14 -53
  32. package/src/types/_schema/ReferralPayout.ts +7 -15
  33. package/src/types/_schema/ReferralToIntroMessage.ts +9 -26
  34. package/src/types/_schema/Sender.ts +13 -42
  35. package/src/types/_schema/Tag.ts +11 -32
  36. package/src/types/_schema/WebsiteBlock.ts +11 -30
  37. package/src/types/_schema/WebsiteLandingPage.ts +11 -32
  38. package/src/types/_schema/WebsiteStaticPage.ts +12 -37
  39. package/src/types/models/admin/persons/index.ts +3 -4
  40. package/src/types/models/admin/website/index.ts +5 -3
@@ -3,31 +3,19 @@
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';
6
7
 
7
8
  /** Represents the table public.PersonToPersonNetwork */
8
- export default interface PersonToPersonNetwork {
9
- personId: PersonId;
9
+ export default interface PersonToPersonNetworkTable {
10
+ personId: ColumnType<PersonId, PersonId, PersonId>;
10
11
 
11
- networkId: PersonNetworkId;
12
+ networkId: ColumnType<PersonNetworkId, PersonNetworkId, PersonNetworkId>;
12
13
 
13
- createdAt: Date;
14
+ createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
14
15
  }
15
16
 
16
- /** Represents the initializer for the table public.PersonToPersonNetwork */
17
- export interface PersonToPersonNetworkInitializer {
18
- personId: PersonId;
17
+ export type PersonToPersonNetwork = Selectable<PersonToPersonNetworkTable>;
19
18
 
20
- networkId: PersonNetworkId;
19
+ export type NewPersonToPersonNetwork = Insertable<PersonToPersonNetworkTable>;
21
20
 
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
- }
21
+ export type PersonToPersonNetworkUpdate = Updateable<PersonToPersonNetworkTable>;
@@ -3,31 +3,19 @@
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';
6
7
 
7
8
  /** Represents the table public.PersonToPersonSkill */
8
- export default interface PersonToPersonSkill {
9
- personId: PersonId;
9
+ export default interface PersonToPersonSkillTable {
10
+ personId: ColumnType<PersonId, PersonId, PersonId>;
10
11
 
11
- skillId: PersonSkillId;
12
+ skillId: ColumnType<PersonSkillId, PersonSkillId, PersonSkillId>;
12
13
 
13
- createdAt: Date;
14
+ createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
14
15
  }
15
16
 
16
- /** Represents the initializer for the table public.PersonToPersonSkill */
17
- export interface PersonToPersonSkillInitializer {
18
- personId: PersonId;
17
+ export type PersonToPersonSkill = Selectable<PersonToPersonSkillTable>;
19
18
 
20
- skillId: PersonSkillId;
19
+ export type NewPersonToPersonSkill = Insertable<PersonToPersonSkillTable>;
21
20
 
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
- }
21
+ export type PersonToPersonSkillUpdate = Updateable<PersonToPersonSkillTable>;
@@ -3,31 +3,19 @@
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';
6
7
 
7
8
  /** Represents the table public.PersonToTag */
8
- export default interface PersonToTag {
9
- personId: PersonId;
9
+ export default interface PersonToTagTable {
10
+ personId: ColumnType<PersonId, PersonId, PersonId>;
10
11
 
11
- tagId: TagId;
12
+ tagId: ColumnType<TagId, TagId, TagId>;
12
13
 
13
- createdAt: Date;
14
+ createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
14
15
  }
15
16
 
16
- /** Represents the initializer for the table public.PersonToTag */
17
- export interface PersonToTagInitializer {
18
- personId: PersonId;
17
+ export type PersonToTag = Selectable<PersonToTagTable>;
19
18
 
20
- tagId: TagId;
19
+ export type NewPersonToTag = Insertable<PersonToTagTable>;
21
20
 
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
- }
21
+ export type PersonToTagUpdate = Updateable<PersonToTagTable>;
@@ -3,75 +3,34 @@
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';
6
7
 
7
8
  /** Identifier type for public.Position */
8
9
  export type PositionId = string & { __brand: 'PositionId' };
9
10
 
10
11
  /** Represents the table public.Position */
11
- export default interface Position {
12
- id: PositionId;
12
+ export default interface PositionTable {
13
+ id: ColumnType<PositionId, PositionId | undefined, PositionId>;
13
14
 
14
- urlId: number;
15
+ urlId: ColumnType<number, number | undefined, number>;
15
16
 
16
- name: string;
17
+ name: ColumnType<string, string, string>;
17
18
 
18
- currentStatus: PositionStatuses | null;
19
+ currentStatus: ColumnType<PositionStatuses | null, PositionStatuses | null, PositionStatuses | null>;
19
20
 
20
- isHidden: boolean;
21
+ isHidden: ColumnType<boolean, boolean | undefined, boolean>;
21
22
 
22
- clientId: ClientId;
23
+ clientId: ColumnType<ClientId, ClientId, ClientId>;
23
24
 
24
- createdAt: Date;
25
+ createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
25
26
 
26
- updatedAt: Date;
27
+ updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
27
28
 
28
- deletedAt: Date | null;
29
+ deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
29
30
  }
30
31
 
31
- /** Represents the initializer for the table public.Position */
32
- export interface PositionInitializer {
33
- /** Default value: gen_random_uuid() */
34
- id?: PositionId;
32
+ export type Position = Selectable<PositionTable>;
35
33
 
36
- /** Default value: nextval('"Position_urlId_seq"'::regclass) */
37
- urlId?: number;
34
+ export type NewPosition = Insertable<PositionTable>;
38
35
 
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
- }
36
+ export type PositionUpdate = Updateable<PositionTable>;
@@ -0,0 +1,110 @@
1
+ // @generated
2
+ // This file is automatically generated by Kanel. Do not modify manually.
3
+
4
+ import type { default as PersonToPersonSkillTable } from './PersonToPersonSkill';
5
+ import type { default as MessageTemplateTable } from './MessageTemplate';
6
+ import type { default as ReferralTable } from './Referral';
7
+ import type { default as ReferralToIntroMessageTable } from './ReferralToIntroMessage';
8
+ import type { default as CandidacyTable } from './Candidacy';
9
+ import type { default as PersonToPersonNetworkTable } from './PersonToPersonNetwork';
10
+ import type { default as PersonToBestPersonTable } from './PersonToBestPerson';
11
+ import type { default as WebsiteStaticPageTable } from './WebsiteStaticPage';
12
+ import type { default as PersonNetworkTable } from './PersonNetwork';
13
+ import type { default as ReferralPayoutTable } from './ReferralPayout';
14
+ import type { default as ContractTable } from './Contract';
15
+ import type { default as OtpTable } from './Otp';
16
+ import type { default as PersonClubTable } from './PersonClub';
17
+ import type { default as NoteTable } from './Note';
18
+ import type { default as PersonToTagTable } from './PersonToTag';
19
+ import type { default as AdminTable } from './Admin';
20
+ import type { default as SenderTable } from './Sender';
21
+ import type { default as ListViewTable } from './ListView';
22
+ import type { default as TagTable } from './Tag';
23
+ import type { default as PersonToPersonClubTable } from './PersonToPersonClub';
24
+ import type { default as JwtTable } from './Jwt';
25
+ import type { default as CampaignToPositionTable } from './CampaignToPosition';
26
+ import type { default as PersonSkillTable } from './PersonSkill';
27
+ import type { default as PersonEnrichmentTable } from './PersonEnrichment';
28
+ import type { default as ActionTable } from './Action';
29
+ import type { default as PersonTable } from './Person';
30
+ import type { default as WebsiteLandingPageTable } from './WebsiteLandingPage';
31
+ import type { default as WebsiteBlockTable } from './WebsiteBlock';
32
+ import type { default as PositionTable } from './Position';
33
+ import type { default as CampaignTable } from './Campaign';
34
+ import type { default as CandidacyFeedbackTable } from './CandidacyFeedback';
35
+ import type { default as MessageTable } from './Message';
36
+ import type { default as ClientTable } from './Client';
37
+ import type { default as ConversationTable } from './Conversation';
38
+ import type { default as CandidacyRatingToTagTable } from './CandidacyRatingToTag';
39
+
40
+ export default interface PublicSchema {
41
+ PersonToPersonSkill: PersonToPersonSkillTable;
42
+
43
+ MessageTemplate: MessageTemplateTable;
44
+
45
+ Referral: ReferralTable;
46
+
47
+ ReferralToIntroMessage: ReferralToIntroMessageTable;
48
+
49
+ Candidacy: CandidacyTable;
50
+
51
+ PersonToPersonNetwork: PersonToPersonNetworkTable;
52
+
53
+ PersonToBestPerson: PersonToBestPersonTable;
54
+
55
+ WebsiteStaticPage: WebsiteStaticPageTable;
56
+
57
+ PersonNetwork: PersonNetworkTable;
58
+
59
+ ReferralPayout: ReferralPayoutTable;
60
+
61
+ Contract: ContractTable;
62
+
63
+ Otp: OtpTable;
64
+
65
+ PersonClub: PersonClubTable;
66
+
67
+ Note: NoteTable;
68
+
69
+ PersonToTag: PersonToTagTable;
70
+
71
+ Admin: AdminTable;
72
+
73
+ Sender: SenderTable;
74
+
75
+ ListView: ListViewTable;
76
+
77
+ Tag: TagTable;
78
+
79
+ PersonToPersonClub: PersonToPersonClubTable;
80
+
81
+ Jwt: JwtTable;
82
+
83
+ CampaignToPosition: CampaignToPositionTable;
84
+
85
+ PersonSkill: PersonSkillTable;
86
+
87
+ PersonEnrichment: PersonEnrichmentTable;
88
+
89
+ Action: ActionTable;
90
+
91
+ Person: PersonTable;
92
+
93
+ WebsiteLandingPage: WebsiteLandingPageTable;
94
+
95
+ WebsiteBlock: WebsiteBlockTable;
96
+
97
+ Position: PositionTable;
98
+
99
+ Campaign: CampaignTable;
100
+
101
+ CandidacyFeedback: CandidacyFeedbackTable;
102
+
103
+ Message: MessageTable;
104
+
105
+ Client: ClientTable;
106
+
107
+ Conversation: ConversationTable;
108
+
109
+ CandidacyRatingToTag: CandidacyRatingToTagTable;
110
+ }
@@ -6,73 +6,34 @@ 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';
9
10
 
10
11
  /** Identifier type for public.Referral */
11
12
  export type ReferralId = string & { __brand: 'ReferralId' };
12
13
 
13
14
  /** Represents the table public.Referral */
14
- export default interface Referral {
15
- id: ReferralId;
15
+ export default interface ReferralTable {
16
+ id: ColumnType<ReferralId, ReferralId | undefined, ReferralId>;
16
17
 
17
- source: ReferralSources | null;
18
+ source: ColumnType<ReferralSources | null, ReferralSources | null, ReferralSources | null>;
18
19
 
19
- referrerId: PersonId;
20
+ referrerId: ColumnType<PersonId, PersonId, PersonId>;
20
21
 
21
- candidacyId: CandidacyId;
22
+ candidacyId: ColumnType<CandidacyId, CandidacyId, CandidacyId>;
22
23
 
23
- campaignId: CampaignId | null;
24
+ campaignId: ColumnType<CampaignId | null, CampaignId | null, CampaignId | null>;
24
25
 
25
- positionId: PositionId;
26
+ positionId: ColumnType<PositionId, PositionId, PositionId>;
26
27
 
27
- createdAt: Date;
28
+ createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
28
29
 
29
- updatedAt: Date;
30
+ updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
30
31
 
31
- messageId: string | null;
32
+ messageId: ColumnType<string | null, string | null, string | null>;
32
33
  }
33
34
 
34
- /** Represents the initializer for the table public.Referral */
35
- export interface ReferralInitializer {
36
- /** Default value: gen_random_uuid() */
37
- id?: ReferralId;
35
+ export type Referral = Selectable<ReferralTable>;
38
36
 
39
- /** Default value: 'ADMIN'::"ReferralSources" */
40
- source?: ReferralSources | null;
37
+ export type NewReferral = Insertable<ReferralTable>;
41
38
 
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
- }
39
+ export type ReferralUpdate = Updateable<ReferralTable>;
@@ -2,28 +2,20 @@
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';
5
6
 
6
7
  /** Identifier type for public.ReferralPayout */
7
8
  export type ReferralPayoutId = string & { __brand: 'ReferralPayoutId' };
8
9
 
9
10
  /** Represents the table public.ReferralPayout */
10
- export default interface ReferralPayout {
11
- id: ReferralPayoutId;
11
+ export default interface ReferralPayoutTable {
12
+ id: ColumnType<ReferralPayoutId, ReferralPayoutId | undefined, ReferralPayoutId>;
12
13
 
13
- referralId: ReferralId | null;
14
+ referralId: ColumnType<ReferralId | null, ReferralId | null, ReferralId | null>;
14
15
  }
15
16
 
16
- /** Represents the initializer for the table public.ReferralPayout */
17
- export interface ReferralPayoutInitializer {
18
- /** Default value: gen_random_uuid() */
19
- id?: ReferralPayoutId;
17
+ export type ReferralPayout = Selectable<ReferralPayoutTable>;
20
18
 
21
- referralId?: ReferralId | null;
22
- }
23
-
24
- /** Represents the mutator for the table public.ReferralPayout */
25
- export interface ReferralPayoutMutator {
26
- id?: ReferralPayoutId;
19
+ export type NewReferralPayout = Insertable<ReferralPayoutTable>;
27
20
 
28
- referralId?: ReferralId | null;
29
- }
21
+ export type ReferralPayoutUpdate = Updateable<ReferralPayoutTable>;
@@ -3,38 +3,21 @@
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';
6
7
 
7
8
  /** Represents the table public.ReferralToIntroMessage */
8
- export default interface ReferralToIntroMessage {
9
- messageId: MessageId;
9
+ export default interface ReferralToIntroMessageTable {
10
+ messageId: ColumnType<MessageId, MessageId, MessageId>;
10
11
 
11
- referralId: ReferralId;
12
+ referralId: ColumnType<ReferralId, ReferralId, ReferralId>;
12
13
 
13
- createdAt: Date;
14
+ createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
14
15
 
15
- updatedAt: Date;
16
+ updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
16
17
  }
17
18
 
18
- /** Represents the initializer for the table public.ReferralToIntroMessage */
19
- export interface ReferralToIntroMessageInitializer {
20
- messageId: MessageId;
19
+ export type ReferralToIntroMessage = Selectable<ReferralToIntroMessageTable>;
21
20
 
22
- referralId: ReferralId;
21
+ export type NewReferralToIntroMessage = Insertable<ReferralToIntroMessageTable>;
23
22
 
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
- }
23
+ export type ReferralToIntroMessageUpdate = Updateable<ReferralToIntroMessageTable>;
@@ -1,59 +1,30 @@
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
+
4
6
  /** Identifier type for public.Sender */
5
7
  export type SenderId = string & { __brand: 'SenderId' };
6
8
 
7
9
  /** Represents the table public.Sender */
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;
10
+ export default interface SenderTable {
11
+ id: ColumnType<SenderId, SenderId | undefined, SenderId>;
28
12
 
29
- name: string;
13
+ name: ColumnType<string, string, string>;
30
14
 
31
- email?: string | null;
15
+ email: ColumnType<string | null, string | null, string | null>;
32
16
 
33
- replyToEmail?: string | null;
17
+ replyToEmail: ColumnType<string | null, string | null, string | null>;
34
18
 
35
- smsNumber?: string | null;
19
+ smsNumber: ColumnType<string | null, string | null, string | null>;
36
20
 
37
- /** Default value: CURRENT_TIMESTAMP */
38
- createdAt?: Date;
21
+ createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
39
22
 
40
- /** Default value: CURRENT_TIMESTAMP */
41
- updatedAt?: Date;
23
+ updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
42
24
  }
43
25
 
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;
26
+ export type Sender = Selectable<SenderTable>;
51
27
 
52
- replyToEmail?: string | null;
28
+ export type NewSender = Insertable<SenderTable>;
53
29
 
54
- smsNumber?: string | null;
55
-
56
- createdAt?: Date;
57
-
58
- updatedAt?: Date;
59
- }
30
+ export type SenderUpdate = Updateable<SenderTable>;
@@ -1,47 +1,26 @@
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
+
4
6
  /** Identifier type for public.Tag */
5
7
  export type TagId = string & { __brand: 'TagId' };
6
8
 
7
9
  /** Represents the table public.Tag */
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;
10
+ export default interface TagTable {
11
+ id: ColumnType<TagId, TagId | undefined, TagId>;
24
12
 
25
- slug: string;
13
+ slug: ColumnType<string, string, string>;
26
14
 
27
- name: string;
15
+ name: ColumnType<string, string, string>;
28
16
 
29
- /** Default value: CURRENT_TIMESTAMP */
30
- createdAt?: Date;
17
+ createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
31
18
 
32
- /** Default value: CURRENT_TIMESTAMP */
33
- updatedAt?: Date;
19
+ updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
34
20
  }
35
21
 
36
- /** Represents the mutator for the table public.Tag */
37
- export interface TagMutator {
38
- id?: TagId;
39
-
40
- slug?: string;
22
+ export type Tag = Selectable<TagTable>;
41
23
 
42
- name?: string;
24
+ export type NewTag = Insertable<TagTable>;
43
25
 
44
- createdAt?: Date;
45
-
46
- updatedAt?: Date;
47
- }
26
+ export type TagUpdate = Updateable<TagTable>;