export const playerItem = pgTable(
"playerItem",
{
id: uuid()
.primaryKey()
.default(sql`gen_random_uuid()`),
playerId: uuid().references(() => player.id),
...defaultColumns,
},
(t) => [index("player_item_pk_index").on(t.id)],
)
export const player = pgTable(
"player",
{
id: uuid()
.primaryKey()
.default(sql`gen_random_uuid()`),
fullName: text().notNull(),
firstName: text().notNull(),
lastName: text().notNull(),
...defaultColumns,
},
(t) => [index("player_pk_index").on(t.id)],
)
export const playerItem = pgTable(
"playerItem",
{
id: uuid()
.primaryKey()
.default(sql`gen_random_uuid()`),
playerId: uuid().references(() => player.id),
...defaultColumns,
},
(t) => [index("player_item_pk_index").on(t.id)],
)
export const player = pgTable(
"player",
{
id: uuid()
.primaryKey()
.default(sql`gen_random_uuid()`),
fullName: text().notNull(),
firstName: text().notNull(),
lastName: text().notNull(),
...defaultColumns,
},
(t) => [index("player_pk_index").on(t.id)],
)