mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-21 12:48:59 +02:00
11 lines
360 B
TypeScript
11 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>;
|