Code Monkey home page Code Monkey logo

Comments (3)

atjiu avatar atjiu commented on July 19, 2024 1

@fengss Beego自动创建表你不知道吗?

from pybbs-go.

fengss avatar fengss commented on July 19, 2024

CREATE TABLE permission (
id int(11) NOT NULL AUTO_INCREMENT,
pid int(11) DEFAULT NULL,
name varchar(100) COLLATE utf8_bin DEFAULT NULL,
description varchar(100) COLLATE utf8_bin DEFAULT NULL,
url varchar(100) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE reply (
id int(11) NOT NULL AUTO_INCREMENT,
topic_id int(11) DEFAULT NULL,
content text COLLATE utf8_bin,
user_id int(11) DEFAULT NULL,
up int(11) DEFAULT NULL,
in_time datetime DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE role (
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(100) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE role_permissions (
id int(11) NOT NULL AUTO_INCREMENT,
role_id int(11) DEFAULT NULL,
permission_id int(11) DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=81 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE section (
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(100) COLLATE utf8_bin DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE topic (
id int(11) NOT NULL AUTO_INCREMENT,
title varchar(100) COLLATE utf8_bin DEFAULT NULL,
content varchar(100) COLLATE utf8_bin DEFAULT NULL,
in_time datetime DEFAULT NULL,
user_id int(11) DEFAULT NULL,
section_id int(11) DEFAULT NULL,
view int(11) DEFAULT NULL,
reply_count int(11) DEFAULT NULL,
last_reply_user_id int(11) DEFAULT NULL,
last_reply_time datetime DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE user (
id int(11) NOT NULL AUTO_INCREMENT,
username varchar(100) COLLATE utf8_bin DEFAULT NULL,
password varchar(100) COLLATE utf8_bin DEFAULT NULL,
token varchar(100) COLLATE utf8_bin DEFAULT NULL,
avatar varchar(100) COLLATE utf8_bin DEFAULT NULL,
email varchar(100) COLLATE utf8_bin DEFAULT NULL,
url varchar(100) COLLATE utf8_bin DEFAULT NULL,
signature varchar(100) COLLATE utf8_bin DEFAULT NULL,
in_time datetime DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

CREATE TABLE user_roles (
id int(11) NOT NULL AUTO_INCREMENT,
user_id int(11) DEFAULT NULL,
role_id int(11) DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

from pybbs-go.

fengss avatar fengss commented on July 19, 2024

感谢 😆

from pybbs-go.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.