Skip to content

Commit

Permalink
re-format
Browse files Browse the repository at this point in the history
  • Loading branch information
koji-m committed Oct 31, 2024
1 parent 2c0705f commit 4959682
Show file tree
Hide file tree
Showing 3 changed files with 1,704 additions and 1,900 deletions.
15 changes: 12 additions & 3 deletions drizzle/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ export const organizations = pgTable("organizations", {
dbId: serial("db_id").primaryKey(),
name: text("name").notNull(),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at").defaultNow().notNull().$onUpdate(() => new Date()),
updatedAt: timestamp("updated_at")
.defaultNow()
.notNull()
.$onUpdate(() => new Date()),
});

export const subscriptions = pgTable("subscriptions", {
Expand Down Expand Up @@ -76,7 +79,10 @@ export const teams = pgTable("teams", {
.references(() => organizations.dbId),
name: text("name").notNull(),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at").defaultNow().notNull().$onUpdate(() => new Date()),
updatedAt: timestamp("updated_at")
.defaultNow()
.notNull()
.$onUpdate(() => new Date()),
});

export type UserId = `usr_${string}`;
Expand Down Expand Up @@ -140,7 +146,10 @@ export const agents = pgTable("agents", {
}),
graphHash: text("graph_hash").unique(),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at").defaultNow().notNull().$onUpdate(() => new Date()),
updatedAt: timestamp("updated_at")
.defaultNow()
.notNull()
.$onUpdate(() => new Date()),
});

export const builds = pgTable("builds", {
Expand Down
Loading

0 comments on commit 4959682

Please sign in to comment.