export const sqltData1202401 = pgTable(
"sqlt_data_1_2024_01",
{
tagid: integer().notNull(),
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
intvalue: bigint({ mode: "number" }),
/// other variables
},
(table) => [
index("sqlt_data_1_2024_01t_stampndx").using(
"btree",
table.tStamp.asc().nullsLast().op("int8_ops")
),
primaryKey({
columns: [table.tagid, table.tStamp],
name: "sqlt_data_1_2024_01_pkey",
}),
]
);
export const sqltData1202402 = pgTable(
"sqlt_data_1_2024_02",
{
tagid: integer().notNull(),
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
intvalue: bigint({ mode: "number" }),
/// other variables
},
(table) => [
index("sqlt_data_1_2024_02t_stampndx").using(
"btree",
table.tStamp.asc().nullsLast().op("int8_ops")
),
primaryKey({
columns: [table.tagid, table.tStamp],
name: "sqlt_data_1_2024_02_pkey",
}),
]
);
export const sqltData1202401 = pgTable(
"sqlt_data_1_2024_01",
{
tagid: integer().notNull(),
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
intvalue: bigint({ mode: "number" }),
/// other variables
},
(table) => [
index("sqlt_data_1_2024_01t_stampndx").using(
"btree",
table.tStamp.asc().nullsLast().op("int8_ops")
),
primaryKey({
columns: [table.tagid, table.tStamp],
name: "sqlt_data_1_2024_01_pkey",
}),
]
);
export const sqltData1202402 = pgTable(
"sqlt_data_1_2024_02",
{
tagid: integer().notNull(),
// You can use { mode: "bigint" } if numbers are exceeding js number limitations
intvalue: bigint({ mode: "number" }),
/// other variables
},
(table) => [
index("sqlt_data_1_2024_02t_stampndx").using(
"btree",
table.tStamp.asc().nullsLast().op("int8_ops")
),
primaryKey({
columns: [table.tagid, table.tStamp],
name: "sqlt_data_1_2024_02_pkey",
}),
]
);