@commonpub/schema 0.10.0 → 0.12.0
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/contest.d.ts +17 -0
- package/dist/contest.d.ts.map +1 -1
- package/dist/contest.js +2 -1
- package/dist/contest.js.map +1 -1
- package/dist/enums.d.ts +5 -1
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +7 -0
- package/dist/enums.js.map +1 -1
- package/dist/events.d.ts +465 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +59 -0
- package/dist/events.js.map +1 -0
- package/dist/hub.d.ts +17 -0
- package/dist/hub.d.ts.map +1 -1
- package/dist/hub.js +1 -0
- package/dist/hub.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/social.d.ts +2 -2
- package/dist/voting.d.ts +379 -0
- package/dist/voting.d.ts.map +1 -0
- package/dist/voting.js +85 -0
- package/dist/voting.js.map +1 -0
- package/package.json +1 -1
package/dist/contest.d.ts
CHANGED
|
@@ -242,6 +242,23 @@ export declare const contests: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
242
242
|
identity: undefined;
|
|
243
243
|
generated: undefined;
|
|
244
244
|
}, {}, {}>;
|
|
245
|
+
communityVotingEnabled: import("drizzle-orm/pg-core").PgColumn<{
|
|
246
|
+
name: "community_voting_enabled";
|
|
247
|
+
tableName: "contests";
|
|
248
|
+
dataType: "boolean";
|
|
249
|
+
columnType: "PgBoolean";
|
|
250
|
+
data: boolean;
|
|
251
|
+
driverParam: boolean;
|
|
252
|
+
notNull: true;
|
|
253
|
+
hasDefault: true;
|
|
254
|
+
isPrimaryKey: false;
|
|
255
|
+
isAutoincrement: false;
|
|
256
|
+
hasRuntimeDefault: false;
|
|
257
|
+
enumValues: undefined;
|
|
258
|
+
baseColumn: never;
|
|
259
|
+
identity: undefined;
|
|
260
|
+
generated: undefined;
|
|
261
|
+
}, {}, {}>;
|
|
245
262
|
entryCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
246
263
|
name: "entry_count";
|
|
247
264
|
tableName: "contests";
|
package/dist/contest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contest.d.ts","sourceRoot":"","sources":["../src/contest.ts"],"names":[],"mappings":"AAMA,uFAAuF;AACvF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAaR,MAAM;uBACN,MAAM;8BACC,MAAM;wBACZ,MAAM;;;;;;;;;;;;;;uBAHP,MAAM;uBACN,MAAM;8BACC,MAAM;wBACZ,MAAM
|
|
1
|
+
{"version":3,"file":"contest.d.ts","sourceRoot":"","sources":["../src/contest.ts"],"names":[],"mappings":"AAMA,uFAAuF;AACvF,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAaR,MAAM;uBACN,MAAM;8BACC,MAAM;wBACZ,MAAM;;;;;;;;;;;;;;uBAHP,MAAM;uBACN,MAAM;8BACC,MAAM;wBACZ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAclB,CAAC;AAEH,wFAAwF;AACxF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAeZ,MAAM;uBACR,MAAM;2BACF,MAAM;;;;;;;;;;;;;;yBAFR,MAAM;uBACR,MAAM;2BACF,MAAM;;;;;;;;;;;;;;;;;;;;;;EAQrB,CAAC;AAIH,eAAO,MAAM,iBAAiB;;;EAG3B,CAAC;AAEJ,eAAO,MAAM,uBAAuB;;;;EAOjC,CAAC;AAGJ,MAAM,MAAM,UAAU,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAC;AACzD,MAAM,MAAM,eAAe,GAAG,OAAO,cAAc,CAAC,YAAY,CAAC;AACjE,MAAM,MAAM,kBAAkB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAC"}
|
package/dist/contest.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { pgTable, uuid, varchar, text, timestamp, integer, jsonb, unique, index } from 'drizzle-orm/pg-core';
|
|
1
|
+
import { pgTable, uuid, varchar, text, timestamp, integer, boolean, jsonb, unique, index } from 'drizzle-orm/pg-core';
|
|
2
2
|
import { relations } from 'drizzle-orm';
|
|
3
3
|
import { users } from './auth.js';
|
|
4
4
|
import { contentItems } from './content.js';
|
|
@@ -20,6 +20,7 @@ export const contests = pgTable('contests', {
|
|
|
20
20
|
createdById: uuid('created_by_id')
|
|
21
21
|
.notNull()
|
|
22
22
|
.references(() => users.id, { onDelete: 'cascade' }),
|
|
23
|
+
communityVotingEnabled: boolean('community_voting_enabled').default(false).notNull(),
|
|
23
24
|
entryCount: integer('entry_count').default(0).notNull(),
|
|
24
25
|
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
|
|
25
26
|
updatedAt: timestamp('updated_at', { withTimezone: true }).defaultNow().notNull(),
|
package/dist/contest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contest.js","sourceRoot":"","sources":["../src/contest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"contest.js","sourceRoot":"","sources":["../src/contest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AACtH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,uFAAuF;AACvF,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,EAAE;IAC1C,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC,UAAU,EAAE;IAC3C,KAAK,EAAE,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE;IAClD,IAAI,EAAE,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;IACzD,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;IAChC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;IACpB,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC;IAC7B,MAAM,EAAE,iBAAiB,CAAC,QA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BAAoB;AAEpB,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,SAAS,EAAE,GAAG,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;IACjF,OAAO,EAAE,IAAI,CAAC,cAAc,CAAC;CAC9B,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,MAAM,uBAAuB,GAAG,SAAS,CAAC,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7E,OAAO,EAAE,GAAG,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC;IACzF,OAAO,EAAE,GAAG,CAAC,YAAY,EAAE;QACzB,MAAM,EAAE,CAAC,cAAc,CAAC,SAAS,CAAC;QAClC,UAAU,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;KAC9B,CAAC;IACF,IAAI,EAAE,GAAG,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;CAC9E,CAAC,CAAC,CAAC"}
|
package/dist/enums.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const bookmarkTargetTypeEnum: import("drizzle-orm/pg-core").PgEnu
|
|
|
11
11
|
export declare const reportTargetTypeEnum: import("drizzle-orm/pg-core").PgEnum<["project", "article", "blog", "post", "comment", "user", "explainer"]>;
|
|
12
12
|
export declare const reportReasonEnum: import("drizzle-orm/pg-core").PgEnum<["spam", "harassment", "inappropriate", "copyright", "other"]>;
|
|
13
13
|
export declare const reportStatusEnum: import("drizzle-orm/pg-core").PgEnum<["pending", "reviewed", "resolved", "dismissed"]>;
|
|
14
|
-
export declare const notificationTypeEnum: import("drizzle-orm/pg-core").PgEnum<["like", "comment", "follow", "mention", "contest", "certificate", "hub", "system", "fork", "build"]>;
|
|
14
|
+
export declare const notificationTypeEnum: import("drizzle-orm/pg-core").PgEnum<["like", "comment", "follow", "mention", "contest", "event", "certificate", "hub", "system", "fork", "build"]>;
|
|
15
15
|
export declare const hubTypeEnum: import("drizzle-orm/pg-core").PgEnum<["community", "product", "company"]>;
|
|
16
16
|
export declare const hubPrivacyEnum: import("drizzle-orm/pg-core").PgEnum<["public", "unlisted", "private"]>;
|
|
17
17
|
export declare const hubRoleEnum: import("drizzle-orm/pg-core").PgEnum<["owner", "admin", "moderator", "member"]>;
|
|
@@ -23,6 +23,10 @@ export declare const productStatusEnum: import("drizzle-orm/pg-core").PgEnum<["a
|
|
|
23
23
|
export declare const productCategoryEnum: import("drizzle-orm/pg-core").PgEnum<["microcontroller", "sbc", "sensor", "actuator", "display", "communication", "power", "mechanical", "software", "tool", "other"]>;
|
|
24
24
|
export declare const lessonTypeEnum: import("drizzle-orm/pg-core").PgEnum<["article", "video", "quiz", "project", "explainer"]>;
|
|
25
25
|
export declare const contestStatusEnum: import("drizzle-orm/pg-core").PgEnum<["upcoming", "active", "judging", "completed", "cancelled"]>;
|
|
26
|
+
export declare const voteDirectionEnum: import("drizzle-orm/pg-core").PgEnum<["up", "down"]>;
|
|
27
|
+
export declare const eventStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "published", "active", "completed", "cancelled"]>;
|
|
28
|
+
export declare const eventTypeEnum: import("drizzle-orm/pg-core").PgEnum<["in-person", "online", "hybrid"]>;
|
|
29
|
+
export declare const eventAttendeeStatusEnum: import("drizzle-orm/pg-core").PgEnum<["registered", "waitlisted", "cancelled", "attended"]>;
|
|
26
30
|
export declare const videoPlatformEnum: import("drizzle-orm/pg-core").PgEnum<["youtube", "vimeo", "other"]>;
|
|
27
31
|
export declare const filePurposeEnum: import("drizzle-orm/pg-core").PgEnum<["cover", "content", "avatar", "banner", "attachment"]>;
|
|
28
32
|
export declare const activityDirectionEnum: import("drizzle-orm/pg-core").PgEnum<["inbound", "outbound"]>;
|
package/dist/enums.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,uFAAuE,CAAC;AACjG,eAAO,MAAM,cAAc,0EAA4D,CAAC;AACxF,eAAO,MAAM,qBAAqB,wEAAiE,CAAC;AAGpG,eAAO,MAAM,iBAAiB,0EAA+D,CAAC;AAC9F,eAAO,MAAM,eAAe,mFAK1B,CAAC;AACH,eAAO,MAAM,cAAc,gFAAiE,CAAC;AAC7F,eAAO,MAAM,qBAAqB,wEAAiE,CAAC;AAGpG,eAAO,MAAM,kBAAkB,+GAQ7B,CAAC;AACH,eAAO,MAAM,qBAAqB,8GAQhC,CAAC;AACH,eAAO,MAAM,sBAAsB,oGAMjC,CAAC;AACH,eAAO,MAAM,oBAAoB,8GAQ/B,CAAC;AACH,eAAO,MAAM,gBAAgB,qGAM3B,CAAC;AACH,eAAO,MAAM,gBAAgB,wFAK3B,CAAC;AACH,eAAO,MAAM,oBAAoB,
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,uFAAuE,CAAC;AACjG,eAAO,MAAM,cAAc,0EAA4D,CAAC;AACxF,eAAO,MAAM,qBAAqB,wEAAiE,CAAC;AAGpG,eAAO,MAAM,iBAAiB,0EAA+D,CAAC;AAC9F,eAAO,MAAM,eAAe,mFAK1B,CAAC;AACH,eAAO,MAAM,cAAc,gFAAiE,CAAC;AAC7F,eAAO,MAAM,qBAAqB,wEAAiE,CAAC;AAGpG,eAAO,MAAM,kBAAkB,+GAQ7B,CAA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,iGAM1B,CAAC"}
|
package/dist/enums.js
CHANGED
|
@@ -67,6 +67,7 @@ export const notificationTypeEnum = pgEnum('notification_type', [
|
|
|
67
67
|
'follow',
|
|
68
68
|
'mention',
|
|
69
69
|
'contest',
|
|
70
|
+
'event',
|
|
70
71
|
'certificate',
|
|
71
72
|
'hub',
|
|
72
73
|
'system',
|
|
@@ -130,6 +131,12 @@ export const contestStatusEnum = pgEnum('contest_status', [
|
|
|
130
131
|
'completed',
|
|
131
132
|
'cancelled',
|
|
132
133
|
]);
|
|
134
|
+
// --- Voting ---
|
|
135
|
+
export const voteDirectionEnum = pgEnum('vote_direction', ['up', 'down']);
|
|
136
|
+
// --- Events ---
|
|
137
|
+
export const eventStatusEnum = pgEnum('event_status', ['draft', 'published', 'active', 'completed', 'cancelled']);
|
|
138
|
+
export const eventTypeEnum = pgEnum('event_type', ['in-person', 'online', 'hybrid']);
|
|
139
|
+
export const eventAttendeeStatusEnum = pgEnum('event_attendee_status', ['registered', 'waitlisted', 'cancelled', 'attended']);
|
|
133
140
|
// --- Video ---
|
|
134
141
|
export const videoPlatformEnum = pgEnum('video_platform', ['youtube', 'vimeo', 'other']);
|
|
135
142
|
// --- Files ---
|
package/dist/enums.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../src/enums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,uBAAuB;AACvB,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,aAAa,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC;AACxF,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,oBA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CAAC;AAEtF,eAAe;AACf,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,cAAc,EAAE;IACpD,UAAU;IACV,UAAU;IACV,WAAW;IACX,OAAO;IACP,SAAS;CACV,CAAC,CAAC"}
|
package/dist/events.d.ts
ADDED
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
export declare const events: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2
|
+
name: "events";
|
|
3
|
+
schema: undefined;
|
|
4
|
+
columns: {
|
|
5
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
6
|
+
name: "id";
|
|
7
|
+
tableName: "events";
|
|
8
|
+
dataType: "string";
|
|
9
|
+
columnType: "PgUUID";
|
|
10
|
+
data: string;
|
|
11
|
+
driverParam: string;
|
|
12
|
+
notNull: true;
|
|
13
|
+
hasDefault: true;
|
|
14
|
+
isPrimaryKey: true;
|
|
15
|
+
isAutoincrement: false;
|
|
16
|
+
hasRuntimeDefault: false;
|
|
17
|
+
enumValues: undefined;
|
|
18
|
+
baseColumn: never;
|
|
19
|
+
identity: undefined;
|
|
20
|
+
generated: undefined;
|
|
21
|
+
}, {}, {}>;
|
|
22
|
+
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
23
|
+
name: "title";
|
|
24
|
+
tableName: "events";
|
|
25
|
+
dataType: "string";
|
|
26
|
+
columnType: "PgVarchar";
|
|
27
|
+
data: string;
|
|
28
|
+
driverParam: string;
|
|
29
|
+
notNull: true;
|
|
30
|
+
hasDefault: false;
|
|
31
|
+
isPrimaryKey: false;
|
|
32
|
+
isAutoincrement: false;
|
|
33
|
+
hasRuntimeDefault: false;
|
|
34
|
+
enumValues: [string, ...string[]];
|
|
35
|
+
baseColumn: never;
|
|
36
|
+
identity: undefined;
|
|
37
|
+
generated: undefined;
|
|
38
|
+
}, {}, {
|
|
39
|
+
length: 255;
|
|
40
|
+
}>;
|
|
41
|
+
slug: import("drizzle-orm/pg-core").PgColumn<{
|
|
42
|
+
name: "slug";
|
|
43
|
+
tableName: "events";
|
|
44
|
+
dataType: "string";
|
|
45
|
+
columnType: "PgVarchar";
|
|
46
|
+
data: string;
|
|
47
|
+
driverParam: string;
|
|
48
|
+
notNull: true;
|
|
49
|
+
hasDefault: false;
|
|
50
|
+
isPrimaryKey: false;
|
|
51
|
+
isAutoincrement: false;
|
|
52
|
+
hasRuntimeDefault: false;
|
|
53
|
+
enumValues: [string, ...string[]];
|
|
54
|
+
baseColumn: never;
|
|
55
|
+
identity: undefined;
|
|
56
|
+
generated: undefined;
|
|
57
|
+
}, {}, {
|
|
58
|
+
length: 255;
|
|
59
|
+
}>;
|
|
60
|
+
description: import("drizzle-orm/pg-core").PgColumn<{
|
|
61
|
+
name: "description";
|
|
62
|
+
tableName: "events";
|
|
63
|
+
dataType: "string";
|
|
64
|
+
columnType: "PgText";
|
|
65
|
+
data: string;
|
|
66
|
+
driverParam: string;
|
|
67
|
+
notNull: false;
|
|
68
|
+
hasDefault: false;
|
|
69
|
+
isPrimaryKey: false;
|
|
70
|
+
isAutoincrement: false;
|
|
71
|
+
hasRuntimeDefault: false;
|
|
72
|
+
enumValues: [string, ...string[]];
|
|
73
|
+
baseColumn: never;
|
|
74
|
+
identity: undefined;
|
|
75
|
+
generated: undefined;
|
|
76
|
+
}, {}, {}>;
|
|
77
|
+
coverImage: import("drizzle-orm/pg-core").PgColumn<{
|
|
78
|
+
name: "cover_image";
|
|
79
|
+
tableName: "events";
|
|
80
|
+
dataType: "string";
|
|
81
|
+
columnType: "PgText";
|
|
82
|
+
data: string;
|
|
83
|
+
driverParam: string;
|
|
84
|
+
notNull: false;
|
|
85
|
+
hasDefault: false;
|
|
86
|
+
isPrimaryKey: false;
|
|
87
|
+
isAutoincrement: false;
|
|
88
|
+
hasRuntimeDefault: false;
|
|
89
|
+
enumValues: [string, ...string[]];
|
|
90
|
+
baseColumn: never;
|
|
91
|
+
identity: undefined;
|
|
92
|
+
generated: undefined;
|
|
93
|
+
}, {}, {}>;
|
|
94
|
+
eventType: import("drizzle-orm/pg-core").PgColumn<{
|
|
95
|
+
name: "event_type";
|
|
96
|
+
tableName: "events";
|
|
97
|
+
dataType: "string";
|
|
98
|
+
columnType: "PgEnumColumn";
|
|
99
|
+
data: "in-person" | "online" | "hybrid";
|
|
100
|
+
driverParam: string;
|
|
101
|
+
notNull: true;
|
|
102
|
+
hasDefault: true;
|
|
103
|
+
isPrimaryKey: false;
|
|
104
|
+
isAutoincrement: false;
|
|
105
|
+
hasRuntimeDefault: false;
|
|
106
|
+
enumValues: ["in-person", "online", "hybrid"];
|
|
107
|
+
baseColumn: never;
|
|
108
|
+
identity: undefined;
|
|
109
|
+
generated: undefined;
|
|
110
|
+
}, {}, {}>;
|
|
111
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
112
|
+
name: "status";
|
|
113
|
+
tableName: "events";
|
|
114
|
+
dataType: "string";
|
|
115
|
+
columnType: "PgEnumColumn";
|
|
116
|
+
data: "active" | "draft" | "published" | "completed" | "cancelled";
|
|
117
|
+
driverParam: string;
|
|
118
|
+
notNull: true;
|
|
119
|
+
hasDefault: true;
|
|
120
|
+
isPrimaryKey: false;
|
|
121
|
+
isAutoincrement: false;
|
|
122
|
+
hasRuntimeDefault: false;
|
|
123
|
+
enumValues: ["draft", "published", "active", "completed", "cancelled"];
|
|
124
|
+
baseColumn: never;
|
|
125
|
+
identity: undefined;
|
|
126
|
+
generated: undefined;
|
|
127
|
+
}, {}, {}>;
|
|
128
|
+
startDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
129
|
+
name: "start_date";
|
|
130
|
+
tableName: "events";
|
|
131
|
+
dataType: "date";
|
|
132
|
+
columnType: "PgTimestamp";
|
|
133
|
+
data: Date;
|
|
134
|
+
driverParam: string;
|
|
135
|
+
notNull: true;
|
|
136
|
+
hasDefault: false;
|
|
137
|
+
isPrimaryKey: false;
|
|
138
|
+
isAutoincrement: false;
|
|
139
|
+
hasRuntimeDefault: false;
|
|
140
|
+
enumValues: undefined;
|
|
141
|
+
baseColumn: never;
|
|
142
|
+
identity: undefined;
|
|
143
|
+
generated: undefined;
|
|
144
|
+
}, {}, {}>;
|
|
145
|
+
endDate: import("drizzle-orm/pg-core").PgColumn<{
|
|
146
|
+
name: "end_date";
|
|
147
|
+
tableName: "events";
|
|
148
|
+
dataType: "date";
|
|
149
|
+
columnType: "PgTimestamp";
|
|
150
|
+
data: Date;
|
|
151
|
+
driverParam: string;
|
|
152
|
+
notNull: true;
|
|
153
|
+
hasDefault: false;
|
|
154
|
+
isPrimaryKey: false;
|
|
155
|
+
isAutoincrement: false;
|
|
156
|
+
hasRuntimeDefault: false;
|
|
157
|
+
enumValues: undefined;
|
|
158
|
+
baseColumn: never;
|
|
159
|
+
identity: undefined;
|
|
160
|
+
generated: undefined;
|
|
161
|
+
}, {}, {}>;
|
|
162
|
+
timezone: import("drizzle-orm/pg-core").PgColumn<{
|
|
163
|
+
name: "timezone";
|
|
164
|
+
tableName: "events";
|
|
165
|
+
dataType: "string";
|
|
166
|
+
columnType: "PgVarchar";
|
|
167
|
+
data: string;
|
|
168
|
+
driverParam: string;
|
|
169
|
+
notNull: true;
|
|
170
|
+
hasDefault: true;
|
|
171
|
+
isPrimaryKey: false;
|
|
172
|
+
isAutoincrement: false;
|
|
173
|
+
hasRuntimeDefault: false;
|
|
174
|
+
enumValues: [string, ...string[]];
|
|
175
|
+
baseColumn: never;
|
|
176
|
+
identity: undefined;
|
|
177
|
+
generated: undefined;
|
|
178
|
+
}, {}, {
|
|
179
|
+
length: 64;
|
|
180
|
+
}>;
|
|
181
|
+
location: import("drizzle-orm/pg-core").PgColumn<{
|
|
182
|
+
name: "location";
|
|
183
|
+
tableName: "events";
|
|
184
|
+
dataType: "string";
|
|
185
|
+
columnType: "PgVarchar";
|
|
186
|
+
data: string;
|
|
187
|
+
driverParam: string;
|
|
188
|
+
notNull: false;
|
|
189
|
+
hasDefault: false;
|
|
190
|
+
isPrimaryKey: false;
|
|
191
|
+
isAutoincrement: false;
|
|
192
|
+
hasRuntimeDefault: false;
|
|
193
|
+
enumValues: [string, ...string[]];
|
|
194
|
+
baseColumn: never;
|
|
195
|
+
identity: undefined;
|
|
196
|
+
generated: undefined;
|
|
197
|
+
}, {}, {
|
|
198
|
+
length: 500;
|
|
199
|
+
}>;
|
|
200
|
+
locationUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
201
|
+
name: "location_url";
|
|
202
|
+
tableName: "events";
|
|
203
|
+
dataType: "string";
|
|
204
|
+
columnType: "PgVarchar";
|
|
205
|
+
data: string;
|
|
206
|
+
driverParam: string;
|
|
207
|
+
notNull: false;
|
|
208
|
+
hasDefault: false;
|
|
209
|
+
isPrimaryKey: false;
|
|
210
|
+
isAutoincrement: false;
|
|
211
|
+
hasRuntimeDefault: false;
|
|
212
|
+
enumValues: [string, ...string[]];
|
|
213
|
+
baseColumn: never;
|
|
214
|
+
identity: undefined;
|
|
215
|
+
generated: undefined;
|
|
216
|
+
}, {}, {
|
|
217
|
+
length: 500;
|
|
218
|
+
}>;
|
|
219
|
+
onlineUrl: import("drizzle-orm/pg-core").PgColumn<{
|
|
220
|
+
name: "online_url";
|
|
221
|
+
tableName: "events";
|
|
222
|
+
dataType: "string";
|
|
223
|
+
columnType: "PgVarchar";
|
|
224
|
+
data: string;
|
|
225
|
+
driverParam: string;
|
|
226
|
+
notNull: false;
|
|
227
|
+
hasDefault: false;
|
|
228
|
+
isPrimaryKey: false;
|
|
229
|
+
isAutoincrement: false;
|
|
230
|
+
hasRuntimeDefault: false;
|
|
231
|
+
enumValues: [string, ...string[]];
|
|
232
|
+
baseColumn: never;
|
|
233
|
+
identity: undefined;
|
|
234
|
+
generated: undefined;
|
|
235
|
+
}, {}, {
|
|
236
|
+
length: 500;
|
|
237
|
+
}>;
|
|
238
|
+
capacity: import("drizzle-orm/pg-core").PgColumn<{
|
|
239
|
+
name: "capacity";
|
|
240
|
+
tableName: "events";
|
|
241
|
+
dataType: "number";
|
|
242
|
+
columnType: "PgInteger";
|
|
243
|
+
data: number;
|
|
244
|
+
driverParam: string | number;
|
|
245
|
+
notNull: false;
|
|
246
|
+
hasDefault: false;
|
|
247
|
+
isPrimaryKey: false;
|
|
248
|
+
isAutoincrement: false;
|
|
249
|
+
hasRuntimeDefault: false;
|
|
250
|
+
enumValues: undefined;
|
|
251
|
+
baseColumn: never;
|
|
252
|
+
identity: undefined;
|
|
253
|
+
generated: undefined;
|
|
254
|
+
}, {}, {}>;
|
|
255
|
+
attendeeCount: import("drizzle-orm/pg-core").PgColumn<{
|
|
256
|
+
name: "attendee_count";
|
|
257
|
+
tableName: "events";
|
|
258
|
+
dataType: "number";
|
|
259
|
+
columnType: "PgInteger";
|
|
260
|
+
data: number;
|
|
261
|
+
driverParam: string | number;
|
|
262
|
+
notNull: true;
|
|
263
|
+
hasDefault: true;
|
|
264
|
+
isPrimaryKey: false;
|
|
265
|
+
isAutoincrement: false;
|
|
266
|
+
hasRuntimeDefault: false;
|
|
267
|
+
enumValues: undefined;
|
|
268
|
+
baseColumn: never;
|
|
269
|
+
identity: undefined;
|
|
270
|
+
generated: undefined;
|
|
271
|
+
}, {}, {}>;
|
|
272
|
+
isFeatured: import("drizzle-orm/pg-core").PgColumn<{
|
|
273
|
+
name: "is_featured";
|
|
274
|
+
tableName: "events";
|
|
275
|
+
dataType: "boolean";
|
|
276
|
+
columnType: "PgBoolean";
|
|
277
|
+
data: boolean;
|
|
278
|
+
driverParam: boolean;
|
|
279
|
+
notNull: true;
|
|
280
|
+
hasDefault: true;
|
|
281
|
+
isPrimaryKey: false;
|
|
282
|
+
isAutoincrement: false;
|
|
283
|
+
hasRuntimeDefault: false;
|
|
284
|
+
enumValues: undefined;
|
|
285
|
+
baseColumn: never;
|
|
286
|
+
identity: undefined;
|
|
287
|
+
generated: undefined;
|
|
288
|
+
}, {}, {}>;
|
|
289
|
+
hubId: import("drizzle-orm/pg-core").PgColumn<{
|
|
290
|
+
name: "hub_id";
|
|
291
|
+
tableName: "events";
|
|
292
|
+
dataType: "string";
|
|
293
|
+
columnType: "PgUUID";
|
|
294
|
+
data: string;
|
|
295
|
+
driverParam: string;
|
|
296
|
+
notNull: false;
|
|
297
|
+
hasDefault: false;
|
|
298
|
+
isPrimaryKey: false;
|
|
299
|
+
isAutoincrement: false;
|
|
300
|
+
hasRuntimeDefault: false;
|
|
301
|
+
enumValues: undefined;
|
|
302
|
+
baseColumn: never;
|
|
303
|
+
identity: undefined;
|
|
304
|
+
generated: undefined;
|
|
305
|
+
}, {}, {}>;
|
|
306
|
+
createdById: import("drizzle-orm/pg-core").PgColumn<{
|
|
307
|
+
name: "created_by_id";
|
|
308
|
+
tableName: "events";
|
|
309
|
+
dataType: "string";
|
|
310
|
+
columnType: "PgUUID";
|
|
311
|
+
data: string;
|
|
312
|
+
driverParam: string;
|
|
313
|
+
notNull: true;
|
|
314
|
+
hasDefault: false;
|
|
315
|
+
isPrimaryKey: false;
|
|
316
|
+
isAutoincrement: false;
|
|
317
|
+
hasRuntimeDefault: false;
|
|
318
|
+
enumValues: undefined;
|
|
319
|
+
baseColumn: never;
|
|
320
|
+
identity: undefined;
|
|
321
|
+
generated: undefined;
|
|
322
|
+
}, {}, {}>;
|
|
323
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
324
|
+
name: "created_at";
|
|
325
|
+
tableName: "events";
|
|
326
|
+
dataType: "date";
|
|
327
|
+
columnType: "PgTimestamp";
|
|
328
|
+
data: Date;
|
|
329
|
+
driverParam: string;
|
|
330
|
+
notNull: true;
|
|
331
|
+
hasDefault: true;
|
|
332
|
+
isPrimaryKey: false;
|
|
333
|
+
isAutoincrement: false;
|
|
334
|
+
hasRuntimeDefault: false;
|
|
335
|
+
enumValues: undefined;
|
|
336
|
+
baseColumn: never;
|
|
337
|
+
identity: undefined;
|
|
338
|
+
generated: undefined;
|
|
339
|
+
}, {}, {}>;
|
|
340
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
341
|
+
name: "updated_at";
|
|
342
|
+
tableName: "events";
|
|
343
|
+
dataType: "date";
|
|
344
|
+
columnType: "PgTimestamp";
|
|
345
|
+
data: Date;
|
|
346
|
+
driverParam: string;
|
|
347
|
+
notNull: true;
|
|
348
|
+
hasDefault: true;
|
|
349
|
+
isPrimaryKey: false;
|
|
350
|
+
isAutoincrement: false;
|
|
351
|
+
hasRuntimeDefault: false;
|
|
352
|
+
enumValues: undefined;
|
|
353
|
+
baseColumn: never;
|
|
354
|
+
identity: undefined;
|
|
355
|
+
generated: undefined;
|
|
356
|
+
}, {}, {}>;
|
|
357
|
+
};
|
|
358
|
+
dialect: "pg";
|
|
359
|
+
}>;
|
|
360
|
+
export declare const eventAttendees: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
361
|
+
name: "event_attendees";
|
|
362
|
+
schema: undefined;
|
|
363
|
+
columns: {
|
|
364
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
365
|
+
name: "id";
|
|
366
|
+
tableName: "event_attendees";
|
|
367
|
+
dataType: "string";
|
|
368
|
+
columnType: "PgUUID";
|
|
369
|
+
data: string;
|
|
370
|
+
driverParam: string;
|
|
371
|
+
notNull: true;
|
|
372
|
+
hasDefault: true;
|
|
373
|
+
isPrimaryKey: true;
|
|
374
|
+
isAutoincrement: false;
|
|
375
|
+
hasRuntimeDefault: false;
|
|
376
|
+
enumValues: undefined;
|
|
377
|
+
baseColumn: never;
|
|
378
|
+
identity: undefined;
|
|
379
|
+
generated: undefined;
|
|
380
|
+
}, {}, {}>;
|
|
381
|
+
eventId: import("drizzle-orm/pg-core").PgColumn<{
|
|
382
|
+
name: "event_id";
|
|
383
|
+
tableName: "event_attendees";
|
|
384
|
+
dataType: "string";
|
|
385
|
+
columnType: "PgUUID";
|
|
386
|
+
data: string;
|
|
387
|
+
driverParam: string;
|
|
388
|
+
notNull: true;
|
|
389
|
+
hasDefault: false;
|
|
390
|
+
isPrimaryKey: false;
|
|
391
|
+
isAutoincrement: false;
|
|
392
|
+
hasRuntimeDefault: false;
|
|
393
|
+
enumValues: undefined;
|
|
394
|
+
baseColumn: never;
|
|
395
|
+
identity: undefined;
|
|
396
|
+
generated: undefined;
|
|
397
|
+
}, {}, {}>;
|
|
398
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
399
|
+
name: "user_id";
|
|
400
|
+
tableName: "event_attendees";
|
|
401
|
+
dataType: "string";
|
|
402
|
+
columnType: "PgUUID";
|
|
403
|
+
data: string;
|
|
404
|
+
driverParam: string;
|
|
405
|
+
notNull: true;
|
|
406
|
+
hasDefault: false;
|
|
407
|
+
isPrimaryKey: false;
|
|
408
|
+
isAutoincrement: false;
|
|
409
|
+
hasRuntimeDefault: false;
|
|
410
|
+
enumValues: undefined;
|
|
411
|
+
baseColumn: never;
|
|
412
|
+
identity: undefined;
|
|
413
|
+
generated: undefined;
|
|
414
|
+
}, {}, {}>;
|
|
415
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
416
|
+
name: "status";
|
|
417
|
+
tableName: "event_attendees";
|
|
418
|
+
dataType: "string";
|
|
419
|
+
columnType: "PgEnumColumn";
|
|
420
|
+
data: "cancelled" | "registered" | "waitlisted" | "attended";
|
|
421
|
+
driverParam: string;
|
|
422
|
+
notNull: true;
|
|
423
|
+
hasDefault: true;
|
|
424
|
+
isPrimaryKey: false;
|
|
425
|
+
isAutoincrement: false;
|
|
426
|
+
hasRuntimeDefault: false;
|
|
427
|
+
enumValues: ["registered", "waitlisted", "cancelled", "attended"];
|
|
428
|
+
baseColumn: never;
|
|
429
|
+
identity: undefined;
|
|
430
|
+
generated: undefined;
|
|
431
|
+
}, {}, {}>;
|
|
432
|
+
registeredAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
433
|
+
name: "registered_at";
|
|
434
|
+
tableName: "event_attendees";
|
|
435
|
+
dataType: "date";
|
|
436
|
+
columnType: "PgTimestamp";
|
|
437
|
+
data: Date;
|
|
438
|
+
driverParam: string;
|
|
439
|
+
notNull: true;
|
|
440
|
+
hasDefault: true;
|
|
441
|
+
isPrimaryKey: false;
|
|
442
|
+
isAutoincrement: false;
|
|
443
|
+
hasRuntimeDefault: false;
|
|
444
|
+
enumValues: undefined;
|
|
445
|
+
baseColumn: never;
|
|
446
|
+
identity: undefined;
|
|
447
|
+
generated: undefined;
|
|
448
|
+
}, {}, {}>;
|
|
449
|
+
};
|
|
450
|
+
dialect: "pg";
|
|
451
|
+
}>;
|
|
452
|
+
export declare const eventsRelations: import("drizzle-orm").Relations<"events", {
|
|
453
|
+
createdBy: import("drizzle-orm").One<"users", true>;
|
|
454
|
+
hub: import("drizzle-orm").One<"hubs", false>;
|
|
455
|
+
attendees: import("drizzle-orm").Many<"event_attendees">;
|
|
456
|
+
}>;
|
|
457
|
+
export declare const eventAttendeesRelations: import("drizzle-orm").Relations<"event_attendees", {
|
|
458
|
+
event: import("drizzle-orm").One<"events", true>;
|
|
459
|
+
user: import("drizzle-orm").One<"users", true>;
|
|
460
|
+
}>;
|
|
461
|
+
export type EventRow = typeof events.$inferSelect;
|
|
462
|
+
export type NewEventRow = typeof events.$inferInsert;
|
|
463
|
+
export type EventAttendeeRow = typeof eventAttendees.$inferSelect;
|
|
464
|
+
export type NewEventAttendeeRow = typeof eventAttendees.$inferInsert;
|
|
465
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BjB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAazB,CAAC;AAIH,eAAO,MAAM,eAAe;;;;EAIzB,CAAC;AAEJ,eAAO,MAAM,uBAAuB;;;EAGjC,CAAC;AAGJ,MAAM,MAAM,QAAQ,GAAG,OAAO,MAAM,CAAC,YAAY,CAAC;AAClD,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAC,YAAY,CAAC;AACrD,MAAM,MAAM,gBAAgB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,OAAO,cAAc,CAAC,YAAY,CAAC"}
|