mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
Add code generation and notice SQL scripts (#966)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
insert into sys_notice (id, title, type, status, content, created_time, updated_time)
|
||||
values (1, 'hahahahahaahahaha', 0, 1, '你好😄
|
||||
|
||||
```
|
||||
print(''fba yyds'')
|
||||
```
|
||||
|
||||
⚡⚡⚡
|
||||
|
||||
| col1 | col2 | col3 |
|
||||
| ---- | ---- | ---- |
|
||||
| | | |
|
||||
| | | |
|
||||
|
||||
* 1
|
||||
* 2
|
||||
* 3
|
||||
', '2025-12-15 15:33:16', null);
|
||||
@@ -0,0 +1,18 @@
|
||||
insert into sys_notice (id, title, type, status, content, created_time, updated_time)
|
||||
values (2112248797756129280, 'hahahahahaahahaha', 0, 1, '你好😄
|
||||
|
||||
```
|
||||
print(''fba yyds'')
|
||||
```
|
||||
|
||||
⚡⚡⚡
|
||||
|
||||
| col1 | col2 | col3 |
|
||||
| ---- | ---- | ---- |
|
||||
| | | |
|
||||
| | | |
|
||||
|
||||
* 1
|
||||
* 2
|
||||
* 3
|
||||
', '2025-12-15 15:33:16', null);
|
||||
@@ -0,0 +1,20 @@
|
||||
insert into sys_notice (id, title, type, status, content, created_time, updated_time)
|
||||
values (1, 'hahahahahaahahaha', 0, 1, '你好😄
|
||||
|
||||
```
|
||||
print(''fba yyds'')
|
||||
```
|
||||
|
||||
⚡⚡⚡
|
||||
|
||||
| col1 | col2 | col3 |
|
||||
| ---- | ---- | ---- |
|
||||
| | | |
|
||||
| | | |
|
||||
|
||||
* 1
|
||||
* 2
|
||||
* 3
|
||||
', '2025-12-15 15:33:16', null);
|
||||
|
||||
select setval(pg_get_serial_sequence('sys_notice', 'id'),coalesce(max(id), 0) + 1, true) from sys_notice;
|
||||
@@ -0,0 +1,18 @@
|
||||
insert into sys_notice (id, title, type, status, content, created_time, updated_time)
|
||||
values (2112248797756129280, 'hahahahahaahahaha', 0, 1, '你好😄
|
||||
|
||||
```
|
||||
print(''fba yyds'')
|
||||
```
|
||||
|
||||
⚡⚡⚡
|
||||
|
||||
| col1 | col2 | col3 |
|
||||
| ---- | ---- | ---- |
|
||||
| | | |
|
||||
| | | |
|
||||
|
||||
* 1
|
||||
* 2
|
||||
* 3
|
||||
', '2025-12-15 15:33:16', null);
|
||||
Reference in New Issue
Block a user