@the-inkwell/shared 0.1.68 → 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.
- package/dist/src/types/_schema/PublicSchema.js +4 -0
- package/package.json +1 -1
- package/src/types/_schema/Action.ts +16 -61
- package/src/types/_schema/Admin.ts +8 -21
- package/src/types/_schema/Campaign.ts +14 -54
- package/src/types/_schema/CampaignToPosition.ts +9 -26
- package/src/types/_schema/Candidacy.ts +15 -59
- package/src/types/_schema/CandidacyFeedback.ts +11 -37
- package/src/types/_schema/CandidacyRatingToTag.ts +9 -26
- package/src/types/_schema/Client.ts +11 -38
- package/src/types/_schema/Contract.ts +12 -42
- package/src/types/_schema/Conversation.ts +12 -43
- package/src/types/_schema/Jwt.ts +11 -37
- package/src/types/_schema/ListView.ts +14 -52
- package/src/types/_schema/Message.ts +13 -48
- package/src/types/_schema/MessageTemplate.ts +12 -37
- package/src/types/_schema/Note.ts +14 -52
- package/src/types/_schema/Otp.ts +12 -42
- package/src/types/_schema/Person.ts +49 -233
- package/src/types/_schema/PersonClub.ts +12 -37
- package/src/types/_schema/PersonEnrichment.ts +12 -42
- package/src/types/_schema/PersonNetwork.ts +12 -37
- package/src/types/_schema/PersonSkill.ts +12 -37
- package/src/types/_schema/PersonToBestPerson.ts +8 -20
- package/src/types/_schema/PersonToPersonClub.ts +8 -20
- package/src/types/_schema/PersonToPersonNetwork.ts +8 -20
- package/src/types/_schema/PersonToPersonSkill.ts +8 -20
- package/src/types/_schema/PersonToTag.ts +8 -20
- package/src/types/_schema/Position.ts +14 -55
- package/src/types/_schema/PublicSchema.ts +110 -0
- package/src/types/_schema/Referral.ts +14 -53
- package/src/types/_schema/ReferralPayout.ts +7 -15
- package/src/types/_schema/ReferralToIntroMessage.ts +9 -26
- package/src/types/_schema/Sender.ts +13 -42
- package/src/types/_schema/Tag.ts +11 -32
- package/src/types/_schema/WebsiteBlock.ts +11 -30
- package/src/types/_schema/WebsiteLandingPage.ts +11 -32
- package/src/types/_schema/WebsiteStaticPage.ts +12 -37
- package/src/types/models/admin/persons/index.ts +3 -4
- package/src/types/models/admin/website/index.ts +5 -3
|
@@ -4,61 +4,30 @@
|
|
|
4
4
|
import type { default as MessageChannels } from './MessageChannels';
|
|
5
5
|
import type { PersonId } from './Person';
|
|
6
6
|
import type { CampaignId } from './Campaign';
|
|
7
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
7
8
|
|
|
8
9
|
/** Identifier type for public.Conversation */
|
|
9
10
|
export type ConversationId = string & { __brand: 'ConversationId' };
|
|
10
11
|
|
|
11
12
|
/** Represents the table public.Conversation */
|
|
12
|
-
export default interface
|
|
13
|
-
id: ConversationId
|
|
13
|
+
export default interface ConversationTable {
|
|
14
|
+
id: ColumnType<ConversationId, ConversationId | undefined, ConversationId>;
|
|
14
15
|
|
|
15
|
-
urlId: number
|
|
16
|
+
urlId: ColumnType<number, number | undefined, number>;
|
|
16
17
|
|
|
17
|
-
channel: MessageChannels
|
|
18
|
+
channel: ColumnType<MessageChannels, MessageChannels, MessageChannels>;
|
|
18
19
|
|
|
19
|
-
personId: PersonId
|
|
20
|
+
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
20
21
|
|
|
21
|
-
campaignId: CampaignId | null
|
|
22
|
+
campaignId: ColumnType<CampaignId | null, CampaignId | null, CampaignId | null>;
|
|
22
23
|
|
|
23
|
-
createdAt: Date
|
|
24
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
24
25
|
|
|
25
|
-
updatedAt: Date
|
|
26
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
export interface ConversationInitializer {
|
|
30
|
-
/** Default value: gen_random_uuid() */
|
|
31
|
-
id?: ConversationId;
|
|
29
|
+
export type Conversation = Selectable<ConversationTable>;
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
urlId?: number;
|
|
31
|
+
export type NewConversation = Insertable<ConversationTable>;
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
personId: PersonId;
|
|
39
|
-
|
|
40
|
-
campaignId?: CampaignId | null;
|
|
41
|
-
|
|
42
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
43
|
-
createdAt?: Date;
|
|
44
|
-
|
|
45
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
46
|
-
updatedAt?: Date;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** Represents the mutator for the table public.Conversation */
|
|
50
|
-
export interface ConversationMutator {
|
|
51
|
-
id?: ConversationId;
|
|
52
|
-
|
|
53
|
-
urlId?: number;
|
|
54
|
-
|
|
55
|
-
channel?: MessageChannels;
|
|
56
|
-
|
|
57
|
-
personId?: PersonId;
|
|
58
|
-
|
|
59
|
-
campaignId?: CampaignId | null;
|
|
60
|
-
|
|
61
|
-
createdAt?: Date;
|
|
62
|
-
|
|
63
|
-
updatedAt?: Date;
|
|
64
|
-
}
|
|
33
|
+
export type ConversationUpdate = Updateable<ConversationTable>;
|
package/src/types/_schema/Jwt.ts
CHANGED
|
@@ -2,54 +2,28 @@
|
|
|
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';
|
|
5
6
|
|
|
6
7
|
/** Identifier type for public.Jwt */
|
|
7
8
|
export type JwtId = number & { __brand: 'JwtId' };
|
|
8
9
|
|
|
9
10
|
/** Represents the table public.Jwt */
|
|
10
|
-
export default interface
|
|
11
|
-
id: JwtId
|
|
11
|
+
export default interface JwtTable {
|
|
12
|
+
id: ColumnType<JwtId, JwtId | undefined, JwtId>;
|
|
12
13
|
|
|
13
|
-
jti: string
|
|
14
|
+
jti: ColumnType<string, string, string>;
|
|
14
15
|
|
|
15
|
-
revokedAt: Date | null
|
|
16
|
+
revokedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
16
17
|
|
|
17
|
-
createdAt: Date
|
|
18
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
18
19
|
|
|
19
|
-
updatedAt: Date
|
|
20
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
20
21
|
|
|
21
|
-
personId: PersonId
|
|
22
|
+
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
export interface JwtInitializer {
|
|
26
|
-
/** Default value: nextval('"Jwt_id_seq"'::regclass) */
|
|
27
|
-
id?: JwtId;
|
|
25
|
+
export type Jwt = Selectable<JwtTable>;
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
export type NewJwt = Insertable<JwtTable>;
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
34
|
-
createdAt?: Date;
|
|
35
|
-
|
|
36
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
37
|
-
updatedAt?: Date;
|
|
38
|
-
|
|
39
|
-
personId: PersonId;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** Represents the mutator for the table public.Jwt */
|
|
43
|
-
export interface JwtMutator {
|
|
44
|
-
id?: JwtId;
|
|
45
|
-
|
|
46
|
-
jti?: string;
|
|
47
|
-
|
|
48
|
-
revokedAt?: Date | null;
|
|
49
|
-
|
|
50
|
-
createdAt?: Date;
|
|
51
|
-
|
|
52
|
-
updatedAt?: Date;
|
|
53
|
-
|
|
54
|
-
personId?: PersonId;
|
|
55
|
-
}
|
|
29
|
+
export type JwtUpdate = Updateable<JwtTable>;
|
|
@@ -3,72 +3,34 @@
|
|
|
3
3
|
|
|
4
4
|
import type { default as ListViewModels } from './ListViewModels';
|
|
5
5
|
import type { PositionId } from './Position';
|
|
6
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
6
7
|
|
|
7
8
|
/** Identifier type for public.ListView */
|
|
8
9
|
export type ListViewId = string & { __brand: 'ListViewId' };
|
|
9
10
|
|
|
10
11
|
/** Represents the table public.ListView */
|
|
11
|
-
export default interface
|
|
12
|
-
id: ListViewId
|
|
12
|
+
export default interface ListViewTable {
|
|
13
|
+
id: ColumnType<ListViewId, ListViewId | undefined, ListViewId>;
|
|
13
14
|
|
|
14
|
-
model: ListViewModels
|
|
15
|
+
model: ColumnType<ListViewModels, ListViewModels, ListViewModels>;
|
|
15
16
|
|
|
16
|
-
name: string
|
|
17
|
+
name: ColumnType<string, string, string>;
|
|
17
18
|
|
|
18
|
-
query: unknown
|
|
19
|
+
query: ColumnType<unknown, unknown, unknown>;
|
|
19
20
|
|
|
20
|
-
positionId: PositionId | null
|
|
21
|
+
positionId: ColumnType<PositionId | null, PositionId | null, PositionId | null>;
|
|
21
22
|
|
|
22
|
-
archivedAt: Date | null
|
|
23
|
+
archivedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
23
24
|
|
|
24
|
-
deletedAt: Date | null
|
|
25
|
+
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
25
26
|
|
|
26
|
-
createdAt: Date
|
|
27
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
27
28
|
|
|
28
|
-
updatedAt: Date
|
|
29
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
export interface ListViewInitializer {
|
|
33
|
-
/** Default value: gen_random_uuid() */
|
|
34
|
-
id?: ListViewId;
|
|
32
|
+
export type ListView = Selectable<ListViewTable>;
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
export type NewListView = Insertable<ListViewTable>;
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
query: unknown;
|
|
41
|
-
|
|
42
|
-
positionId?: PositionId | null;
|
|
43
|
-
|
|
44
|
-
archivedAt?: Date | null;
|
|
45
|
-
|
|
46
|
-
deletedAt?: Date | null;
|
|
47
|
-
|
|
48
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
49
|
-
createdAt?: Date;
|
|
50
|
-
|
|
51
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
52
|
-
updatedAt?: Date;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/** Represents the mutator for the table public.ListView */
|
|
56
|
-
export interface ListViewMutator {
|
|
57
|
-
id?: ListViewId;
|
|
58
|
-
|
|
59
|
-
model?: ListViewModels;
|
|
60
|
-
|
|
61
|
-
name?: string;
|
|
62
|
-
|
|
63
|
-
query?: unknown;
|
|
64
|
-
|
|
65
|
-
positionId?: PositionId | null;
|
|
66
|
-
|
|
67
|
-
archivedAt?: Date | null;
|
|
68
|
-
|
|
69
|
-
deletedAt?: Date | null;
|
|
70
|
-
|
|
71
|
-
createdAt?: Date;
|
|
72
|
-
|
|
73
|
-
updatedAt?: Date;
|
|
74
|
-
}
|
|
36
|
+
export type ListViewUpdate = Updateable<ListViewTable>;
|
|
@@ -4,67 +4,32 @@
|
|
|
4
4
|
import type { SenderId } from './Sender';
|
|
5
5
|
import type { PersonId } from './Person';
|
|
6
6
|
import type { ConversationId } from './Conversation';
|
|
7
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
7
8
|
|
|
8
9
|
/** Identifier type for public.Message */
|
|
9
10
|
export type MessageId = string & { __brand: 'MessageId' };
|
|
10
11
|
|
|
11
12
|
/** Represents the table public.Message */
|
|
12
|
-
export default interface
|
|
13
|
-
id: MessageId
|
|
13
|
+
export default interface MessageTable {
|
|
14
|
+
id: ColumnType<MessageId, MessageId | undefined, MessageId>;
|
|
14
15
|
|
|
15
|
-
urlId: number
|
|
16
|
+
urlId: ColumnType<number, number | undefined, number>;
|
|
16
17
|
|
|
17
|
-
data: unknown
|
|
18
|
+
data: ColumnType<unknown, unknown, unknown>;
|
|
18
19
|
|
|
19
|
-
adminSenderId: SenderId | null
|
|
20
|
+
adminSenderId: ColumnType<SenderId | null, SenderId | null, SenderId | null>;
|
|
20
21
|
|
|
21
|
-
personId: PersonId
|
|
22
|
+
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
22
23
|
|
|
23
|
-
conversationId: ConversationId
|
|
24
|
+
conversationId: ColumnType<ConversationId, ConversationId, ConversationId>;
|
|
24
25
|
|
|
25
|
-
createdAt: Date
|
|
26
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
26
27
|
|
|
27
|
-
updatedAt: Date
|
|
28
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
export interface MessageInitializer {
|
|
32
|
-
/** Default value: gen_random_uuid() */
|
|
33
|
-
id?: MessageId;
|
|
31
|
+
export type Message = Selectable<MessageTable>;
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
urlId?: number;
|
|
33
|
+
export type NewMessage = Insertable<MessageTable>;
|
|
37
34
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
adminSenderId?: SenderId | null;
|
|
41
|
-
|
|
42
|
-
personId: PersonId;
|
|
43
|
-
|
|
44
|
-
conversationId: ConversationId;
|
|
45
|
-
|
|
46
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
47
|
-
createdAt?: Date;
|
|
48
|
-
|
|
49
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
50
|
-
updatedAt?: Date;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/** Represents the mutator for the table public.Message */
|
|
54
|
-
export interface MessageMutator {
|
|
55
|
-
id?: MessageId;
|
|
56
|
-
|
|
57
|
-
urlId?: number;
|
|
58
|
-
|
|
59
|
-
data?: unknown;
|
|
60
|
-
|
|
61
|
-
adminSenderId?: SenderId | null;
|
|
62
|
-
|
|
63
|
-
personId?: PersonId;
|
|
64
|
-
|
|
65
|
-
conversationId?: ConversationId;
|
|
66
|
-
|
|
67
|
-
createdAt?: Date;
|
|
68
|
-
|
|
69
|
-
updatedAt?: Date;
|
|
70
|
-
}
|
|
35
|
+
export type MessageUpdate = Updateable<MessageTable>;
|
|
@@ -1,53 +1,28 @@
|
|
|
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.MessageTemplate */
|
|
5
7
|
export type MessageTemplateId = string & { __brand: 'MessageTemplateId' };
|
|
6
8
|
|
|
7
9
|
/** Represents the table public.MessageTemplate */
|
|
8
|
-
export default interface
|
|
9
|
-
id: MessageTemplateId
|
|
10
|
-
|
|
11
|
-
name: string;
|
|
12
|
-
|
|
13
|
-
data: unknown;
|
|
14
|
-
|
|
15
|
-
deletedAt: Date | null;
|
|
16
|
-
|
|
17
|
-
createdAt: Date;
|
|
18
|
-
|
|
19
|
-
updatedAt: Date;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** Represents the initializer for the table public.MessageTemplate */
|
|
23
|
-
export interface MessageTemplateInitializer {
|
|
24
|
-
/** Default value: gen_random_uuid() */
|
|
25
|
-
id?: MessageTemplateId;
|
|
10
|
+
export default interface MessageTemplateTable {
|
|
11
|
+
id: ColumnType<MessageTemplateId, MessageTemplateId | undefined, MessageTemplateId>;
|
|
26
12
|
|
|
27
|
-
name: string
|
|
13
|
+
name: ColumnType<string, string, string>;
|
|
28
14
|
|
|
29
|
-
data: unknown
|
|
15
|
+
data: ColumnType<unknown, unknown, unknown>;
|
|
30
16
|
|
|
31
|
-
deletedAt
|
|
17
|
+
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
32
18
|
|
|
33
|
-
|
|
34
|
-
createdAt?: Date;
|
|
19
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
35
20
|
|
|
36
|
-
|
|
37
|
-
updatedAt?: Date;
|
|
21
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
38
22
|
}
|
|
39
23
|
|
|
40
|
-
|
|
41
|
-
export interface MessageTemplateMutator {
|
|
42
|
-
id?: MessageTemplateId;
|
|
43
|
-
|
|
44
|
-
name?: string;
|
|
24
|
+
export type MessageTemplate = Selectable<MessageTemplateTable>;
|
|
45
25
|
|
|
46
|
-
|
|
26
|
+
export type NewMessageTemplate = Insertable<MessageTemplateTable>;
|
|
47
27
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
createdAt?: Date;
|
|
51
|
-
|
|
52
|
-
updatedAt?: Date;
|
|
53
|
-
}
|
|
28
|
+
export type MessageTemplateUpdate = Updateable<MessageTemplateTable>;
|
|
@@ -5,72 +5,34 @@ import type { AdminId } from './Admin';
|
|
|
5
5
|
import type { CandidacyId } from './Candidacy';
|
|
6
6
|
import type { PersonId } from './Person';
|
|
7
7
|
import type { ClientId } from './Client';
|
|
8
|
+
import type { ColumnType, Selectable, Insertable, Updateable } from 'kysely';
|
|
8
9
|
|
|
9
10
|
/** Identifier type for public.Note */
|
|
10
11
|
export type NoteId = string & { __brand: 'NoteId' };
|
|
11
12
|
|
|
12
13
|
/** Represents the table public.Note */
|
|
13
|
-
export default interface
|
|
14
|
-
id: NoteId
|
|
14
|
+
export default interface NoteTable {
|
|
15
|
+
id: ColumnType<NoteId, NoteId | undefined, NoteId>;
|
|
15
16
|
|
|
16
|
-
content: string
|
|
17
|
+
content: ColumnType<string, string, string>;
|
|
17
18
|
|
|
18
|
-
adminId: AdminId | null
|
|
19
|
+
adminId: ColumnType<AdminId | null, AdminId | null, AdminId | null>;
|
|
19
20
|
|
|
20
|
-
candidacyId: CandidacyId | null
|
|
21
|
+
candidacyId: ColumnType<CandidacyId | null, CandidacyId | null, CandidacyId | null>;
|
|
21
22
|
|
|
22
|
-
personId: PersonId | null
|
|
23
|
+
personId: ColumnType<PersonId | null, PersonId | null, PersonId | null>;
|
|
23
24
|
|
|
24
|
-
clientId: ClientId | null
|
|
25
|
+
clientId: ColumnType<ClientId | null, ClientId | null, ClientId | null>;
|
|
25
26
|
|
|
26
|
-
deletedAt: Date | null
|
|
27
|
+
deletedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
27
28
|
|
|
28
|
-
createdAt: Date
|
|
29
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
29
30
|
|
|
30
|
-
updatedAt: Date
|
|
31
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
-
export interface NoteInitializer {
|
|
35
|
-
/** Default value: gen_random_uuid() */
|
|
36
|
-
id?: NoteId;
|
|
34
|
+
export type Note = Selectable<NoteTable>;
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
export type NewNote = Insertable<NoteTable>;
|
|
39
37
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
candidacyId?: CandidacyId | null;
|
|
43
|
-
|
|
44
|
-
personId?: PersonId | null;
|
|
45
|
-
|
|
46
|
-
clientId?: ClientId | null;
|
|
47
|
-
|
|
48
|
-
deletedAt?: Date | null;
|
|
49
|
-
|
|
50
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
51
|
-
createdAt?: Date;
|
|
52
|
-
|
|
53
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
54
|
-
updatedAt?: Date;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/** Represents the mutator for the table public.Note */
|
|
58
|
-
export interface NoteMutator {
|
|
59
|
-
id?: NoteId;
|
|
60
|
-
|
|
61
|
-
content?: string;
|
|
62
|
-
|
|
63
|
-
adminId?: AdminId | null;
|
|
64
|
-
|
|
65
|
-
candidacyId?: CandidacyId | null;
|
|
66
|
-
|
|
67
|
-
personId?: PersonId | null;
|
|
68
|
-
|
|
69
|
-
clientId?: ClientId | null;
|
|
70
|
-
|
|
71
|
-
deletedAt?: Date | null;
|
|
72
|
-
|
|
73
|
-
createdAt?: Date;
|
|
74
|
-
|
|
75
|
-
updatedAt?: Date;
|
|
76
|
-
}
|
|
38
|
+
export type NoteUpdate = Updateable<NoteTable>;
|
package/src/types/_schema/Otp.ts
CHANGED
|
@@ -2,60 +2,30 @@
|
|
|
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';
|
|
5
6
|
|
|
6
7
|
/** Identifier type for public.Otp */
|
|
7
8
|
export type OtpId = number & { __brand: 'OtpId' };
|
|
8
9
|
|
|
9
10
|
/** Represents the table public.Otp */
|
|
10
|
-
export default interface
|
|
11
|
-
id: OtpId
|
|
11
|
+
export default interface OtpTable {
|
|
12
|
+
id: ColumnType<OtpId, OtpId | undefined, OtpId>;
|
|
12
13
|
|
|
13
|
-
code: string
|
|
14
|
+
code: ColumnType<string, string, string>;
|
|
14
15
|
|
|
15
|
-
usedAt: Date | null
|
|
16
|
+
usedAt: ColumnType<Date | null, Date | string | null, Date | string | null>;
|
|
16
17
|
|
|
17
|
-
expiresAt: Date
|
|
18
|
+
expiresAt: ColumnType<Date, Date | string, Date | string>;
|
|
18
19
|
|
|
19
|
-
createdAt: Date
|
|
20
|
+
createdAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
20
21
|
|
|
21
|
-
updatedAt: Date
|
|
22
|
+
updatedAt: ColumnType<Date, Date | string | undefined, Date | string>;
|
|
22
23
|
|
|
23
|
-
personId: PersonId
|
|
24
|
+
personId: ColumnType<PersonId, PersonId, PersonId>;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
export interface OtpInitializer {
|
|
28
|
-
/** Default value: nextval('"Otp_id_seq"'::regclass) */
|
|
29
|
-
id?: OtpId;
|
|
27
|
+
export type Otp = Selectable<OtpTable>;
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
export type NewOtp = Insertable<OtpTable>;
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
expiresAt: Date;
|
|
36
|
-
|
|
37
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
38
|
-
createdAt?: Date;
|
|
39
|
-
|
|
40
|
-
/** Default value: CURRENT_TIMESTAMP */
|
|
41
|
-
updatedAt?: Date;
|
|
42
|
-
|
|
43
|
-
personId: PersonId;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/** Represents the mutator for the table public.Otp */
|
|
47
|
-
export interface OtpMutator {
|
|
48
|
-
id?: OtpId;
|
|
49
|
-
|
|
50
|
-
code?: string;
|
|
51
|
-
|
|
52
|
-
usedAt?: Date | null;
|
|
53
|
-
|
|
54
|
-
expiresAt?: Date;
|
|
55
|
-
|
|
56
|
-
createdAt?: Date;
|
|
57
|
-
|
|
58
|
-
updatedAt?: Date;
|
|
59
|
-
|
|
60
|
-
personId?: PersonId;
|
|
61
|
-
}
|
|
31
|
+
export type OtpUpdate = Updateable<OtpTable>;
|