mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-26 23:28:47 +02:00
10 lines
360 B
TypeScript
10 lines
360 B
TypeScript
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>;
|