fosrl.pangolin/server/db/schema.ts

11 lines
360 B
TypeScript
Raw Normal View History

2024-09-27 21:39:03 -04:00
import { InferSelectModel } from "drizzle-orm";
import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core";
export const schools = sqliteTable("schools", {
id: integer("id").primaryKey({ autoIncrement: true }),
name: text("name"),
abbreviation: text("abbreviation"),
});
export type SelectSchoolType = InferSelectModel<typeof schools>;