go-admingo-admin
  • Guide
  • Development
    • Advanced
    • Commands
  • Advanced
  • Help
  • GitHub
  • Changelog
⌘ K
Standard Practice
Standard Module Development
Backend Basics
Backend Directory Structure
Backend Config File
Starting the Backend
Frontend Basics
Frontend Directory Structure
Frontend Config File
Starting the Frontend
Development Patterns
Actions Pattern
Hand-Written Pattern
First API Endpoint
Layered Development
API Layer
Service Layer
DTO Definitions
Model Definitions
Router Registration
Multi-Environment Config
Database Table Conventions
Data Permissions
Response Format
Code Generation
Pre-Generation Setup
Generating Business Code
One-Click Menu Generation
Binding APIs to the Menu
Configuring Role Permissions
Verifying the Feature
Generating Code with an LLM
Advanced Capabilities
Runtime Core API
Authentication & Authorization
Logging
Request Tracing
Cache
Queue
File Upload
Rate Limiting
Scheduled Jobs
Air Hot Reload
Swagger Docs
Code Generation Tool
Last updated:
Open-source MIT Licensed | Copyright © 2020-present
Powered by go-admin-team

TABLE OF CONTENTS

‌
‌
‌
‌

Database Conventions

These are the field rules to follow when creating a table — naming, types and comments — matching the pattern below.

Special Fields

FieldNameTypeNotes
idprimary keyint(11)the record's id
create_bycreated byint(11)records who created the row; needed for data-permission scoping
update_byupdated byint(11)records who last updated the row
created_atcreated attimestamprecords when the row was created; maintained automatically
updated_atupdated attimestamprecords when the row was last updated; maintained automatically
deleted_atdeleted attimestamprecords when the row was deleted; maintained automatically. If this column exists, a recycle-bin feature is generated for it — its default value must be null

Supported Databases

mysql

yml
driver: mysql
source: user:password@tcp(127.0.0.1:3306)/dbname?charset=utf8&parseTime=True&loc=Local&timeout=1000ms

sqlite3

yml
driver: sqlite3
source: sqlite3.db

postgres

yml
driver: postgres
source: host=myhost port=myport user=gorm dbname=gorm password=mypassword