rimelight-components 2.2.7 → 2.2.8
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/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { readdirSync } from 'node:fs';
|
|
|
4
4
|
import { basename } from 'node:path';
|
|
5
5
|
|
|
6
6
|
const name = "rimelight-components";
|
|
7
|
-
const version = "2.2.
|
|
7
|
+
const version = "2.2.8";
|
|
8
8
|
const homepage = "https://rimelight.com/tools/rimelight-components";
|
|
9
9
|
|
|
10
10
|
const defaultOptions = {
|
|
@@ -2215,6 +2215,7 @@ export declare const userRelations: import("drizzle-orm").Relations<"user", {
|
|
|
2215
2215
|
notes: import("drizzle-orm").Many<"note">;
|
|
2216
2216
|
noteLabels: import("drizzle-orm").Many<"noteLabel">;
|
|
2217
2217
|
todos: import("drizzle-orm").Many<"todo">;
|
|
2218
|
+
teamMembers: import("drizzle-orm").Many<"team_member">;
|
|
2218
2219
|
}>;
|
|
2219
2220
|
export declare const sessionRelations: import("drizzle-orm").Relations<"session", {
|
|
2220
2221
|
user: import("drizzle-orm").One<"user", true>;
|
package/dist/runtime/db/auth.js
CHANGED
|
@@ -144,8 +144,8 @@ export const team = pgTable(
|
|
|
144
144
|
);
|
|
145
145
|
export const teamMember = pgTable("team_member", {
|
|
146
146
|
id: id.primaryKey(),
|
|
147
|
-
teamId: uuid("team_id").notNull(),
|
|
148
|
-
userId: uuid("user_id").notNull(),
|
|
147
|
+
teamId: uuid("team_id").notNull().references(() => team.id, { onDelete: "cascade" }),
|
|
148
|
+
userId: uuid("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
|
|
149
149
|
role: text("role").notNull(),
|
|
150
150
|
...timestamps
|
|
151
151
|
});
|
|
@@ -191,7 +191,8 @@ export const userRelations = relations(user, ({ many }) => ({
|
|
|
191
191
|
invitations: many(invitation),
|
|
192
192
|
notes: many(note),
|
|
193
193
|
noteLabels: many(noteLabel),
|
|
194
|
-
todos: many(todo)
|
|
194
|
+
todos: many(todo),
|
|
195
|
+
teamMembers: many(teamMember)
|
|
195
196
|
}));
|
|
196
197
|
export const sessionRelations = relations(session, ({ one }) => ({
|
|
197
198
|
user: one(user, {
|
package/dist/runtime/db/auth.mjs
CHANGED
|
@@ -144,8 +144,8 @@ export const team = pgTable(
|
|
|
144
144
|
);
|
|
145
145
|
export const teamMember = pgTable("team_member", {
|
|
146
146
|
id: id.primaryKey(),
|
|
147
|
-
teamId: uuid("team_id").notNull(),
|
|
148
|
-
userId: uuid("user_id").notNull(),
|
|
147
|
+
teamId: uuid("team_id").notNull().references(() => team.id, { onDelete: "cascade" }),
|
|
148
|
+
userId: uuid("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
|
|
149
149
|
role: text("role").notNull(),
|
|
150
150
|
...timestamps
|
|
151
151
|
});
|
|
@@ -191,7 +191,8 @@ export const userRelations = relations(user, ({ many }) => ({
|
|
|
191
191
|
invitations: many(invitation),
|
|
192
192
|
notes: many(note),
|
|
193
193
|
noteLabels: many(noteLabel),
|
|
194
|
-
todos: many(todo)
|
|
194
|
+
todos: many(todo),
|
|
195
|
+
teamMembers: many(teamMember)
|
|
195
196
|
}));
|
|
196
197
|
export const sessionRelations = relations(session, ({ one }) => ({
|
|
197
198
|
user: one(user, {
|