@outs-tand-ing/postgres 0.0.1
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/README.md +400 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas/account.schema.d.ts +654 -0
- package/dist/schemas/account.schema.d.ts.map +1 -0
- package/dist/schemas/account.schema.js +52 -0
- package/dist/schemas/account.schema.js.map +1 -0
- package/dist/schemas/blueprint.schema.d.ts +820 -0
- package/dist/schemas/blueprint.schema.d.ts.map +1 -0
- package/dist/schemas/blueprint.schema.js +63 -0
- package/dist/schemas/blueprint.schema.js.map +1 -0
- package/dist/schemas/calendar.schema.d.ts +772 -0
- package/dist/schemas/calendar.schema.d.ts.map +1 -0
- package/dist/schemas/calendar.schema.js +62 -0
- package/dist/schemas/calendar.schema.js.map +1 -0
- package/dist/schemas/delivery.schema.d.ts +863 -0
- package/dist/schemas/delivery.schema.d.ts.map +1 -0
- package/dist/schemas/delivery.schema.js +65 -0
- package/dist/schemas/delivery.schema.js.map +1 -0
- package/dist/schemas/entry.schema.d.ts +717 -0
- package/dist/schemas/entry.schema.d.ts.map +1 -0
- package/dist/schemas/entry.schema.js +54 -0
- package/dist/schemas/entry.schema.js.map +1 -0
- package/dist/schemas/group.schema.d.ts +910 -0
- package/dist/schemas/group.schema.d.ts.map +1 -0
- package/dist/schemas/group.schema.js +67 -0
- package/dist/schemas/group.schema.js.map +1 -0
- package/dist/schemas/index.d.ts +9 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +10 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/real.schema.d.ts +1144 -0
- package/dist/schemas/real.schema.d.ts.map +1 -0
- package/dist/schemas/real.schema.js +94 -0
- package/dist/schemas/real.schema.js.map +1 -0
- package/dist/schemas/timeline.schema.d.ts +356 -0
- package/dist/schemas/timeline.schema.d.ts.map +1 -0
- package/dist/schemas/timeline.schema.js +29 -0
- package/dist/schemas/timeline.schema.js.map +1 -0
- package/package.json +102 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"real.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/real.schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBxB,CAAA;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBrB,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBvB,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
+
export const realFixtures = pgTable('real_fixtures', {
|
|
4
|
+
_id: text('_id').primaryKey().default(sql `gen_random_uuid()::text`),
|
|
5
|
+
id: text('id').notNull().unique(),
|
|
6
|
+
url: text('url').notNull().unique(),
|
|
7
|
+
name: text('name'),
|
|
8
|
+
status: varchar('status', { length: 50 }),
|
|
9
|
+
afFixtureId: integer('af_fixture_id'),
|
|
10
|
+
_homeTeam: text('_home_team'),
|
|
11
|
+
_awayTeam: text('_away_team'),
|
|
12
|
+
startingAt: timestamp('starting_at'),
|
|
13
|
+
result: text('result'),
|
|
14
|
+
liveMinute: text('live_minute'),
|
|
15
|
+
afFullLocation: text('af_full_location'),
|
|
16
|
+
_createdAt: timestamp('_created_at').defaultNow().notNull(),
|
|
17
|
+
_updatedAt: timestamp('_updated_at').defaultNow().notNull(),
|
|
18
|
+
__v: integer('__v').default(0).notNull(),
|
|
19
|
+
}, (table) => ({
|
|
20
|
+
idIdx: index('real_fixtures_id_idx').on(table.id),
|
|
21
|
+
afFixtureIdIdx: index('real_fixtures_af_fixture_id_idx').on(table.afFixtureId),
|
|
22
|
+
homeTeamIdx: index('real_fixtures_home_team_idx').on(table._homeTeam),
|
|
23
|
+
awayTeamIdx: index('real_fixtures_away_team_idx').on(table._awayTeam),
|
|
24
|
+
}));
|
|
25
|
+
export const realTeams = pgTable('real_teams', {
|
|
26
|
+
_id: text('_id').primaryKey().default(sql `gen_random_uuid()::text`),
|
|
27
|
+
id: text('id').notNull().unique(),
|
|
28
|
+
url: text('url').notNull().unique(),
|
|
29
|
+
name: text('name'),
|
|
30
|
+
status: varchar('status', { length: 50 }),
|
|
31
|
+
afTeamId: integer('af_team_id').unique(),
|
|
32
|
+
shortCode: text('short_code'),
|
|
33
|
+
sanityPath: text('sanity_path'),
|
|
34
|
+
_createdAt: timestamp('_created_at').defaultNow().notNull(),
|
|
35
|
+
_updatedAt: timestamp('_updated_at').defaultNow().notNull(),
|
|
36
|
+
__v: integer('__v').default(0).notNull(),
|
|
37
|
+
}, (table) => ({
|
|
38
|
+
idIdx: index('real_teams_id_idx').on(table.id),
|
|
39
|
+
afTeamIdIdx: index('real_teams_af_team_id_idx').on(table.afTeamId),
|
|
40
|
+
}));
|
|
41
|
+
export const realPlayers = pgTable('real_players', {
|
|
42
|
+
_id: text('_id').primaryKey().default(sql `gen_random_uuid()::text`),
|
|
43
|
+
id: text('id').notNull().unique(),
|
|
44
|
+
url: text('url').notNull().unique(),
|
|
45
|
+
name: text('name'),
|
|
46
|
+
status: varchar('status', { length: 50 }),
|
|
47
|
+
afPlayerId: integer('af_player_id').unique(),
|
|
48
|
+
_team: text('_team'),
|
|
49
|
+
age: integer('age'),
|
|
50
|
+
nationality: text('nationality'),
|
|
51
|
+
_createdAt: timestamp('_created_at').defaultNow().notNull(),
|
|
52
|
+
_updatedAt: timestamp('_updated_at').defaultNow().notNull(),
|
|
53
|
+
__v: integer('__v').default(0).notNull(),
|
|
54
|
+
}, (table) => ({
|
|
55
|
+
idIdx: index('real_players_id_idx').on(table.id),
|
|
56
|
+
afPlayerIdIdx: index('real_players_af_player_id_idx').on(table.afPlayerId),
|
|
57
|
+
teamIdx: index('real_players_team_idx').on(table._team),
|
|
58
|
+
}));
|
|
59
|
+
export const realEvents = pgTable('real_events', {
|
|
60
|
+
_id: text('_id').primaryKey().default(sql `gen_random_uuid()::text`),
|
|
61
|
+
id: text('id').notNull().unique(),
|
|
62
|
+
url: text('url').notNull().unique(),
|
|
63
|
+
name: text('name'),
|
|
64
|
+
status: varchar('status', { length: 50 }),
|
|
65
|
+
type: text('type'),
|
|
66
|
+
detail: text('detail'),
|
|
67
|
+
time: integer('time'),
|
|
68
|
+
timeExtra: integer('time_extra'),
|
|
69
|
+
_realFixture: text('_real_fixture'),
|
|
70
|
+
_team: text('_team'),
|
|
71
|
+
_player: text('_player'),
|
|
72
|
+
_assist: text('_assist'),
|
|
73
|
+
comments: text('comments'),
|
|
74
|
+
_createdAt: timestamp('_created_at').defaultNow().notNull(),
|
|
75
|
+
_updatedAt: timestamp('_updated_at').defaultNow().notNull(),
|
|
76
|
+
__v: integer('__v').default(0).notNull(),
|
|
77
|
+
}, (table) => ({
|
|
78
|
+
idIdx: index('real_events_id_idx').on(table.id),
|
|
79
|
+
realFixtureIdx: index('real_events_real_fixture_idx').on(table._realFixture),
|
|
80
|
+
}));
|
|
81
|
+
export const realChannels = pgTable('real_channels', {
|
|
82
|
+
_id: text('_id').primaryKey().default(sql `gen_random_uuid()::text`),
|
|
83
|
+
id: text('id').notNull().unique(),
|
|
84
|
+
url: text('url').notNull().unique(),
|
|
85
|
+
name: text('name'),
|
|
86
|
+
status: varchar('status', { length: 50 }),
|
|
87
|
+
key: integer('key').unique(),
|
|
88
|
+
_createdAt: timestamp('_created_at').defaultNow().notNull(),
|
|
89
|
+
_updatedAt: timestamp('_updated_at').defaultNow().notNull(),
|
|
90
|
+
__v: integer('__v').default(0).notNull(),
|
|
91
|
+
}, (table) => ({
|
|
92
|
+
idIdx: index('real_channels_id_idx').on(table.id),
|
|
93
|
+
}));
|
|
94
|
+
//# sourceMappingURL=real.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"real.schema.js","sourceRoot":"","sources":["../../src/schemas/real.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AACvF,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAEjC,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CACjC,eAAe,EACf;IACE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,GAAG,CAAA,yBAAyB,CAAC;IACnE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;IACjC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,OA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C,OAAO,EAAE,CAAC,MAAM,EAAE;IACjC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;IACnC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACzC,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE;IAC5B,UAAU,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE;IAC3D,UAAU,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE;IAC3D,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE;CACzC,EACD,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACV,KAAK,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;CAClD,CAAC,CACH,CAAA"}
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
export declare const snapshots: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2
|
+
name: "timeline_snapshots";
|
|
3
|
+
schema: undefined;
|
|
4
|
+
columns: {
|
|
5
|
+
_id: import("drizzle-orm/pg-core").PgColumn<{
|
|
6
|
+
name: "_id";
|
|
7
|
+
tableName: "timeline_snapshots";
|
|
8
|
+
dataType: "string";
|
|
9
|
+
columnType: "PgText";
|
|
10
|
+
data: string;
|
|
11
|
+
driverParam: string;
|
|
12
|
+
notNull: true;
|
|
13
|
+
hasDefault: true;
|
|
14
|
+
isPrimaryKey: true;
|
|
15
|
+
isAutoincrement: false;
|
|
16
|
+
hasRuntimeDefault: false;
|
|
17
|
+
enumValues: [string, ...string[]];
|
|
18
|
+
baseColumn: never;
|
|
19
|
+
identity: undefined;
|
|
20
|
+
generated: undefined;
|
|
21
|
+
}, {}, {}>;
|
|
22
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
23
|
+
name: "id";
|
|
24
|
+
tableName: "timeline_snapshots";
|
|
25
|
+
dataType: "string";
|
|
26
|
+
columnType: "PgText";
|
|
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
|
+
url: import("drizzle-orm/pg-core").PgColumn<{
|
|
40
|
+
name: "url";
|
|
41
|
+
tableName: "timeline_snapshots";
|
|
42
|
+
dataType: "string";
|
|
43
|
+
columnType: "PgText";
|
|
44
|
+
data: string;
|
|
45
|
+
driverParam: string;
|
|
46
|
+
notNull: true;
|
|
47
|
+
hasDefault: false;
|
|
48
|
+
isPrimaryKey: false;
|
|
49
|
+
isAutoincrement: false;
|
|
50
|
+
hasRuntimeDefault: false;
|
|
51
|
+
enumValues: [string, ...string[]];
|
|
52
|
+
baseColumn: never;
|
|
53
|
+
identity: undefined;
|
|
54
|
+
generated: undefined;
|
|
55
|
+
}, {}, {}>;
|
|
56
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
57
|
+
name: "name";
|
|
58
|
+
tableName: "timeline_snapshots";
|
|
59
|
+
dataType: "string";
|
|
60
|
+
columnType: "PgText";
|
|
61
|
+
data: string;
|
|
62
|
+
driverParam: string;
|
|
63
|
+
notNull: false;
|
|
64
|
+
hasDefault: false;
|
|
65
|
+
isPrimaryKey: false;
|
|
66
|
+
isAutoincrement: false;
|
|
67
|
+
hasRuntimeDefault: false;
|
|
68
|
+
enumValues: [string, ...string[]];
|
|
69
|
+
baseColumn: never;
|
|
70
|
+
identity: undefined;
|
|
71
|
+
generated: undefined;
|
|
72
|
+
}, {}, {}>;
|
|
73
|
+
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
74
|
+
name: "status";
|
|
75
|
+
tableName: "timeline_snapshots";
|
|
76
|
+
dataType: "string";
|
|
77
|
+
columnType: "PgVarchar";
|
|
78
|
+
data: string;
|
|
79
|
+
driverParam: string;
|
|
80
|
+
notNull: false;
|
|
81
|
+
hasDefault: false;
|
|
82
|
+
isPrimaryKey: false;
|
|
83
|
+
isAutoincrement: false;
|
|
84
|
+
hasRuntimeDefault: false;
|
|
85
|
+
enumValues: [string, ...string[]];
|
|
86
|
+
baseColumn: never;
|
|
87
|
+
identity: undefined;
|
|
88
|
+
generated: undefined;
|
|
89
|
+
}, {}, {
|
|
90
|
+
length: 50;
|
|
91
|
+
}>;
|
|
92
|
+
_season: import("drizzle-orm/pg-core").PgColumn<{
|
|
93
|
+
name: "_season";
|
|
94
|
+
tableName: "timeline_snapshots";
|
|
95
|
+
dataType: "string";
|
|
96
|
+
columnType: "PgText";
|
|
97
|
+
data: string;
|
|
98
|
+
driverParam: string;
|
|
99
|
+
notNull: false;
|
|
100
|
+
hasDefault: false;
|
|
101
|
+
isPrimaryKey: false;
|
|
102
|
+
isAutoincrement: false;
|
|
103
|
+
hasRuntimeDefault: false;
|
|
104
|
+
enumValues: [string, ...string[]];
|
|
105
|
+
baseColumn: never;
|
|
106
|
+
identity: undefined;
|
|
107
|
+
generated: undefined;
|
|
108
|
+
}, {}, {}>;
|
|
109
|
+
_stage: import("drizzle-orm/pg-core").PgColumn<{
|
|
110
|
+
name: "_stage";
|
|
111
|
+
tableName: "timeline_snapshots";
|
|
112
|
+
dataType: "string";
|
|
113
|
+
columnType: "PgText";
|
|
114
|
+
data: string;
|
|
115
|
+
driverParam: string;
|
|
116
|
+
notNull: false;
|
|
117
|
+
hasDefault: false;
|
|
118
|
+
isPrimaryKey: false;
|
|
119
|
+
isAutoincrement: false;
|
|
120
|
+
hasRuntimeDefault: false;
|
|
121
|
+
enumValues: [string, ...string[]];
|
|
122
|
+
baseColumn: never;
|
|
123
|
+
identity: undefined;
|
|
124
|
+
generated: undefined;
|
|
125
|
+
}, {}, {}>;
|
|
126
|
+
_round: import("drizzle-orm/pg-core").PgColumn<{
|
|
127
|
+
name: "_round";
|
|
128
|
+
tableName: "timeline_snapshots";
|
|
129
|
+
dataType: "string";
|
|
130
|
+
columnType: "PgText";
|
|
131
|
+
data: string;
|
|
132
|
+
driverParam: string;
|
|
133
|
+
notNull: false;
|
|
134
|
+
hasDefault: false;
|
|
135
|
+
isPrimaryKey: false;
|
|
136
|
+
isAutoincrement: false;
|
|
137
|
+
hasRuntimeDefault: false;
|
|
138
|
+
enumValues: [string, ...string[]];
|
|
139
|
+
baseColumn: never;
|
|
140
|
+
identity: undefined;
|
|
141
|
+
generated: undefined;
|
|
142
|
+
}, {}, {}>;
|
|
143
|
+
_challenge: import("drizzle-orm/pg-core").PgColumn<{
|
|
144
|
+
name: "_challenge";
|
|
145
|
+
tableName: "timeline_snapshots";
|
|
146
|
+
dataType: "string";
|
|
147
|
+
columnType: "PgText";
|
|
148
|
+
data: string;
|
|
149
|
+
driverParam: string;
|
|
150
|
+
notNull: false;
|
|
151
|
+
hasDefault: false;
|
|
152
|
+
isPrimaryKey: false;
|
|
153
|
+
isAutoincrement: false;
|
|
154
|
+
hasRuntimeDefault: false;
|
|
155
|
+
enumValues: [string, ...string[]];
|
|
156
|
+
baseColumn: never;
|
|
157
|
+
identity: undefined;
|
|
158
|
+
generated: undefined;
|
|
159
|
+
}, {}, {}>;
|
|
160
|
+
_realFixture: import("drizzle-orm/pg-core").PgColumn<{
|
|
161
|
+
name: "_real_fixture";
|
|
162
|
+
tableName: "timeline_snapshots";
|
|
163
|
+
dataType: "string";
|
|
164
|
+
columnType: "PgText";
|
|
165
|
+
data: string;
|
|
166
|
+
driverParam: string;
|
|
167
|
+
notNull: false;
|
|
168
|
+
hasDefault: false;
|
|
169
|
+
isPrimaryKey: false;
|
|
170
|
+
isAutoincrement: false;
|
|
171
|
+
hasRuntimeDefault: false;
|
|
172
|
+
enumValues: [string, ...string[]];
|
|
173
|
+
baseColumn: never;
|
|
174
|
+
identity: undefined;
|
|
175
|
+
generated: undefined;
|
|
176
|
+
}, {}, {}>;
|
|
177
|
+
_realEvent: import("drizzle-orm/pg-core").PgColumn<{
|
|
178
|
+
name: "_real_event";
|
|
179
|
+
tableName: "timeline_snapshots";
|
|
180
|
+
dataType: "string";
|
|
181
|
+
columnType: "PgText";
|
|
182
|
+
data: string;
|
|
183
|
+
driverParam: string;
|
|
184
|
+
notNull: false;
|
|
185
|
+
hasDefault: false;
|
|
186
|
+
isPrimaryKey: false;
|
|
187
|
+
isAutoincrement: false;
|
|
188
|
+
hasRuntimeDefault: false;
|
|
189
|
+
enumValues: [string, ...string[]];
|
|
190
|
+
baseColumn: never;
|
|
191
|
+
identity: undefined;
|
|
192
|
+
generated: undefined;
|
|
193
|
+
}, {}, {}>;
|
|
194
|
+
_groups: import("drizzle-orm/pg-core").PgColumn<{
|
|
195
|
+
name: "_groups";
|
|
196
|
+
tableName: "timeline_snapshots";
|
|
197
|
+
dataType: "json";
|
|
198
|
+
columnType: "PgJsonb";
|
|
199
|
+
data: string[];
|
|
200
|
+
driverParam: unknown;
|
|
201
|
+
notNull: false;
|
|
202
|
+
hasDefault: false;
|
|
203
|
+
isPrimaryKey: false;
|
|
204
|
+
isAutoincrement: false;
|
|
205
|
+
hasRuntimeDefault: false;
|
|
206
|
+
enumValues: undefined;
|
|
207
|
+
baseColumn: never;
|
|
208
|
+
identity: undefined;
|
|
209
|
+
generated: undefined;
|
|
210
|
+
}, {}, {
|
|
211
|
+
$type: string[];
|
|
212
|
+
}>;
|
|
213
|
+
_ref: import("drizzle-orm/pg-core").PgColumn<{
|
|
214
|
+
name: "_ref";
|
|
215
|
+
tableName: "timeline_snapshots";
|
|
216
|
+
dataType: "string";
|
|
217
|
+
columnType: "PgText";
|
|
218
|
+
data: string;
|
|
219
|
+
driverParam: string;
|
|
220
|
+
notNull: false;
|
|
221
|
+
hasDefault: false;
|
|
222
|
+
isPrimaryKey: false;
|
|
223
|
+
isAutoincrement: false;
|
|
224
|
+
hasRuntimeDefault: false;
|
|
225
|
+
enumValues: [string, ...string[]];
|
|
226
|
+
baseColumn: never;
|
|
227
|
+
identity: undefined;
|
|
228
|
+
generated: undefined;
|
|
229
|
+
}, {}, {}>;
|
|
230
|
+
pointer: import("drizzle-orm/pg-core").PgColumn<{
|
|
231
|
+
name: "pointer";
|
|
232
|
+
tableName: "timeline_snapshots";
|
|
233
|
+
dataType: "string";
|
|
234
|
+
columnType: "PgText";
|
|
235
|
+
data: string;
|
|
236
|
+
driverParam: string;
|
|
237
|
+
notNull: false;
|
|
238
|
+
hasDefault: false;
|
|
239
|
+
isPrimaryKey: false;
|
|
240
|
+
isAutoincrement: false;
|
|
241
|
+
hasRuntimeDefault: false;
|
|
242
|
+
enumValues: [string, ...string[]];
|
|
243
|
+
baseColumn: never;
|
|
244
|
+
identity: undefined;
|
|
245
|
+
generated: undefined;
|
|
246
|
+
}, {}, {}>;
|
|
247
|
+
order: import("drizzle-orm/pg-core").PgColumn<{
|
|
248
|
+
name: "order";
|
|
249
|
+
tableName: "timeline_snapshots";
|
|
250
|
+
dataType: "string";
|
|
251
|
+
columnType: "PgText";
|
|
252
|
+
data: string;
|
|
253
|
+
driverParam: string;
|
|
254
|
+
notNull: false;
|
|
255
|
+
hasDefault: false;
|
|
256
|
+
isPrimaryKey: false;
|
|
257
|
+
isAutoincrement: false;
|
|
258
|
+
hasRuntimeDefault: false;
|
|
259
|
+
enumValues: [string, ...string[]];
|
|
260
|
+
baseColumn: never;
|
|
261
|
+
identity: undefined;
|
|
262
|
+
generated: undefined;
|
|
263
|
+
}, {}, {}>;
|
|
264
|
+
contributions: import("drizzle-orm/pg-core").PgColumn<{
|
|
265
|
+
name: "contributions";
|
|
266
|
+
tableName: "timeline_snapshots";
|
|
267
|
+
dataType: "json";
|
|
268
|
+
columnType: "PgJsonb";
|
|
269
|
+
data: string[];
|
|
270
|
+
driverParam: unknown;
|
|
271
|
+
notNull: false;
|
|
272
|
+
hasDefault: false;
|
|
273
|
+
isPrimaryKey: false;
|
|
274
|
+
isAutoincrement: false;
|
|
275
|
+
hasRuntimeDefault: false;
|
|
276
|
+
enumValues: undefined;
|
|
277
|
+
baseColumn: never;
|
|
278
|
+
identity: undefined;
|
|
279
|
+
generated: undefined;
|
|
280
|
+
}, {}, {
|
|
281
|
+
$type: string[];
|
|
282
|
+
}>;
|
|
283
|
+
correctBet: import("drizzle-orm/pg-core").PgColumn<{
|
|
284
|
+
name: "correct_bet";
|
|
285
|
+
tableName: "timeline_snapshots";
|
|
286
|
+
dataType: "string";
|
|
287
|
+
columnType: "PgText";
|
|
288
|
+
data: string;
|
|
289
|
+
driverParam: string;
|
|
290
|
+
notNull: false;
|
|
291
|
+
hasDefault: false;
|
|
292
|
+
isPrimaryKey: false;
|
|
293
|
+
isAutoincrement: false;
|
|
294
|
+
hasRuntimeDefault: false;
|
|
295
|
+
enumValues: [string, ...string[]];
|
|
296
|
+
baseColumn: never;
|
|
297
|
+
identity: undefined;
|
|
298
|
+
generated: undefined;
|
|
299
|
+
}, {}, {}>;
|
|
300
|
+
_createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
301
|
+
name: "_created_at";
|
|
302
|
+
tableName: "timeline_snapshots";
|
|
303
|
+
dataType: "date";
|
|
304
|
+
columnType: "PgTimestamp";
|
|
305
|
+
data: Date;
|
|
306
|
+
driverParam: string;
|
|
307
|
+
notNull: true;
|
|
308
|
+
hasDefault: true;
|
|
309
|
+
isPrimaryKey: false;
|
|
310
|
+
isAutoincrement: false;
|
|
311
|
+
hasRuntimeDefault: false;
|
|
312
|
+
enumValues: undefined;
|
|
313
|
+
baseColumn: never;
|
|
314
|
+
identity: undefined;
|
|
315
|
+
generated: undefined;
|
|
316
|
+
}, {}, {}>;
|
|
317
|
+
_updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
318
|
+
name: "_updated_at";
|
|
319
|
+
tableName: "timeline_snapshots";
|
|
320
|
+
dataType: "date";
|
|
321
|
+
columnType: "PgTimestamp";
|
|
322
|
+
data: Date;
|
|
323
|
+
driverParam: string;
|
|
324
|
+
notNull: true;
|
|
325
|
+
hasDefault: true;
|
|
326
|
+
isPrimaryKey: false;
|
|
327
|
+
isAutoincrement: false;
|
|
328
|
+
hasRuntimeDefault: false;
|
|
329
|
+
enumValues: undefined;
|
|
330
|
+
baseColumn: never;
|
|
331
|
+
identity: undefined;
|
|
332
|
+
generated: undefined;
|
|
333
|
+
}, {}, {}>;
|
|
334
|
+
__v: import("drizzle-orm/pg-core").PgColumn<{
|
|
335
|
+
name: "__v";
|
|
336
|
+
tableName: "timeline_snapshots";
|
|
337
|
+
dataType: "number";
|
|
338
|
+
columnType: "PgInteger";
|
|
339
|
+
data: number;
|
|
340
|
+
driverParam: string | number;
|
|
341
|
+
notNull: true;
|
|
342
|
+
hasDefault: true;
|
|
343
|
+
isPrimaryKey: false;
|
|
344
|
+
isAutoincrement: false;
|
|
345
|
+
hasRuntimeDefault: false;
|
|
346
|
+
enumValues: undefined;
|
|
347
|
+
baseColumn: never;
|
|
348
|
+
identity: undefined;
|
|
349
|
+
generated: undefined;
|
|
350
|
+
}, {}, {}>;
|
|
351
|
+
};
|
|
352
|
+
dialect: "pg";
|
|
353
|
+
}>;
|
|
354
|
+
export type Snapshot = typeof snapshots.$inferSelect;
|
|
355
|
+
export type NewSnapshot = typeof snapshots.$inferInsert;
|
|
356
|
+
//# sourceMappingURL=timeline.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.schema.d.ts","sourceRoot":"","sources":["../../src/schemas/timeline.schema.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BrB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA;AACpD,MAAM,MAAM,WAAW,GAAG,OAAO,SAAS,CAAC,YAAY,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { pgTable, text, timestamp, integer, varchar, jsonb, index } from 'drizzle-orm/pg-core';
|
|
2
|
+
import { sql } from 'drizzle-orm';
|
|
3
|
+
export const snapshots = pgTable('timeline_snapshots', {
|
|
4
|
+
_id: text('_id').primaryKey().default(sql `gen_random_uuid()::text`),
|
|
5
|
+
id: text('id').notNull().unique(),
|
|
6
|
+
url: text('url').notNull().unique(),
|
|
7
|
+
name: text('name'),
|
|
8
|
+
status: varchar('status', { length: 50 }),
|
|
9
|
+
_season: text('_season'),
|
|
10
|
+
_stage: text('_stage'),
|
|
11
|
+
_round: text('_round'),
|
|
12
|
+
_challenge: text('_challenge'),
|
|
13
|
+
_realFixture: text('_real_fixture'),
|
|
14
|
+
_realEvent: text('_real_event'),
|
|
15
|
+
_groups: jsonb('_groups').$type(),
|
|
16
|
+
_ref: text('_ref'),
|
|
17
|
+
pointer: text('pointer'),
|
|
18
|
+
order: text('order'),
|
|
19
|
+
contributions: jsonb('contributions').$type(),
|
|
20
|
+
correctBet: text('correct_bet'),
|
|
21
|
+
_createdAt: timestamp('_created_at').defaultNow().notNull(),
|
|
22
|
+
_updatedAt: timestamp('_updated_at').defaultNow().notNull(),
|
|
23
|
+
__v: integer('__v').default(0).notNull(),
|
|
24
|
+
}, (table) => ({
|
|
25
|
+
idIdx: index('snapshots_id_idx').on(table.id),
|
|
26
|
+
seasonIdx: index('snapshots_season_idx').on(table._season),
|
|
27
|
+
challengeIdx: index('snapshots_challenge_idx').on(table._challenge),
|
|
28
|
+
}));
|
|
29
|
+
//# sourceMappingURL=timeline.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.schema.js","sourceRoot":"","sources":["../../src/schemas/timeline.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC9F,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAA;AAEjC,MAAM,CAAC,MAAM,SAAS,GAAG,OAAO,CAC9B,oBAAoB,EACpB;IACE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,CAAC,GAAG,CAAA,yBAAyB,CAAC;IACnE,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;IACjC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;IACnC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;IACzC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;IACxB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;IACtB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;IACtB,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;IAC9B,YAAY,EAAE,IAAI,CAAC,eAAe,CAAC;IACnC,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC;IAC/B,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,EAAY;IAC3C,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;IAClB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;IACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,KAAK,EAAY;IACvD,UAAU,EAAE,IAAI,CAAC,aAAa,CAAC;IAC/B,UAAU,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE;IAC3D,UAAU,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE;IAC3D,GAAG,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE;CACzC,EACD,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACV,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC;IAC7C,SAAS,EAAE,KAAK,CAAC,sBAAsB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC;IAC1D,YAAY,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC;CACpE,CAAC,CACH,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@outs-tand-ing/postgres",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "PostgreSQL database with Drizzle ORM for Outs project",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./schemas": {
|
|
14
|
+
"types": "./dist/schemas/index.d.ts",
|
|
15
|
+
"import": "./dist/schemas/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./schemas/account": {
|
|
18
|
+
"types": "./dist/schemas/account.schema.d.ts",
|
|
19
|
+
"import": "./dist/schemas/account.schema.js"
|
|
20
|
+
},
|
|
21
|
+
"./schemas/blueprint": {
|
|
22
|
+
"types": "./dist/schemas/blueprint.schema.d.ts",
|
|
23
|
+
"import": "./dist/schemas/blueprint.schema.js"
|
|
24
|
+
},
|
|
25
|
+
"./schemas/calendar": {
|
|
26
|
+
"types": "./dist/schemas/calendar.schema.d.ts",
|
|
27
|
+
"import": "./dist/schemas/calendar.schema.js"
|
|
28
|
+
},
|
|
29
|
+
"./schemas/entry": {
|
|
30
|
+
"types": "./dist/schemas/entry.schema.d.ts",
|
|
31
|
+
"import": "./dist/schemas/entry.schema.js"
|
|
32
|
+
},
|
|
33
|
+
"./schemas/group": {
|
|
34
|
+
"types": "./dist/schemas/group.schema.d.ts",
|
|
35
|
+
"import": "./dist/schemas/group.schema.js"
|
|
36
|
+
},
|
|
37
|
+
"./schemas/real": {
|
|
38
|
+
"types": "./dist/schemas/real.schema.d.ts",
|
|
39
|
+
"import": "./dist/schemas/real.schema.js"
|
|
40
|
+
},
|
|
41
|
+
"./schemas/delivery": {
|
|
42
|
+
"types": "./dist/schemas/delivery.schema.d.ts",
|
|
43
|
+
"import": "./dist/schemas/delivery.schema.js"
|
|
44
|
+
},
|
|
45
|
+
"./schemas/timeline": {
|
|
46
|
+
"types": "./dist/schemas/timeline.schema.d.ts",
|
|
47
|
+
"import": "./dist/schemas/timeline.schema.js"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"files": [
|
|
51
|
+
"dist",
|
|
52
|
+
"README.md"
|
|
53
|
+
],
|
|
54
|
+
"sideEffects": false,
|
|
55
|
+
"scripts": {
|
|
56
|
+
"build": "bun build:clean && bun build:types",
|
|
57
|
+
"build:clean": "rm -rf dist",
|
|
58
|
+
"build:types": "tsc --project tsconfig.build.json",
|
|
59
|
+
"prepublishOnly": "bun run build",
|
|
60
|
+
"version:patch": "npm version patch",
|
|
61
|
+
"version:minor": "npm version minor",
|
|
62
|
+
"version:major": "npm version major",
|
|
63
|
+
"publish:patch": "bun run version:patch && bun run build && npm publish --access public",
|
|
64
|
+
"publish:minor": "bun run version:minor && bun run build && npm publish --access public",
|
|
65
|
+
"publish:major": "bun run version:major && bun run build && npm publish --access public",
|
|
66
|
+
"publish:npm": "bun run build && npm publish --access public",
|
|
67
|
+
"db:generate": "drizzle-kit generate",
|
|
68
|
+
"db:migrate": "drizzle-kit migrate",
|
|
69
|
+
"db:push": "drizzle-kit push",
|
|
70
|
+
"db:studio": "drizzle-kit studio",
|
|
71
|
+
"db:seed": "bun run src/migrations/seed.ts",
|
|
72
|
+
"db:test": "bun run src/test-connection.ts",
|
|
73
|
+
"query:users": "bun run src/query.ts users",
|
|
74
|
+
"query:user": "bun run src/query.ts user",
|
|
75
|
+
"query:subscriptions": "bun run src/query.ts subscriptions",
|
|
76
|
+
"query:seasons": "bun run src/query.ts seasons",
|
|
77
|
+
"docker:up": "docker-compose up -d",
|
|
78
|
+
"docker:down": "docker-compose down",
|
|
79
|
+
"docker:logs": "docker-compose logs -f postgres",
|
|
80
|
+
"neon:push:staging": "export $(cat .env.staging | grep -v '^#' | xargs) && drizzle-kit push",
|
|
81
|
+
"neon:push:production": "export $(cat .env.production | grep -v '^#' | xargs) && drizzle-kit push",
|
|
82
|
+
"neon:seed:staging": "export $(cat .env.staging | grep -v '^#' | xargs) && bun run src/migrations/seed.ts",
|
|
83
|
+
"neon:seed:production": "export $(cat .env.production | grep -v '^#' | xargs) && bun run src/migrations/seed.ts",
|
|
84
|
+
"neon:studio:staging": "export $(cat .env.staging | grep -v '^#' | xargs) && drizzle-kit studio --port 4984",
|
|
85
|
+
"neon:studio:production": "export $(cat .env.production | grep -v '^#' | xargs) && drizzle-kit studio --port 4985"
|
|
86
|
+
},
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"drizzle-orm": "0.44.7"
|
|
89
|
+
},
|
|
90
|
+
"peerDependencies": {
|
|
91
|
+
"postgres": "^3.4.5"
|
|
92
|
+
},
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"@types/bcrypt": "^6.0.0",
|
|
95
|
+
"@types/bun": "1.3.3",
|
|
96
|
+
"@types/node": "^24.10.1",
|
|
97
|
+
"bcrypt": "^6.0.0",
|
|
98
|
+
"drizzle-kit": "0.31.7",
|
|
99
|
+
"postgres": "^3.4.5",
|
|
100
|
+
"typescript": "^5.7.2"
|
|
101
|
+
}
|
|
102
|
+
}
|