Files
2026-07-13 12:10:05 +08:00

378 B

  • Add possibility to define database custom data types

Example usage:

const customText = customType<{ data: string }>({
	dataType() {
		return 'text';
	},
});

const usersTable = pgTable('users', {
	name: customText('name').notNull(),
});

For more examples please check docs