Merge branch 'dev'
This commit is contained in:
commit
b839623b72
1 changed files with 3 additions and 12 deletions
|
@ -9,10 +9,7 @@ import { relations } from "drizzle-orm";
|
||||||
|
|
||||||
export const rooms = mysqlTable("Room", {
|
export const rooms = mysqlTable("Room", {
|
||||||
id: varchar("id", { length: 255 }).notNull().primaryKey(),
|
id: varchar("id", { length: 255 }).notNull().primaryKey(),
|
||||||
created_at: timestamp("created_at", {
|
created_at: timestamp("created_at").defaultNow(),
|
||||||
mode: "date",
|
|
||||||
fsp: 3,
|
|
||||||
}).defaultNow(),
|
|
||||||
userId: varchar("userId", { length: 255 }).notNull(),
|
userId: varchar("userId", { length: 255 }).notNull(),
|
||||||
roomName: varchar("roomName", { length: 255 }),
|
roomName: varchar("roomName", { length: 255 }),
|
||||||
storyName: varchar("storyName", { length: 255 }),
|
storyName: varchar("storyName", { length: 255 }),
|
||||||
|
@ -27,10 +24,7 @@ export const roomsRelations = relations(rooms, ({ many }) => ({
|
||||||
|
|
||||||
export const votes = mysqlTable("Vote", {
|
export const votes = mysqlTable("Vote", {
|
||||||
id: varchar("id", { length: 255 }).notNull().primaryKey(),
|
id: varchar("id", { length: 255 }).notNull().primaryKey(),
|
||||||
created_at: timestamp("created_at", {
|
created_at: timestamp("created_at").defaultNow(),
|
||||||
mode: "date",
|
|
||||||
fsp: 3,
|
|
||||||
}).defaultNow(),
|
|
||||||
userId: varchar("userId", { length: 255 }).notNull(),
|
userId: varchar("userId", { length: 255 }).notNull(),
|
||||||
roomId: varchar("roomId", { length: 255 }).notNull(),
|
roomId: varchar("roomId", { length: 255 }).notNull(),
|
||||||
value: varchar("value", { length: 255 }).notNull(),
|
value: varchar("value", { length: 255 }).notNull(),
|
||||||
|
@ -45,10 +39,7 @@ export const votesRelations = relations(votes, ({ one }) => ({
|
||||||
|
|
||||||
export const logs = mysqlTable("Log", {
|
export const logs = mysqlTable("Log", {
|
||||||
id: varchar("id", { length: 255 }).notNull().primaryKey(),
|
id: varchar("id", { length: 255 }).notNull().primaryKey(),
|
||||||
created_at: timestamp("created_at", {
|
created_at: timestamp("created_at").defaultNow(),
|
||||||
mode: "date",
|
|
||||||
fsp: 3,
|
|
||||||
}).defaultNow(),
|
|
||||||
userId: varchar("userId", { length: 255 }).notNull(),
|
userId: varchar("userId", { length: 255 }).notNull(),
|
||||||
roomId: varchar("roomId", { length: 255 }).notNull(),
|
roomId: varchar("roomId", { length: 255 }).notNull(),
|
||||||
scale: varchar("scale", { length: 255 }),
|
scale: varchar("scale", { length: 255 }),
|
||||||
|
|
Loading…
Add table
Reference in a new issue