Schema updates
This commit is contained in:
parent
c0085ea597
commit
4aacaae1ec
2 changed files with 3 additions and 2 deletions
|
@ -36,6 +36,7 @@ export const votes = sqliteTable(
|
||||||
(table) => {
|
(table) => {
|
||||||
return {
|
return {
|
||||||
unq: unique().on(table.userId, table.roomId),
|
unq: unique().on(table.userId, table.roomId),
|
||||||
|
userVoteIdx: index("user_vote_idx").on(table.userId),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
@ -61,7 +62,7 @@ export const logs = sqliteTable(
|
||||||
},
|
},
|
||||||
(table) => {
|
(table) => {
|
||||||
return {
|
return {
|
||||||
userIdx: index("user_idx").on(table.userId),
|
userLogIdx: index("user_log_idx").on(table.userId),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "sprintpadawan",
|
"name": "sprintpadawan",
|
||||||
"version": "3.1.6",
|
"version": "3.1.7",
|
||||||
"description": "Plan. Sprint. Repeat.",
|
"description": "Plan. Sprint. Repeat.",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue