|
|
@@ -1,4 +1,4 @@
|
|
|
-import { bigint, index, mysqlTable, primaryKey, uniqueIndex, varchar } from "drizzle-orm/mysql-core"
|
|
|
+import { bigint, mysqlTable, primaryKey, uniqueIndex, varchar } from "drizzle-orm/mysql-core"
|
|
|
import { timestamps, ulid, utc, workspaceColumns } from "../drizzle/types"
|
|
|
import { workspaceIndexes } from "./workspace.sql"
|
|
|
|
|
|
@@ -31,8 +31,5 @@ export const ReferralRewardTable = mysqlTable(
|
|
|
amount: bigint("amount", { mode: "number" }).notNull(),
|
|
|
timeApplied: utc("time_applied"),
|
|
|
},
|
|
|
- (table) => [
|
|
|
- primaryKey({ columns: [table.workspaceID, table.referralID] }),
|
|
|
- index("referral_id").on(table.referralID),
|
|
|
- ],
|
|
|
+ (table) => [primaryKey({ columns: [table.workspaceID, table.referralID] })],
|
|
|
)
|