You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
997 B
37 lines
997 B
4 months ago
|
// | ------------------------------------------------------------
|
||
|
// | @版本: version 0.1
|
||
|
// | @创建人: 【Nie-x7129】
|
||
|
// | @E-mail: x71291@outlook.com
|
||
|
// | @所在项目: drizzle20240508
|
||
|
// | @文件描述: drizzle.config.js -
|
||
|
// | @创建时间: 2024-05-08 15:59
|
||
|
// | @更新时间: 2024-05-08 15:59
|
||
|
// | @修改记录:
|
||
|
// | -*-*-*- (时间--修改人--修改说明) -*-*-*-
|
||
|
// | =
|
||
|
// | ------------------------------------------------------------
|
||
|
|
||
|
import { defineConfig } from 'drizzle-kit';
|
||
|
|
||
|
const config = {
|
||
|
dialect: 'mysql',
|
||
|
schema: './src/entities/schema.ts',
|
||
|
out: './src/entities',
|
||
|
|
||
|
// 'pg' | 'mysql2' | 'better-sqlite' | 'libsql' | 'turso'
|
||
|
// driver: 'mysql2',
|
||
|
dbCredentials: {
|
||
|
host: '172.16.1.10',
|
||
|
port: 3306,
|
||
|
user: 'root',
|
||
|
password: 'Hxl1314521',
|
||
|
database: 'pacauth',
|
||
|
},
|
||
|
verbose: true,
|
||
|
introspect: {
|
||
|
// 启用驼峰命名
|
||
|
casing: 'camel',
|
||
|
},
|
||
|
};
|
||
|
export default defineConfig(config);
|