@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
@@ -6,104 +6,288 @@ import type { default as PersonCareerLevels } from './PersonCareerLevels';
6
6
  import type { default as PersonDegrees } from './PersonDegrees';
7
7
  import type { default as PersonGenders } from './PersonGenders';
8
8
  import type { ClientId } from './Client';
9
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
10
9
 
11
10
  /** Identifier type for public.Person */
12
11
  export type PersonId = string & { __brand: 'PersonId' };
13
12
 
14
13
  /** Represents the table public.Person */
15
- export default interface PersonTable {
16
- id: ColumnType<PersonId, PersonId | undefined, PersonId>;
14
+ export default interface Person {
15
+ id: PersonId;
17
16
 
18
- email: ColumnType<string, string, string>;
17
+ email: string;
19
18
 
20
- emailVerified: ColumnType<boolean, boolean | undefined, boolean>;
19
+ emailVerified: boolean;
21
20
 
22
- firstName: ColumnType<string | null, string | null, string | null>;
21
+ firstName: string | null;
23
22
 
24
- lastName: ColumnType<string | null, string | null, string | null>;
23
+ lastName: string | null;
25
24
 
26
- linkedInUrl: ColumnType<string | null, string | null, string | null>;
25
+ linkedInUrl: string | null;
27
26
 
28
- phone: ColumnType<string | null, string | null, string | null>;
27
+ phone: string | null;
29
28
 
30
- phoneVerified: ColumnType<boolean, boolean | undefined, boolean>;
29
+ phoneVerified: boolean;
31
30
 
32
- emailOptOut: ColumnType<boolean, boolean | undefined, boolean>;
31
+ emailOptOut: boolean;
33
32
 
34
- smsOptOut: ColumnType<boolean, boolean | undefined, boolean>;
33
+ smsOptOut: boolean;
35
34
 
36
- resumeUrl: ColumnType<string | null, string | null, string | null>;
35
+ resumeUrl: string | null;
37
36
 
38
- photoUrl: ColumnType<string | null, string | null, string | null>;
37
+ photoUrl: string | null;
39
38
 
40
- lat: ColumnType<number | null, number | null, number | null>;
39
+ lat: number | null;
41
40
 
42
- lon: ColumnType<number | null, number | null, number | null>;
41
+ lon: number | null;
43
42
 
44
- city: ColumnType<string | null, string | null, string | null>;
43
+ city: string | null;
45
44
 
46
- state: ColumnType<string | null, string | null, string | null>;
45
+ state: string | null;
47
46
 
48
- postalCode: ColumnType<string | null, string | null, string | null>;
47
+ postalCode: string | null;
49
48
 
50
- country: ColumnType<string | null, string | null, string | null>;
49
+ country: string | null;
51
50
 
52
- additionalEmails: ColumnType<string[] | null, string[] | null, string[] | null>;
51
+ additionalEmails: string[] | null;
53
52
 
54
- additionalPhones: ColumnType<string[] | null, string[] | null, string[] | null>;
53
+ additionalPhones: string[] | null;
55
54
 
56
- source: ColumnType<PersonSources | null, PersonSources | null, PersonSources | null>;
55
+ source: PersonSources | null;
57
56
 
58
- website: ColumnType<string | null, string | null, string | null>;
57
+ website: string | null;
59
58
 
60
- currentSalary: ColumnType<number | null, number | null, number | null>;
59
+ currentSalary: number | null;
61
60
 
62
- expectedSalary: ColumnType<number | null, number | null, number | null>;
61
+ expectedSalary: number | null;
63
62
 
64
- currentEmployer: ColumnType<string | null, string | null, string | null>;
63
+ currentEmployer: string | null;
65
64
 
66
- currentTitle: ColumnType<string | null, string | null, string | null>;
65
+ currentTitle: string | null;
67
66
 
68
- careerLevel: ColumnType<PersonCareerLevels | null, PersonCareerLevels | null, PersonCareerLevels | null>;
67
+ careerLevel: PersonCareerLevels | null;
69
68
 
70
- certifications: ColumnType<string[] | null, string[] | null, string[] | null>;
69
+ certifications: string[] | null;
71
70
 
72
- openToRelocate: ColumnType<boolean | null, boolean | null, boolean | null>;
71
+ openToRelocate: boolean | null;
73
72
 
74
- highestDegreeObtained: ColumnType<PersonDegrees | null, PersonDegrees | null, PersonDegrees | null>;
73
+ highestDegreeObtained: PersonDegrees | null;
75
74
 
76
- undergraduateInstitution: ColumnType<string | null, string | null, string | null>;
75
+ undergraduateInstitution: string | null;
77
76
 
78
- typeOfUndergraduateDegree: ColumnType<string | null, string | null, string | null>;
77
+ typeOfUndergraduateDegree: string | null;
79
78
 
80
- graduateInstitution: ColumnType<string | null, string | null, string | null>;
79
+ graduateInstitution: string | null;
81
80
 
82
- typeOfGraduateDegree: ColumnType<string | null, string | null, string | null>;
81
+ typeOfGraduateDegree: string | null;
83
82
 
84
- gender: ColumnType<PersonGenders | null, PersonGenders | null, PersonGenders | null>;
83
+ gender: PersonGenders | null;
85
84
 
86
- howDidYouHearAboutUs: ColumnType<string | null, string | null, string | null>;
85
+ howDidYouHearAboutUs: string | null;
87
86
 
88
- sourcePersonId: ColumnType<PersonId | null, PersonId | null, PersonId | null>;
87
+ sourcePersonId: PersonId | null;
89
88
 
90
- deactivatedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
89
+ deactivatedAt: Date | null;
91
90
 
92
- lastSignedInAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
91
+ lastSignedInAt: Date | null;
93
92
 
94
- signInCount: ColumnType<number, number | undefined, number>;
93
+ signInCount: number;
95
94
 
96
- clientId: ColumnType<ClientId | null, ClientId | null, ClientId | null>;
95
+ clientId: ClientId | null;
97
96
 
98
- deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
97
+ deletedAt: Date | null;
99
98
 
100
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
99
+ createdAt: Date;
101
100
 
102
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
101
+ updatedAt: Date;
103
102
  }
104
103
 
105
- export type Person = Selectable<PersonTable>;
104
+ /** Represents the initializer for the table public.Person */
105
+ export interface PersonInitializer {
106
+ /** Default value: gen_random_uuid() */
107
+ id?: PersonId;
106
108
 
107
- export type NewPerson = Insertable<PersonTable>;
109
+ email: string;
108
110
 
109
- export type PersonUpdate = Updateable<PersonTable>;
111
+ /** Default value: false */
112
+ emailVerified?: boolean;
113
+
114
+ firstName?: string | null;
115
+
116
+ lastName?: string | null;
117
+
118
+ linkedInUrl?: string | null;
119
+
120
+ phone?: string | null;
121
+
122
+ /** Default value: false */
123
+ phoneVerified?: boolean;
124
+
125
+ /** Default value: false */
126
+ emailOptOut?: boolean;
127
+
128
+ /** Default value: false */
129
+ smsOptOut?: boolean;
130
+
131
+ resumeUrl?: string | null;
132
+
133
+ photoUrl?: string | null;
134
+
135
+ lat?: number | null;
136
+
137
+ lon?: number | null;
138
+
139
+ city?: string | null;
140
+
141
+ state?: string | null;
142
+
143
+ postalCode?: string | null;
144
+
145
+ country?: string | null;
146
+
147
+ additionalEmails?: string[] | null;
148
+
149
+ additionalPhones?: string[] | null;
150
+
151
+ /** Default value: 'STAFF'::"PersonSources" */
152
+ source?: PersonSources | null;
153
+
154
+ website?: string | null;
155
+
156
+ currentSalary?: number | null;
157
+
158
+ expectedSalary?: number | null;
159
+
160
+ currentEmployer?: string | null;
161
+
162
+ currentTitle?: string | null;
163
+
164
+ careerLevel?: PersonCareerLevels | null;
165
+
166
+ certifications?: string[] | null;
167
+
168
+ openToRelocate?: boolean | null;
169
+
170
+ highestDegreeObtained?: PersonDegrees | null;
171
+
172
+ undergraduateInstitution?: string | null;
173
+
174
+ typeOfUndergraduateDegree?: string | null;
175
+
176
+ graduateInstitution?: string | null;
177
+
178
+ typeOfGraduateDegree?: string | null;
179
+
180
+ gender?: PersonGenders | null;
181
+
182
+ howDidYouHearAboutUs?: string | null;
183
+
184
+ sourcePersonId?: PersonId | null;
185
+
186
+ deactivatedAt?: Date | null;
187
+
188
+ lastSignedInAt?: Date | null;
189
+
190
+ /** Default value: 0 */
191
+ signInCount?: number;
192
+
193
+ clientId?: ClientId | null;
194
+
195
+ deletedAt?: Date | null;
196
+
197
+ /** Default value: CURRENT_TIMESTAMP */
198
+ createdAt?: Date;
199
+
200
+ /** Default value: CURRENT_TIMESTAMP */
201
+ updatedAt?: Date;
202
+ }
203
+
204
+ /** Represents the mutator for the table public.Person */
205
+ export interface PersonMutator {
206
+ id?: PersonId;
207
+
208
+ email?: string;
209
+
210
+ emailVerified?: boolean;
211
+
212
+ firstName?: string | null;
213
+
214
+ lastName?: string | null;
215
+
216
+ linkedInUrl?: string | null;
217
+
218
+ phone?: string | null;
219
+
220
+ phoneVerified?: boolean;
221
+
222
+ emailOptOut?: boolean;
223
+
224
+ smsOptOut?: boolean;
225
+
226
+ resumeUrl?: string | null;
227
+
228
+ photoUrl?: string | null;
229
+
230
+ lat?: number | null;
231
+
232
+ lon?: number | null;
233
+
234
+ city?: string | null;
235
+
236
+ state?: string | null;
237
+
238
+ postalCode?: string | null;
239
+
240
+ country?: string | null;
241
+
242
+ additionalEmails?: string[] | null;
243
+
244
+ additionalPhones?: string[] | null;
245
+
246
+ source?: PersonSources | null;
247
+
248
+ website?: string | null;
249
+
250
+ currentSalary?: number | null;
251
+
252
+ expectedSalary?: number | null;
253
+
254
+ currentEmployer?: string | null;
255
+
256
+ currentTitle?: string | null;
257
+
258
+ careerLevel?: PersonCareerLevels | null;
259
+
260
+ certifications?: string[] | null;
261
+
262
+ openToRelocate?: boolean | null;
263
+
264
+ highestDegreeObtained?: PersonDegrees | null;
265
+
266
+ undergraduateInstitution?: string | null;
267
+
268
+ typeOfUndergraduateDegree?: string | null;
269
+
270
+ graduateInstitution?: string | null;
271
+
272
+ typeOfGraduateDegree?: string | null;
273
+
274
+ gender?: PersonGenders | null;
275
+
276
+ howDidYouHearAboutUs?: string | null;
277
+
278
+ sourcePersonId?: PersonId | null;
279
+
280
+ deactivatedAt?: Date | null;
281
+
282
+ lastSignedInAt?: Date | null;
283
+
284
+ signInCount?: number;
285
+
286
+ clientId?: ClientId | null;
287
+
288
+ deletedAt?: Date | null;
289
+
290
+ createdAt?: Date;
291
+
292
+ updatedAt?: Date;
293
+ }
@@ -1,28 +1,53 @@
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.PersonClub */
7
5
  export type PersonClubId = string & { __brand: 'PersonClubId' };
8
6
 
9
7
  /** Represents the table public.PersonClub */
10
- export default interface PersonClubTable {
11
- id: ColumnType<PersonClubId, PersonClubId | undefined, PersonClubId>;
8
+ export default interface PersonClub {
9
+ id: PersonClubId;
10
+
11
+ slug: string;
12
+
13
+ name: string;
14
+
15
+ deletedAt: Date | null;
16
+
17
+ createdAt: Date;
18
+
19
+ updatedAt: Date;
20
+ }
21
+
22
+ /** Represents the initializer for the table public.PersonClub */
23
+ export interface PersonClubInitializer {
24
+ /** Default value: gen_random_uuid() */
25
+ id?: PersonClubId;
12
26
 
13
- slug: ColumnType<string, string, string>;
27
+ slug: string;
14
28
 
15
- name: ColumnType<string, string, string>;
29
+ name: string;
16
30
 
17
- deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
31
+ deletedAt?: Date | null;
18
32
 
19
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
33
+ /** Default value: CURRENT_TIMESTAMP */
34
+ createdAt?: Date;
20
35
 
21
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
36
+ /** Default value: CURRENT_TIMESTAMP */
37
+ updatedAt?: Date;
22
38
  }
23
39
 
24
- export type PersonClub = Selectable<PersonClubTable>;
40
+ /** Represents the mutator for the table public.PersonClub */
41
+ export interface PersonClubMutator {
42
+ id?: PersonClubId;
43
+
44
+ slug?: string;
25
45
 
26
- export type NewPersonClub = Insertable<PersonClubTable>;
46
+ name?: string;
27
47
 
28
- export type PersonClubUpdate = Updateable<PersonClubTable>;
48
+ deletedAt?: Date | null;
49
+
50
+ createdAt?: Date;
51
+
52
+ updatedAt?: Date;
53
+ }
@@ -3,30 +3,60 @@
3
3
 
4
4
  import type { default as EnrichmentSources } from './EnrichmentSources';
5
5
  import type { PersonId } from './Person';
6
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
7
6
 
8
7
  /** Identifier type for public.PersonEnrichment */
9
8
  export type PersonEnrichmentId = string & { __brand: 'PersonEnrichmentId' };
10
9
 
11
10
  /** Represents the table public.PersonEnrichment */
12
- export default interface PersonEnrichmentTable {
13
- id: ColumnType<PersonEnrichmentId, PersonEnrichmentId | undefined, PersonEnrichmentId>;
11
+ export default interface PersonEnrichment {
12
+ id: PersonEnrichmentId;
14
13
 
15
- data: ColumnType<unknown | null, unknown | null, unknown | null>;
14
+ data: unknown | null;
16
15
 
17
- likelihood: ColumnType<number | null, number | null, number | null>;
16
+ likelihood: number | null;
18
17
 
19
- source: ColumnType<EnrichmentSources, EnrichmentSources, EnrichmentSources>;
18
+ source: EnrichmentSources;
20
19
 
21
- personId: ColumnType<PersonId, PersonId, PersonId>;
20
+ personId: PersonId;
22
21
 
23
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
22
+ createdAt: Date;
24
23
 
25
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
24
+ updatedAt: Date;
26
25
  }
27
26
 
28
- export type PersonEnrichment = Selectable<PersonEnrichmentTable>;
27
+ /** Represents the initializer for the table public.PersonEnrichment */
28
+ export interface PersonEnrichmentInitializer {
29
+ /** Default value: gen_random_uuid() */
30
+ id?: PersonEnrichmentId;
29
31
 
30
- export type NewPersonEnrichment = Insertable<PersonEnrichmentTable>;
32
+ data?: unknown | null;
31
33
 
32
- export type PersonEnrichmentUpdate = Updateable<PersonEnrichmentTable>;
34
+ likelihood?: number | null;
35
+
36
+ source: EnrichmentSources;
37
+
38
+ personId: PersonId;
39
+
40
+ /** Default value: CURRENT_TIMESTAMP */
41
+ createdAt?: Date;
42
+
43
+ /** Default value: CURRENT_TIMESTAMP */
44
+ updatedAt?: Date;
45
+ }
46
+
47
+ /** Represents the mutator for the table public.PersonEnrichment */
48
+ export interface PersonEnrichmentMutator {
49
+ id?: PersonEnrichmentId;
50
+
51
+ data?: unknown | null;
52
+
53
+ likelihood?: number | null;
54
+
55
+ source?: EnrichmentSources;
56
+
57
+ personId?: PersonId;
58
+
59
+ createdAt?: Date;
60
+
61
+ updatedAt?: Date;
62
+ }
@@ -1,28 +1,53 @@
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.PersonNetwork */
7
5
  export type PersonNetworkId = string & { __brand: 'PersonNetworkId' };
8
6
 
9
7
  /** Represents the table public.PersonNetwork */
10
- export default interface PersonNetworkTable {
11
- id: ColumnType<PersonNetworkId, PersonNetworkId | undefined, PersonNetworkId>;
8
+ export default interface PersonNetwork {
9
+ id: PersonNetworkId;
10
+
11
+ slug: string;
12
+
13
+ name: string;
14
+
15
+ deletedAt: Date | null;
16
+
17
+ createdAt: Date;
18
+
19
+ updatedAt: Date;
20
+ }
21
+
22
+ /** Represents the initializer for the table public.PersonNetwork */
23
+ export interface PersonNetworkInitializer {
24
+ /** Default value: gen_random_uuid() */
25
+ id?: PersonNetworkId;
12
26
 
13
- slug: ColumnType<string, string, string>;
27
+ slug: string;
14
28
 
15
- name: ColumnType<string, string, string>;
29
+ name: string;
16
30
 
17
- deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
31
+ deletedAt?: Date | null;
18
32
 
19
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
33
+ /** Default value: CURRENT_TIMESTAMP */
34
+ createdAt?: Date;
20
35
 
21
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
36
+ /** Default value: CURRENT_TIMESTAMP */
37
+ updatedAt?: Date;
22
38
  }
23
39
 
24
- export type PersonNetwork = Selectable<PersonNetworkTable>;
40
+ /** Represents the mutator for the table public.PersonNetwork */
41
+ export interface PersonNetworkMutator {
42
+ id?: PersonNetworkId;
43
+
44
+ slug?: string;
25
45
 
26
- export type NewPersonNetwork = Insertable<PersonNetworkTable>;
46
+ name?: string;
27
47
 
28
- export type PersonNetworkUpdate = Updateable<PersonNetworkTable>;
48
+ deletedAt?: Date | null;
49
+
50
+ createdAt?: Date;
51
+
52
+ updatedAt?: Date;
53
+ }
@@ -1,28 +1,53 @@
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.PersonSkill */
7
5
  export type PersonSkillId = string & { __brand: 'PersonSkillId' };
8
6
 
9
7
  /** Represents the table public.PersonSkill */
10
- export default interface PersonSkillTable {
11
- id: ColumnType<PersonSkillId, PersonSkillId | undefined, PersonSkillId>;
8
+ export default interface PersonSkill {
9
+ id: PersonSkillId;
10
+
11
+ slug: string;
12
+
13
+ name: string;
14
+
15
+ deletedAt: Date | null;
16
+
17
+ createdAt: Date;
18
+
19
+ updatedAt: Date;
20
+ }
21
+
22
+ /** Represents the initializer for the table public.PersonSkill */
23
+ export interface PersonSkillInitializer {
24
+ /** Default value: gen_random_uuid() */
25
+ id?: PersonSkillId;
12
26
 
13
- slug: ColumnType<string, string, string>;
27
+ slug: string;
14
28
 
15
- name: ColumnType<string, string, string>;
29
+ name: string;
16
30
 
17
- deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
31
+ deletedAt?: Date | null;
18
32
 
19
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
33
+ /** Default value: CURRENT_TIMESTAMP */
34
+ createdAt?: Date;
20
35
 
21
- updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
36
+ /** Default value: CURRENT_TIMESTAMP */
37
+ updatedAt?: Date;
22
38
  }
23
39
 
24
- export type PersonSkill = Selectable<PersonSkillTable>;
40
+ /** Represents the mutator for the table public.PersonSkill */
41
+ export interface PersonSkillMutator {
42
+ id?: PersonSkillId;
43
+
44
+ slug?: string;
25
45
 
26
- export type NewPersonSkill = Insertable<PersonSkillTable>;
46
+ name?: string;
27
47
 
28
- export type PersonSkillUpdate = Updateable<PersonSkillTable>;
48
+ deletedAt?: Date | null;
49
+
50
+ createdAt?: Date;
51
+
52
+ updatedAt?: Date;
53
+ }
@@ -2,19 +2,31 @@
2
2
  // This file is automatically generated by Kanel. Do not modify manually.
3
3
 
4
4
  import type { PersonId } from './Person';
5
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
6
5
 
7
6
  /** Represents the table public.PersonToBestPerson */
8
- export default interface PersonToBestPersonTable {
9
- bestiedByPersonId: ColumnType<PersonId, PersonId, PersonId>;
7
+ export default interface PersonToBestPerson {
8
+ bestiedByPersonId: PersonId;
10
9
 
11
- bestPersonId: ColumnType<PersonId, PersonId, PersonId>;
10
+ bestPersonId: PersonId;
12
11
 
13
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
12
+ createdAt: Date;
14
13
  }
15
14
 
16
- export type PersonToBestPerson = Selectable<PersonToBestPersonTable>;
15
+ /** Represents the initializer for the table public.PersonToBestPerson */
16
+ export interface PersonToBestPersonInitializer {
17
+ bestiedByPersonId: PersonId;
17
18
 
18
- export type NewPersonToBestPerson = Insertable<PersonToBestPersonTable>;
19
+ bestPersonId: PersonId;
19
20
 
20
- export type PersonToBestPersonUpdate = Updateable<PersonToBestPersonTable>;
21
+ /** Default value: CURRENT_TIMESTAMP */
22
+ createdAt?: Date;
23
+ }
24
+
25
+ /** Represents the mutator for the table public.PersonToBestPerson */
26
+ export interface PersonToBestPersonMutator {
27
+ bestiedByPersonId?: PersonId;
28
+
29
+ bestPersonId?: PersonId;
30
+
31
+ createdAt?: Date;
32
+ }
@@ -3,19 +3,31 @@
3
3
 
4
4
  import type { PersonId } from './Person';
5
5
  import type { PersonClubId } from './PersonClub';
6
- import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
7
6
 
8
7
  /** Represents the table public.PersonToPersonClub */
9
- export default interface PersonToPersonClubTable {
10
- personId: ColumnType<PersonId, PersonId, PersonId>;
8
+ export default interface PersonToPersonClub {
9
+ personId: PersonId;
11
10
 
12
- clubId: ColumnType<PersonClubId, PersonClubId, PersonClubId>;
11
+ clubId: PersonClubId;
13
12
 
14
- createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
13
+ createdAt: Date;
15
14
  }
16
15
 
17
- export type PersonToPersonClub = Selectable<PersonToPersonClubTable>;
16
+ /** Represents the initializer for the table public.PersonToPersonClub */
17
+ export interface PersonToPersonClubInitializer {
18
+ personId: PersonId;
18
19
 
19
- export type NewPersonToPersonClub = Insertable<PersonToPersonClubTable>;
20
+ clubId: PersonClubId;
20
21
 
21
- export type PersonToPersonClubUpdate = Updateable<PersonToPersonClubTable>;
22
+ /** Default value: CURRENT_TIMESTAMP */
23
+ createdAt?: Date;
24
+ }
25
+
26
+ /** Represents the mutator for the table public.PersonToPersonClub */
27
+ export interface PersonToPersonClubMutator {
28
+ personId?: PersonId;
29
+
30
+ clubId?: PersonClubId;
31
+
32
+ createdAt?: Date;
33
+ }