预约面试功能开发
This commit is contained in:
45
CreateTableHelper.java
Normal file
45
CreateTableHelper.java
Normal file
@@ -0,0 +1,45 @@
|
||||
import java.sql.*;
|
||||
|
||||
public class CreateTableHelper {
|
||||
public static void main(String[] args) throws Exception {
|
||||
String url = "jdbc:highgo://39.98.44.136:6023/highgo?currentSchema=shz";
|
||||
String user = "sysdba";
|
||||
String password = "Hello@2026";
|
||||
|
||||
Class.forName("com.highgo.jdbc.Driver");
|
||||
|
||||
try (Connection conn = DriverManager.getConnection(url, user, password);
|
||||
Statement stmt = conn.createStatement()) {
|
||||
|
||||
String sql = "CREATE TABLE interview_invitation ("
|
||||
+ "id bigint NOT NULL,"
|
||||
+ "company_id bigint NOT NULL,"
|
||||
+ "job_id bigint NOT NULL,"
|
||||
+ "user_id bigint NOT NULL,"
|
||||
+ "apply_id bigint NULL,"
|
||||
+ "interview_time varchar(100) NULL,"
|
||||
+ "interview_method varchar(20) NULL,"
|
||||
+ "meeting_link varchar(500) NULL,"
|
||||
+ "meeting_password varchar(100) NULL,"
|
||||
+ "interview_location varchar(500) NULL,"
|
||||
+ "contact_phone varchar(50) NULL,"
|
||||
+ "status varchar(20) DEFAULT 'pending' NULL,"
|
||||
+ "del_flag char(1) DEFAULT '0' NULL,"
|
||||
+ "create_by varchar(64) DEFAULT '' NULL,"
|
||||
+ "create_time timestamp NULL,"
|
||||
+ "update_by varchar(64) DEFAULT '' NULL,"
|
||||
+ "update_time timestamp NULL,"
|
||||
+ "remark varchar(500) NULL"
|
||||
+ ")";
|
||||
|
||||
stmt.execute(sql);
|
||||
System.out.println("Table interview_invitation created successfully!");
|
||||
|
||||
// Check table exists
|
||||
ResultSet rs = stmt.executeQuery("SELECT COUNT(*) FROM interview_invitation");
|
||||
rs.next();
|
||||
System.out.println("Table verified, row count: " + rs.getInt(1));
|
||||
rs.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user