mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
database backup and some minor changes
This commit is contained in:
BIN
db-backup/dump-ballistic-202411252106.sql
Normal file
BIN
db-backup/dump-ballistic-202411252106.sql
Normal file
Binary file not shown.
10
src/db/queries/States/index.ts
Normal file
10
src/db/queries/States/index.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
"use server";
|
||||||
|
import { eq, not , asc} from "drizzle-orm";
|
||||||
|
import { revalidatePath } from "next/cache";
|
||||||
|
import { db } from "@db/index";
|
||||||
|
import { State } from "@db/schema/States";
|
||||||
|
|
||||||
|
export const getData = async () => {
|
||||||
|
const data = await db.select().from(Account).orderBy(asc(Account.last_name));
|
||||||
|
return data;
|
||||||
|
};
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { integer, varchar, pgTable } from "drizzle-orm/pg-core";
|
import { integer, varchar, pgTable } from "drizzle-orm/pg-core";
|
||||||
|
|
||||||
export const states = pgTable("states", {
|
export const State = pgTable("states", {
|
||||||
id: integer().primaryKey().generatedByDefaultAsIdentity({ name: "states_id_seq", startWith: 1, increment: 1, minValue: 1, maxValue: 2147483647, cache: 1 }),
|
id: integer().primaryKey().generatedByDefaultAsIdentity({ name: "states_id_seq", startWith: 1, increment: 1, minValue: 1, maxValue: 2147483647, cache: 1 }),
|
||||||
state: varchar({ length: 50 }),
|
state: varchar({ length: 50 }),
|
||||||
abbreviation: varchar({ length: 50 }),
|
abbreviation: varchar({ length: 50 }),
|
||||||
|
|||||||
Reference in New Issue
Block a user