@hpbyte/h-codex-core
Version:
Core indexing and search functionality for h-codex
15 lines • 740 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.projects = void 0;
const pg_core_1 = require("drizzle-orm/pg-core");
exports.projects = (0, pg_core_1.pgTable)('projects', {
id: (0, pg_core_1.uuid)('id').primaryKey().defaultRandom(),
name: (0, pg_core_1.varchar)('name', { length: 255 }).notNull().unique(),
path: (0, pg_core_1.text)('path').notNull().unique(),
description: (0, pg_core_1.text)('description'),
createdAt: (0, pg_core_1.timestamp)('created_at', { withTimezone: true }).defaultNow(),
updatedAt: (0, pg_core_1.timestamp)('updated_at', { withTimezone: true })
.defaultNow()
.$onUpdate(() => new Date()),
});
//# sourceMappingURL=projects.schema.js.map