vault backup: 2026-01-19 22:33:16
This commit is contained in:
17
sql.md
Normal file
17
sql.md
Normal file
@@ -0,0 +1,17 @@
|
||||
### DDL 创建
|
||||
```sql
|
||||
CREATE TABLE agent_enterprise_relation
|
||||
(
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
agent_id INT NOT NULL,
|
||||
ent_id INT NOT NULL,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
UNIQUE KEY idx_agent_ent (agent_id, ent_id)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
```
|
||||
|
||||
### DDL修改
|
||||
```sql
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user